src/main/java/com/authlete/jaxrs/AuthorizationRequestHandler.java
private Response handleNoInteraction(AuthorizationResponse response)
    {
        // Check 1. End-User Authentication
        noInteractionCheckAuthentication(response);

        // Get the time when the user was authenticated.
        long authTime = mSpi.getUserAuthenticatedAt();

        // Check 2. Max Age
        noInteractionCheckMaxAge(response, authTime);

        // The current subject, i.e. the unique ID assigned by
        // the service to the current user.
        String subject = mSpi.getUserSubject();

        // Check 3. Subject
        noInteractionCheckSubject(response, subject);

        // Get the ACR that was satisfied when the current user
        // was authenticated.
        String acr = mSpi.getAcr();

        // Check 4. ACR
        noInteractionCheckAcr(response, acr);

        // Extra properties to associate with an access token and/or
        // an authorization code.
        Property[] properties = mSpi.getProperties();

        // Scopes to associate with an access token and/or an authorization code.
        // If a non-null value is returned from mSpi.getScopes(), the scope set
        // replaces the scopes that have been specified in the original
        // authorization request.
        String[] scopes = mSpi.getScopes();

        // Issue
        return noInteractionIssue(response, authTime, subject, acr, properties, scopes);
    }
private Response handleNoInteraction(AuthorizationResponse response)
    {
        // Check 1. End-User Authentication
        noInteractionCheckAuthentication(response);

        // Get the time when the user was authenticated.
        long authTime = mSpi.getUserAuthenticatedAt();

        // Check 2. Max Age
        noInteractionCheckMaxAge(response, authTime);

        // The current subject, i.e. the unique ID assigned by
        // the service to the current user.
        String subject = mSpi.getUserSubject();

        // Check 3. Subject
        noInteractionCheckSubject(response, subject);

        // Get the ACR that was satisfied when the current user
        // was authenticated.
        String acr = mSpi.getAcr();

        // Check 4. ACR
        noInteractionCheckAcr(response, acr);

        // Extra properties to associate with an access token and/or
        // an authorization code.
        Property[] properties = mSpi.getProperties();

        // Scopes to associate with an access token and/or an authorization code.
        // If a non-null value is returned from mSpi.getScopes(), the scope set
        // replaces the scopes that have been specified in the original
        // authorization request.
        String[] scopes = mSpi.getScopes();

        // Issue
        return noInteractionIssue(response, authTime, subject, acr, properties, scopes);
    }
private Response handleNoInteraction ( AuthorizationResponse response ) { // Check 1. End-User Authentication noInteractionCheckAuthentication ( response ) ; // Get the time when the user was authenticated. long authTime = mSpi . getUserAuthenticatedAt ( ) ; // Check 2. Max Age noInteractionCheckMaxAge ( response , authTime ) ; // The current subject, i.e. the unique ID assigned by // the service to the current user. String subject = mSpi . getUserSubject ( ) ; // Check 3. Subject noInteractionCheckSubject ( response , subject ) ; // Get the ACR that was satisfied when the current user // was authenticated. String acr = mSpi . getAcr ( ) ; // Check 4. ACR noInteractionCheckAcr ( response , acr ) ; // Extra properties to associate with an access token and/or // an authorization code. Property [ ] properties = mSpi . getProperties ( ) ; // Scopes to associate with an access token and/or an authorization code. // If a non-null value is returned from mSpi.getScopes(), the scope set // replaces the scopes that have been specified in the original // authorization request. String [ ] scopes = mSpi . getScopes ( ) ; // Issue return noInteractionIssue ( response , authTime , subject , acr , properties , scopes ) ; }
Handle the case where {@code action} parameter in a response from
Authlete's {@code /api/auth/authorization} API is {@code NO_INTERACTION}.
Handle the case where {