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
string
required
The issuer identifier for your OIDC provider. This should match the
iss claim in JWT tokens.string
required
The audience identifier for your application. This should match the
aud claim in JWT tokens.string
required
The JSON Web Key Set URI where Magic can fetch public keys for JWT verification.
Response Fields
string
Unique identifier for the created identity provider.
string
The issuer identifier returned from the request.
string
The audience identifier returned from the request.
string
The JWKS URI returned from the request.
Get Identity Providers
Retrieve all configured identity providers for your application.cURL
Response Fields
array
Array of identity provider objects.
Update Identity Provider
Update an existing identity provider configuration.cURL
Request Parameters
string
required
The unique identifier of the identity provider to update.
string
required
The updated issuer identifier for your OIDC provider.
string
required
The updated audience identifier for your application.
string
required
The updated JSON Web Key Set URI.
Response Fields
string
The identity provider ID (unchanged).
string
The updated issuer identifier.
string
The updated audience identifier.
string
The updated JWKS URI.
Delete Identity Provider
Remove an identity provider configuration from your application.cURL
Request Parameters
string
required
The unique identifier of the identity provider to delete.