Skip to content

Usespring-addons-starter-oidc to integrate Cognito, but also allow a custom, non-OIDC JWT access? #150

Answered by ch4mpy
bdruth asked this question in Q&A
Discussion options

You must be logged in to vote

Cognito only solution

Long-lived access tokens are a security risk. As client_credentials client side is rather easy to implement, including in most "legacy" systems, it is worth trying to use only Cognito (and short lived access-tokens).

Multi-issuers solution

A JWT validation involves checking the payload integrity using the authorization server public key. Spring Security need the JWK-set to configure the JWT decoders (in charge of JWTs decoding and validation). Decoders are configured with the JWK-set (and not the public key directly) because the authorization server can (and should) rotate signing keys.

If you can provide this URI, then you have nothing more to do and tokens will be …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@bdruth
Comment options

@ch4mpy
Comment options

Answer selected by bdruth
@bdruth
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants