Sign In with Azure
Azure AD Microsoft OAuth enterprise SSO authentication provider Active Directory deprecatedSet up Azure AD
Section titled “Set up Azure AD”- Visit the Azure Portal and create an account if needed.
- Navigate to “Microsoft Entra ID”.
- Under “Manage”, select “App Registrations”.
- Click ”+ New Registration” and fill out the form:
- Name: Choose a descriptive name
- Supported Account Type: Select based on your needs
- Redirect URI: Choose “Web” and enter your Auth service’s callback URL (e.g., https://<subdomain>.auth.<region>.nhost.run/v1/signin/provider/azuread/callback)
- Click “Register”
- Copy the “Application (client) ID” for later use.
- Create a new client secret:
- Click “Add a certificate or secret”
- Select “New client secret”
- Set a description and expiration time
- Copy the secret’s “Value” (not the ID)
Configure Nhost
Section titled “Configure Nhost”- Go to your project’s settings -> Sign In Methods.
- Find Azure AD, enable it, and enter the client ID and secret.
- Save your changes.
User Sign-In
Section titled “User Sign-In”Once you’ve configured Azure AD as an OAuth provider in Nhost, you can sign in users using the Azure AD provider. See the OAuth Provider Sign-In Guide for detailed implementation instructions including the complete OAuth flow, error handling, and session management.