Azure AD OAuth
Azure Active Directory (Azure AD) provides a single identity for cloud and on-premises apps. Use it as an OAuth provider in Casdoor so users can sign in with their Microsoft accounts.
Register an application
- Register an application in Azure AD and choose the account type (e.g. single tenant).

- Create a client secret and save the value (it is shown only once).

- Under Authentication, add Redirect URIs for Casdoor (e.g.
https://your-casdoor.com/callback).

- Under API permissions, add the scopes you need (e.g.
User.Read). Click Grant admin consent.

- In Casdoor, create an OAuth provider, set Type to Azure AD, and enter the Client ID and Client Secret from the Azure app.
