Fix property access in saml response path. (#2675)

Fix session access inside catch
This commit is contained in:
Aswin V 2024-05-07 00:11:13 +05:30 committed by GitHub
parent ff988bb271
commit f8e823f4b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -751,9 +751,9 @@ export class OAuthController implements IOAuthController {
isSAMLFederated,
isOIDCFederated,
isIdPFlow,
acsUrl: session.requested.acsUrl,
entityId: session.requested.entityId,
requestedOIDCFlow: !!session.requested.oidc,
acsUrl: session?.requested?.acsUrl,
entityId: session?.requested?.entityId,
requestedOIDCFlow: !!session?.requested?.oidc,
relayState: RelayState,
issuer,
profile,
@ -769,7 +769,7 @@ export class OAuthController implements IOAuthController {
error: 'access_denied',
error_description: traceId ? `${traceId}: ${error_description}` : error_description,
redirect_uri,
state: session.requested?.state,
state: session?.requested?.state,
}),
};
}