How to Enable Identity Providers for Applications via FusionAuth API
-
I’d like to enable an identity provider for an application programmatically, rather than configuring it manually through the FusionAuth UI. Is there a way to do this via API?
-
Yes, you can enable identity providers for applications using the API.
Here’s how:
- Use the specific API endpoint for the identity provider type you’re configuring (SAML, OIDC, etc.).
For example, if you’re enabling a SAML or OIDC provider, you’ll use:
PATCH /api/identity-provider/{identityProviderId}In your request body, set this field to true:
identityProvider.applicationConfiguration[applicationId].enabledDocumentation links for details and examples:
The general identity provider API overview is here:
Identity Provider APIs -
W wesley marked this topic as a question on
-
W wesley has marked this topic as solved on