-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ns key discovery to follow openid-style lookups
Previously, namespace keys were fetched by hardcoding the issuer jwks relative to the namespace. Now we follow openid-style lookups by fetching the JSON located at <registry url>/api/v2.0/registry/metadata/<namespace>/.well-known/namespace-configuration and following the URL associated with the `jwks_uri` key. Currently this is still the same key path in all instances that I'm aware of, but in theory this could be expanded to point to other locations. The architecture of this PR is that a GET request to the namespace-configuration url mentioned above should dynamically generate the `jwks_uri` key with associated value. The value is used throughout and assigned the issuer URL in various places where we need to create a token on behalf of the namespace.
- Loading branch information
1 parent
2f1315d
commit ecd6073
Showing
6 changed files
with
171 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.