OAuth2ClientPropertiesRegistrationAdapter removes the trailing slash on the user-provided spring.security.oauth2.client.provider.providername.issuer-uri property.
This causes a problem when the issuer for the OAuth 2.0 provider actually does have a trailing slash.
For example, Auth0's iss field always has a trailing slash.
Once the trailing slash is removed, then issuer validation fails since it differs from the iss claim in JWTs and in the OIDC Discovery endpoint.
There is at least one example of a user working around this in the wild by adding an extra slash. :)
Is it necessary to remove the trailing slash?