DocsEdge StackSingle Sign-On with Google
Single Sign-On with Google
Create an OAuth client in the Google API Console
To use Google as an IdP for Single Sign-On, you will first need to create an OAuth web application in the Google API Console.
Open the Credentials page in the API Console
Click
Create credentials > OAuth client ID
.Select
Web application
and give it a nameUnder Restrictions, fill in the Authorized redirect URIs with
Click
Create
Record the
client ID
andclient secret
in the pop-up window. You will need these when configuring Ambassador Edge Stack
Set up Ambassador Edge Stack
After creating an OAuth client in Google, configuring Ambassador Edge Stack to make use of it for authentication is simple.
Create an OAuth Filter with the credentials from above:
Create a FilterPolicy to use the
Filter
created aboveApply both the
Filter
andFilterPolicy
above withkubectl
Now any requests to https://{{AMBASSADOR_URL}}/backend/get-quote/
will require authentication from Google.