FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    How to Enable Identity Providers for Applications via FusionAuth API

    Scheduled Pinned Locked Moved
    Frequently Asked Questions (FAQ)
    api
    1
    2
    1
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      wesley
      last edited by

      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?

      W 1 Reply Last reply Reply Quote 0
      • W
        wesley @wesley
        last edited by

        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].enabled
        

        Documentation links for details and examples:

        • SAML Identity Provider API
        • OIDC Identity Provider API

        The general identity provider API overview is here:
        Identity Provider APIs

        1 Reply Last reply Reply Quote 0
        • First post
          Last post