One should be able to specify whether the query parms 'state' and 'code' are in the hash portion of the URL or in the query string.
Right now, while parsing the query params _this.utils.parse(_this.locationLike, true / use hash /); hard codes the value 'useHash' to true, This should either be an argument to the function completeAuthorizationRequest or to the constructor of the RedirectRequestHandler object.
One should be able to specify whether the query parms 'state' and 'code' are in the hash portion of the URL or in the query string.
While constructing the AuthorizationRequest object, set the response_mode value to 'query'.
const request = new AuthorizationRequest({
client_id: fcAuthConfig.clientId,
redirect_uri: ${window.location.origin}${window.location.pathname},
usePkce : true,
scope:'openid',
response_type: AuthorizationRequest.RESPONSE_TYPE_CODE,
extras: {'response_mode': 'query' }
});
Perform the authorization request -
authorizationHandler.performAuthorizationRequest(authConfig, request);
and then await authorizationHandler.completeAuthorizationRequestIfPossible(); after signing in and redirection.
Expected Behavior
One should be able to specify whether the query parms 'state' and 'code' are in the hash portion of the URL or in the query string.
Right now, while parsing the query params _this.utils.parse(_this.locationLike, true / use hash /); hard codes the value 'useHash' to true, This should either be an argument to the function completeAuthorizationRequest or to the constructor of the RedirectRequestHandler object.
One should be able to specify whether the query parms 'state' and 'code' are in the hash portion of the URL or in the query string.
While constructing the AuthorizationRequest object, set the response_mode value to 'query'.
const request = new AuthorizationRequest({ client_id: fcAuthConfig.clientId, redirect_uri:
${window.location.origin}${window.location.pathname}
, usePkce : true, scope:'openid', response_type: AuthorizationRequest.RESPONSE_TYPE_CODE, extras: {'response_mode': 'query' } }); Perform the authorization request - authorizationHandler.performAuthorizationRequest(authConfig, request); and then await authorizationHandler.completeAuthorizationRequestIfPossible(); after signing in and redirection.[REQUIRED] Environment