Single Sign-on with Nginx

In this post i’ll show how to use nginx as a reverse proxy to use single sign-on by Google oAuth2.

First of all we need to get github/bitly/oauth2Proxy thats will become our authenticator for communicating google api.
After that we need to create oAuth2 api from google console.

After that we get our client id and secret key.
Now we need to configure our nginx for act reverse proxy so our service become request -> nginx -> sso – > backend.

After that configuration is done we should start our proxy with keys and ids.

Thats it now you can join with your email-domain to your website.

This entry was posted in Golang and tagged , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *