-
Notifications
You must be signed in to change notification settings - Fork 556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SDK-2970] Remove captcha for enterprise SSO connections #2071
Conversation
l.captcha(lock) && l.captcha(lock).get('required') ? ( | ||
l.captcha(lock) && | ||
l.captcha(lock).get('required') && | ||
(isHRDDomain(lock, databaseUsernameValue(lock)) || !sso) ? ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the real crux of the change - showing captcha if required, but also for ADFS SSO connections only (other SSO connections should hide the Captcha).
expectShallowComponent(<Component {...defaultProps} />).toMatchSnapshot(); | ||
}); | ||
|
||
it('shows the Captcha pane for SSO (ADFS) connections', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another one that goes thru the same endpoint and is enterprise is the "ad" strategy... Are we also handling that case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logic here relies on the result of isHRDDomain
, which looks like it checks both the ad
and auth0-adldap
strategies:
lock/src/connection/enterprise.js
Line 142 in c692eb6
return isEnterpriseDomain(m, email, ['ad', 'auth0-adldap']); |
Is this sufficient?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mak sense!
Looks like we don't show the captcha when only a DB connection is enabled. Opened ESD-17783. |
Thanks @sergioaguirreok, @thameera, I have raised #2096 to fix this. |
Changes
This PR hides the Captcha for enterprise (non-ADFS) SSO connections. As the user is redirected to another vendor to input their password, having a Captcha here makes no sense and is not validated by Auth0 server anyway. However, leaving it in place is an awkward experience, as it looks like the Captcha can be bypassed (you can enter a random value and it still works).
This PR also rolls in #2065, which has now been closed.
References
SDK-2970
(internal support ticket)Testing
Checklist