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

Enable custom servers with OAuth application id in url path. #17

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pejotes
Copy link

@pejotes pejotes commented Nov 4, 2020

Please note some providers like for example Okta allows to create custom authorisation servers like described here
https://developer.okta.com/docs/concepts/auth-servers/
This allows to create custom servers for apps with separate urls based on schema.
"
OpenID: https://${yourOktaDomain}/oauth2//.well-known/openid-configuration
OAuth: https://${yourOktaDomain}/oauth2//.well-known/oauth-authorization-server
"

The change adds path component to discovery url for endpoints. Tested with generic hostname base url and this custom based.

As some OAuth providers allows to create custom OAuth server instances on the same hostname with application id in url path we should allow to discover them and all required endpoints.
Add path element to authority base url request to enable custom servers
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

Successfully merging this pull request may close these issues.

1 participant