I’m trying to secure an action using Bearer token authentication.
I’ve created an environment type with a
BearerTokenAuthenticator and provided an environment with a
I test by sending a request with a header “Authorization” with a value of “Bearer test1234” to the endpoint. There is debug output from Silhouette saying
[Silhouette] Try to extract value with name Authorization
from headers: […]
(Authorization,Bearer test1234). Then the
onNotAuthenticated method is being called. My
IdentityService#retrieve method is not being called.
Any idea what could be missing?