Overview
Identity providers are essential for Express API authentication. They define how users authenticate and provide the necessary configuration for JWT token validation. Each provider includes an issuer, audience, and JWKS URI for secure token verification.You must configure at least one identity provider before users can authenticate with your Express API application.
Create Identity Provider
Create a new identity provider configuration for your application.cURL
Request Parameters
The issuer identifier for your OIDC provider. This should match the
iss claim in JWT tokens.The audience identifier for your application. This should match the
aud claim in JWT tokens.The JSON Web Key Set URI where Magic can fetch public keys for JWT verification.
Response Fields
Unique identifier for the created identity provider.
The issuer identifier returned from the request.
The audience identifier returned from the request.
The JWKS URI returned from the request.
Get Identity Providers
Retrieve all configured identity providers for your application.cURL
Response Fields
Array of identity provider objects.
Update Identity Provider
Update an existing identity provider configuration.cURL
Request Parameters
The unique identifier of the identity provider to update.
The updated issuer identifier for your OIDC provider.
The updated audience identifier for your application.
The updated JSON Web Key Set URI.
Response Fields
The identity provider ID (unchanged).
The updated issuer identifier.
The updated audience identifier.
The updated JWKS URI.
Delete Identity Provider
Remove an identity provider configuration from your application.cURL
Request Parameters
The unique identifier of the identity provider to delete.