| Endpoint | Method | Admin Required |
|---|---|---|
/api/v1/admin/oidcProviders | POST | Yes |
Registers a new OIDC identity provider. Once created, it immediately shows up as a sign-in option on the login page (unless enabled is false).
{API_BASE_URL}/api/v1/auth/oidc/callback as the redirect URI in the identity provider's own app configuration - this single URL is shared by every provider configured in Alarik.{issuerURL}/.well-known/openid-configuration from this.{
"name": "Google",
"issuerURL": "https://accounts.google.com",
"clientId": "your-client-id",
"clientSecret": "your-client-secret",
"enabled": true
}
Returns the created provider (without the client secret):
{
"id": "63717CB9-DE10-44D2-AC69-774F57F6C148",
"name": "Google",
"issuerURL": "https://accounts.google.com",
"clientId": "your-client-id",
"enabled": true
}
| Status | Reason |
|---|---|
400 | Validation failed (empty name, issuer URL, client ID, or client secret) |