Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support /.well-known/oauth-authorization-server #5976

Closed
mitar opened this issue Aug 5, 2020 · 3 comments
Closed

Support /.well-known/oauth-authorization-server #5976

mitar opened this issue Aug 5, 2020 · 3 comments
Assignees

Comments

@mitar
Copy link

mitar commented Aug 5, 2020

This allows auto-configuration of the OAuth client.

See more information in this RFC: https://tools.ietf.org/html/rfc8414

Example: https://developer.okta.com/docs/reference/api/oidc/#well-known-oauth-authorization-server

There is similar configuration for OpenID Connect, which could also be provided: https://developer.okta.com/docs/reference/api/oidc/#well-known-openid-configuration

@TomDemeranville
Copy link
Contributor

Hi Mitar,

We already support open id configuration at https://orcid.org/.well-known/openid-configuration but was not aware of https://tools.ietf.org/html/rfc8414

Do you know how different the formats are? Can we simply deliver the same metadata from both?

@mitar
Copy link
Author

mitar commented Aug 6, 2020

You can, but the oauth-authorization-server has few more fields, e.g.:

  • revocation_endpoint
  • revocation_endpoint_auth_methods_supported
  • revocation_endpoint_auth_signing_alg_values_supported
  • introspection_endpoint
  • introspection_endpoint_auth_methods_supported
  • introspection_endpoint_auth_signing_alg_values_supported
  • code_challenge_methods_supported

At the same time openid-configuration has some extra fields, e.g.:

  • acr_values_supported
  • subject_types_supported
  • id_token_signing_alg_values_supported
  • id_token_encryption_alg_values_supported
  • id_token_encryption_enc_values_supported
  • userinfo_signing_alg_values_supported
  • userinfo_encryption_alg_values_supported
  • userinfo_encryption_enc_values_supported
  • request_object_signing_alg_values_supported
  • request_object_encryption_alg_values_supported
  • request_object_encryption_enc_values_supported
  • display_values_supported
  • claim_types_supported
  • claims_supported
  • claims_locales_supported
  • claims_parameter_supported
  • request_parameter_supported
  • request_uri_parameter_supported
  • require_request_uri_registration

Because both of them allow additional parameters, I think it is safe to have only one metadata and serve it at both locations.

@mitar
Copy link
Author

mitar commented Aug 6, 2020

We already support open id configuration

Oh, I missed that. I see why. Because it does not allow CORS access. I will open another issue for that.

Edit: Done: #5978

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants