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

feat: Support multiple local issuers in oidc-test-support #29

Closed
tommytroen opened this issue Aug 14, 2019 · 0 comments · Fixed by #223
Closed

feat: Support multiple local issuers in oidc-test-support #29

tommytroen opened this issue Aug 14, 2019 · 0 comments · Fixed by #223
Assignees
Labels
enhancement New feature or request

Comments

@tommytroen
Copy link
Collaborator

In order to have multiple issuers when using oidc-test-support in dev/local mode you have to configure the same metadata/jwks on all issuers as the FileResourceRetriever only supports one set of files. The TokenGeneratorController also only issues tokens from a single issuer.

When protecting 2 endpoints with different issuers, e.g. @ProtectedWithClaims(issuer="abc") and @ProtectedWithClaims(issuer="xyz"), in local mode you could get a 401 on issuer xyz as only a token for issuer abc has been found and vice versa. This is due to that the issuers are essentially the same.

One solution is to allow to specify file:// in the discoveryurl and let the FileResourceRetriever also support "live" providers over HTTP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant