DocsEdge Stack
1.13
Single Sign-On with Azure Active Directory (AD)
Single Sign-On with Azure Active Directory (AD)
Set up Azure AD
To use Azure as your IdP, you will first need to register an OAuth application with your Azure tenant.
Follow the steps in the Azure documentation here to register your application. Make sure to select "web application" (not native application) when creating your OAuth application.
After you have registered your application, click on
App Registrationsin the navigation panel on the left and select the application you just created.Make a note of both the client and tenant IDs as these will be used later when configuring Ambassador Edge Stack.
Click on
Authenticationin the left sidebar.Under the
Platform configurationssection, click on+ Add a platform, then selectWeband add this URLhttps://{{AMBASSADOR_URL}}/.ambassador/oauth2/redirection-endpointinto theRedirect URIsinput fieldNote: Azure AD requires the redirect endpoint to handle TLS
Make sure your application is issuing
access tokensby clicking on theAccess tokens (used for implicit flows)checkbox under theImplicit grant and hybrid flowssectionFinally, click on
Configureto save your changes
Click on
Certificates & secretsin the left sidebar. Click+ New client secretand set the expiration date you wish. Copy the value of this secret somewhere. You will need it when configuring Ambassador Edge Stack.
Set Up Ambassador Edge Stack
After configuring an OAuth application in Azure AD, 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
Filtercreated aboveApply both the
FilterandFilterPolicyabove withkubectl
Now any requests to https://{{AMBASSADOR_URL}}/backend/get-quote/ will require authentication from Azure AD.
ON THIS PAGE