Legacy Dev Forum Posts

 View Only

Sign Up

How to choose Identity Provider from JavaScript

  • 1.  How to choose Identity Provider from JavaScript

    Posted 06-05-2025 18:04

    Saravanan.natarajan | 2024-01-10 03:34:12 UTC | #1

    We have more than identity provider integrated with genesys, like Azure,Auth0 and Octa and using authorization code flow grant to authenticate web application and get access token. When we initiate login using JavaScript SDK, In login screen its always asking to choose the identity provider manually, Is there any way to choose identity provider programmatically to skip this manual selection? For example passing identity provider name as third param which will initiate login for the respective IDP.

    We cannot use Disable genesys cloud authentication in organizational settings , as that will affect all the login and we may need to choose different identity provider(Azure,Auth0) for different websites


    IntegrationsRUs | 2024-01-13 23:07:19 UTC | #2

    Check out this on github which shows options to performing client auth where is allows you to send in the provider into the loginimplicit.

    /**

      • Authentication provider to log in with e.g. okta, adfs, salesforce, onelogin.
      • This is only used when an org is also specified.

    */ provider?: string;

    https://github.com/MyPureCloud/genesys-cloud-client-auth


    system | 2024-02-13 23:08:04 UTC | #3

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 24022