
oq69j (oq69j) asked a question.
I need the public keys to authenticate the Access Token on my resource server.
How can I download the keys? I tried https://gentics.oktapreview.com/oauth2/test/v1/keys but that did not work.
I also did not find this information in the interface and documentation.

Hi Johannes,
With regards to your question it looks to be you have used the auth server name rather than the ID, when listing the keys you will need to construct the base url with the keys endpoint.
If you have the API Access Management SKU then you can create custom authorization servers and review these via Admin --> Security --> API --> Authorization Server (Tab), these custom auth servers will have their own unique id. https://[Subdomain].okta.com/oauth2/aus2qvr2ltAc99Sh00i7
With the above the API call to retrieve the keys would be:
https://[Subdomain].okta.com/oauth2/aus2qvr2ltAc99Sh00i7/v1/keys
Details on building the base URL can be found here:
https://developer.okta.com/docs/reference/api/oidc/#composing-your-base-url
In the event you do not have the ability to create custom authorization servers you can use the server available for all tenants. The URL will be https://[subdomain].okta.com/oauth2/v1/keys
I hope the above helps.
Regards,
Chris Hancock