Rest service authentication via Api-Key #26845
-
Hey there! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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 Unless it is a JWT token - in this case |
Beta Was this translation helpful? Give feedback.
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 fromAuthorization
, custom headers and cookies, verify these tokens and map them toSecurityIdentity
.quarkus-oidc
forservice
applications can do it too (cookies are not supported though, only custom headers)