Documentation

Microsoft OIDC

← All docs

Microsoft OIDC

Configure Microsoft Entra OAuth for SqlOS AuthServer.

Setup

  1. Register an app in Azure Portal > App Registrations
  2. Under Authentication > Web, add the redirect URI:
http://localhost:5062/api/v1/auth/oidc/callback/{connectionId}
  1. Under Certificates & secrets, create a client secret
  2. 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"
  }'
  1. 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.