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

Can .well-known/openid-configuration return an alternate uri for jwks_uri #159

Open
magic7s opened this issue Oct 25, 2021 · 1 comment
Open

Comments

@magic7s
Copy link

magic7s commented Oct 25, 2021

I'm struggling to find a way to configure an alternate uri for jwks_uri in .well-known/openid-configuration. I have read discovery_url_options and found that I can change some things but not the full uri. Any help would be appreciated.

I need https://example.com/oauth/discovery/keys to become https://example.com/-/jwks

@toupeira
Copy link
Member

Hmm it's not directly possible, but you might be able to achieve this by defining a custom route named oauth_discovery_keys, after the call to use_doorkeeper_openid_connect.

Maybe something like:

match '/-/jwks', to: 'doorkeeper/openid_connect/discovery#keys', as: :oauth_discovery_keys

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