Example: Setting up Single Sign-On (SSO) from Microsoft Azure AD to Shakudo Keycloak
This guide provides detailed instructions on how to configure Single Sign-On (SSO) using Microsoft as an identity provider (IdP) for Shakudo Keycloak.
Introduction
Single Sign-On allows users to authenticate once and gain access to multiple applications without logging in separately. Integrating Microsoft with Shakudo Keycloak can enhance user experience by allowing them to authenticate using their Microsoft accounts.
Prerequisites
- Access to a Microsoft account
- Admin access to your Shakudo Keycloak instance
Step 1: Configuring Shakudo Keycloak
- Log into your Shakudo Keycloak admin console.
- Select the appropriate realm.
- Navigate to Identity Providers and select Microsoft from the list.
- Copy the redirect URI, you will need this in the next step.
Step 2: Setting up a Microsoft Project
- Go to the Azure Portal.
- Select or create a new Azure AD application.
- Enable the Microsoft Graph API and OAuth Consent Screen.
Step 3: Configuring OAuth Consent Screen
- In the Azure Portal, navigate to the OAuth Consent Screen tab.
- Select the user type (External/Internal) and provide required information like App name, email, etc.
- Save and move to the next step.
Step 4: Setting up Credentials
- Under the Certificates & Secrets tab, click on New client secret.
- Register the application type (Web Application).
- Enter your Authorized redirect URIs:
- Obtain this from your Shakudo Keycloak setup panel. Typically, it looks like
https://<keycloak-domain>/auth/realms/<realm-name>/broker/Microsoft/endpoint
.
- Obtain this from your Shakudo Keycloak setup panel. Typically, it looks like
- Click Create to obtain the client ID and client secret.
Step 5: Configuring Shakudo Keycloak
- Enter the client ID and secret obtained from the Azure Portal.
- (Optional) If you wish to use multi-tenants login leave the Tenant ID field empty.
- Save your settings.
Step 6: Testing the Setup
- Navigate to the Login page provided by Shakudo Keycloak.
- Choose Sign in with Microsoft.
- Follow the prompts to authenticate via Microsoft.
Conclusion
Congratulations! You've successfully configured SSO from Microsoft to Shakudo Keycloak. Your users can now authenticate using their Microsoft accounts to access the applications managed by your Shakudo Keycloak instance.