Microsoft OIDC
Configure Microsoft Entra OAuth for SqlOS AuthServer.
Setup
- Register an app in Azure Portal > App Registrations
- Under Authentication > Web, add the redirect URI:
http://localhost:5062/api/v1/auth/oidc/callback/{connectionId}
- Under Certificates & secrets, create a client secret
- Create the OIDC connection in SqlOS:
curl -X POST http://localhost:5062/sqlos/admin/auth/api/oidc-connections \
-H "Content-Type: application/json" \
-d '{
"providerType": "microsoft",
"displayName": "Microsoft",
"clientId": "YOUR_AZURE_APP_CLIENT_ID",
"clientSecret": "YOUR_AZURE_APP_CLIENT_SECRET"
}'
- Enable the connection:
curl -X POST http://localhost:5062/sqlos/admin/auth/api/oidc-connections/{id}/enable
See OIDC Social Login for the complete auth flow.