Base solution for your next web application
Open Closed

Google Authentication with specific domain? #2851


User avatar
0
joe704la created

I am currently building a Angular2 application for our business. I want to enable the Google Authentication. We use Google Apps and I only want to allow for our specific domain to be able to login and no other Google account. Would you have any good ideas how I can achieve this?


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    I don't know if there is a better way but you can check user's domain in GoogleAuthProviderApi and return null if the domain is not in your list.