Package com.irurueta.authserver.resourceserver.api.web.security
package com.irurueta.authserver.resourceserver.api.web.security
Resource server security configuration (JWT or opaque-token validation, method security, RFC 6750 error handling).
-
ClassDescriptionDecorates an introspector of the opaque-token variant: rejects tokens whose audience is not accepted and adds the role authorities of the
rolesattribute, so the opaque variant behaves like the JWT one.Maps therolesclaim of a token onto authorities, for both JWT and opaque tokens.Secures the API: every request except the health endpoint and the OpenAPI document requires a valid bearer token issued by the authorization server for this resource server's audience.Answers aStepUpRequiredDecisionwith401and the RFC 9470 challenge (error="insufficient_user_authentication"with the requiredacr_valuesandmax_age); every other denial goes to the delegate, the RFC 6750 handler.Requires that the bearer token proves a recent strong authentication (RFC 9470): itsacrclaim must be one of the configured (space-separated) values and itsauth_timeclaim no older than the configured maximum age.Step-up authentication policy (RFC 9470) of the sensitive operations, bound fromresourceserver.step-up.*.Denial that tellsStepUpAccessDeniedHandlerthe caller is allowed to perform the operation but must authenticate again more strongly or more recently (RFC 9470), as opposed to an ordinary refusal.