Class CoreTokenResourceAuthzModule

  • All Implemented Interfaces:
    org.forgerock.authz.filter.crest.api.CrestAuthorizationModule

    public class CoreTokenResourceAuthzModule
    extends AdminOnlyAuthzModule
    Authorization module specifically designed for the Core Token Resource endpoint. This prevents access to the Core Token Endpoint unless the System Property "org.forgerock.openam.cts.rest.enabled" has been set and the user has presented an SSO Token which has Administrator-level access.
    Since:
    12.0.0
    See Also:
    CoreTokenResource
    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in interface org.forgerock.authz.filter.crest.api.CrestAuthorizationModule
        Overrides:
        getName in class AdminOnlyAuthzModule
      • authorize

        protected org.forgerock.util.promise.Promise<org.forgerock.authz.filter.api.AuthorizationResult,​org.forgerock.json.resource.ResourceException> authorize​(org.forgerock.services.context.Context context)
        Prevents access to CoreTokenResource unless this REST endpoint has been explicitly enabled. If the endpoint has been explicitly enabled, it defers to AdminOnlyAuthzModule to ensure that the SSO Token belongs to a user with Administrator-level access.
        Overrides:
        authorize in class SSOTokenAuthzModule