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).
  • Class
    Description
    Decorates an introspector of the opaque-token variant: rejects tokens whose audience is not accepted and adds the role authorities of the roles attribute, so the opaque variant behaves like the JWT one.
    Maps the roles claim 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 a StepUpRequiredDecision with 401 and the RFC 9470 challenge (error="insufficient_user_authentication" with the required acr_values and max_age); every other denial goes to the delegate, the RFC 6750 handler.
    Requires that the bearer token proves a recent strong authentication (RFC 9470): its acr claim must be one of the configured (space-separated) values and its auth_time claim no older than the configured maximum age.
    Step-up authentication policy (RFC 9470) of the sensitive operations, bound from resourceserver.step-up.*.
    Denial that tells StepUpAccessDeniedHandler the caller is allowed to perform the operation but must authenticate again more strongly or more recently (RFC 9470), as opposed to an ordinary refusal.