Restrict access to google domain #274
Comments
Upvote for this. @Thameemans , how did you end up working around this ? |
On the section, successCallback. It says, to restrict emails that equate to the host. One must What I did was in the responseGoogle(reponse) {...} callback function, get Then, do a GET request to It still would be nice to have a feature where
|
@charlesjavelona @Thameemans you can use the hostedDomain prop on the element to limit what accounts are visible in the account selection screen. Note that this does not validate that the account belongs to the organization/domain, it merely prevents normal users from accidentally selecting a wrong account. You may still want to validate the token as described in the docs.
|
You should configure your CLIENT ID to accept only specific domains. https://developers.google.com/identity/sign-in/web/backend-auth |
We need to only access the work email id, no need for @gmail.com domain. How to restrict it?
The text was updated successfully, but these errors were encountered: