Skip to content

Rest service authentication via Api-Key #26845

Answered by sberyozkin
mickroll asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @mickroll Well, converting an API key into a security identity is an application specific task, I'm not sure it can be generalized, This key is just some value which Quarkus can't itself introspect in order to figure out how to map it to SecurityIdentity.

Unless it is a JWT token - in this case quarkus-smallrye-jwt is a Quarkus specific solution which can get these tokens from Authorization, custom headers and cookies, verify these tokens and map them to SecurityIdentity. quarkus-oidc for service applications can do it too (cookies are not supported though, only custom headers)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mickroll
Comment options

@brunobastosg
Comment options

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