protected TicketGrantingTicket createTicketGrantingTicketForRequest ( final MultiValueMap < String , String > requestBody , final HttpServletRequest request ) { val credential = this . credentialFactory . fromRequest ( request , requestBody ) ; if ( credential == null || credential . isEmpty ( ) ) { throw new BadRestRequestException ( "No credentials are provided or extracted to authenticate the REST request" ) ; } val service = this . serviceFactory . createService ( request ) ; val authenticationResult = authenticationSystemSupport . handleAndFinalizeSingleAuthenticationTransaction ( service , credential ) ; return centralAuthenticationService . createTicketGrantingTicket ( authenticationResult ) ; }
Create ticket granting ticket for request ticket granting ticket .