fix(core): Report missing SAML attributes early with an actionable error message (#9316)
This commit is contained in:
@@ -359,7 +359,7 @@ export class SamlService {
|
||||
if (!attributes) {
|
||||
throw new AuthError('SAML Authentication failed. Invalid SAML response.');
|
||||
}
|
||||
if (!attributes.email && missingAttributes.length > 0) {
|
||||
if (missingAttributes.length > 0) {
|
||||
throw new AuthError(
|
||||
`SAML Authentication failed. Invalid SAML response (missing attributes: ${missingAttributes.join(
|
||||
', ',
|
||||
|
||||
Reference in New Issue
Block a user