Initiate IDP Login
Initiates a login flow by redirecting the user to the enterprise Identity Provider (IDP) configured for the business.
The protocol (SAML 2.0 or OIDC) is determined automatically based on the BusinessMapping record associated with the client parameter.
Flow:
- Client calls
GET /api2/idp/loginwithclientandredirect_uriin the request body. - GIS looks up the BusinessMapping to determine the IDP protocol.
- GIS returns a
302 Foundredirect to the IDP's login page. - After authentication, the IDP calls the appropriate GIS callback endpoint (SAML or OIDC).
- GIS redirects to the original
redirect_uriwith a one-timecodeparameter.
Prerequisites:
- The
clientmust reference an OAuth application with the Advance Auth scope. - IDP authentication must be enabled for the business.
- A valid BusinessMapping record must exist linking the client to an IDP configuration.
Headers
- Type: stringX
- Correlation - Id Optional caller-provided correlation ID; echoed in responses when present.
Body·
required
application/json
Request body containing the client identifier and redirect URI.
- Type: stringclientrequired
OAuth client ID provided by the business and configured with the Advance Auth scope. Required to identify the client application for authentication.
- Type: string Format: uriredirect
_uri requiredURI to redirect to after successful IDP authentication. Must match one of the configured redirect URIs for the OAuth application.
Responses
- application/json
- application/json
- application/json
- application/json
Request Example for get/api2/idp/login
curl https://SERVER_NAME_GOES_HERE/api2/idp/login \
--header 'Content-Type: application/json' \
--data '{
"client": "",
"redirect_uri": ""
}'
No Body