Eduardo Veras
Eduardo Veras

Reputation: 981

What api to use GSuite and google identity on a company intranet

Im making an intranet software for my company and we have a g-suite account with all the employees accounts. i was looking in the google identity documentation and g-suite documentation and didnt find a way to integrate this into a javascript frontend app. What API exacyly should i use to validate user credentials on gsuite?

Upvotes: 1

Views: 531

Answers (1)

joshnik
joshnik

Reputation: 482

oAuth2 would be the method for user verification: https://developers.google.com/identity/protocols/OAuth2

You would have the user authenticate their google account via oAuth2 and redirect back to your site where you would do a logical check, say, take the email address from the payload and strip out the domain and ensure the domain was your company's domain. If it is... let them proceed.

Upvotes: 2

Related Questions