210         if (responseType == null) {
   211             ServicesLogger.LOGGER.missingParameter(OAuth2Constants.RESPONSE_TYPE);
   212             event.error(Errors.INVALID_REQUEST);
   213             return redirectErrorToClient(OIDCResponseMode.QUERY, OAuthErrorException.INVALID_REQUEST, 
"Missing parameter: response_type");
   216         event.detail(Details.RESPONSE_TYPE, responseType);
   223         } 
catch (IllegalArgumentException iae) {
   224             logger.error(iae.getMessage());
   225             event.error(Errors.INVALID_REQUEST);
   226             return redirectErrorToClient(OIDCResponseMode.QUERY, OAuthErrorException.UNSUPPORTED_RESPONSE_TYPE, null);
   232         } 
catch (IllegalArgumentException iae) {
   233             ServicesLogger.LOGGER.invalidParameter(OIDCLoginProtocol.RESPONSE_MODE_PARAM);
   234             event.error(Errors.INVALID_REQUEST);
   235             return redirectErrorToClient(OIDCResponseMode.QUERY, OAuthErrorException.INVALID_REQUEST, 
"Invalid parameter: response_mode");
   238         event.detail(Details.RESPONSE_MODE, parsedResponseMode.toString().toLowerCase());
   242             ServicesLogger.LOGGER.responseModeQueryNotAllowed();
   243             event.error(Errors.INVALID_REQUEST);
   244             return redirectErrorToClient(OIDCResponseMode.QUERY, OAuthErrorException.INVALID_REQUEST, 
"Response_mode 'query' not allowed for implicit or hybrid flow");
   248             ServicesLogger.LOGGER.flowNotAllowed(
"Standard");
   249             event.error(Errors.NOT_ALLOWED);
   250             return redirectErrorToClient(parsedResponseMode, OAuthErrorException.UNSUPPORTED_RESPONSE_TYPE, 
"Client is not allowed to initiate browser login with given response_type. Standard flow is disabled for the client.");
   254             ServicesLogger.LOGGER.flowNotAllowed(
"Implicit");
   255             event.error(Errors.NOT_ALLOWED);
   256             return redirectErrorToClient(parsedResponseMode, OAuthErrorException.UNSUPPORTED_RESPONSE_TYPE, 
"Client is not allowed to initiate browser login with given response_type. Implicit flow is disabled for the client.");
 AuthorizationEndpointRequest request
Definition: AuthorizationEndpoint.java:90
 
OIDCResponseMode parsedResponseMode
Definition: AuthorizationEndpoint.java:88
 
String getResponseType()
Definition: AuthorizationEndpointRequest.java:61
 
String getResponseMode()
Definition: AuthorizationEndpointRequest.java:65
 
OIDCResponseType parsedResponseType
Definition: AuthorizationEndpoint.java:87
 
static OIDCResponseMode parse(String responseMode, OIDCResponseType responseType)
Definition: OIDCResponseMode.java:27
 
static final Logger logger
Definition: AuthorizationEndpoint.java:64
 
static OIDCResponseType parse(String responseTypeParam)
Definition: OIDCResponseType.java:46
 
CODE
Definition: AuthorizationEndpoint.java:80
 
boolean isImplicitOrHybridFlow()
Definition: OIDCResponseType.java:96
 
Response redirectErrorToClient(OIDCResponseMode responseMode, String error, String errorDescription)
Definition: AuthorizationEndpoint.java:339
 
ClientModel client
Definition: AuthorizationEndpoint.java:83
 
boolean hasResponseType(String responseType)
Definition: OIDCResponseType.java:91
 
Action action
Definition: AuthorizationEndpoint.java:86