• JMap.User.loginWithIdentityProvider

    Logs in the user using the specified Identity Provider. See JMap.Server.getAllIdentityProvidersById for info about Identity providers

    Parameters

    • providerId: string

      the JServerIdentityProvider id

    Returns void

    Example

    // fetch all Identity Providers
    const allProviders = JMap.Server.getAllIdentityProvidersById()
    // { idp-1: { id: "idp-1", type: "sso", ..... } }

    // Open a new user session using the first provider received
    JMap.User.loginWithIdentityProvider("idp-1")
    // will redirect the browser to the identity provider for authentication