protected void login ( final Request request , final Response response ) { // Login detected final Form form = new Form ( request . getEntity ( ) ) ; final Parameter identifier = form . getFirst ( this . getIdentifierFormName ( ) ) ; final Parameter secret = form . getFirst ( this . getSecretFormName ( ) ) ; // Set credentials final ChallengeResponse cr = new ChallengeResponse ( this . getScheme ( ) , identifier != null ? identifier . getValue ( ) : null , secret != null ? secret . getValue ( ) : null ) ; request . setChallengeResponse ( cr ) ; this . log . info ( "calling attemptRedirect after login" ) ; // Attempt to redirect this . attemptRedirect ( request , response , form ) ; }
Processes the login request .