Before you start
To authenticate the user with single sign-on, you should:
- Set up an endpoint that will be used to initiate the SSO login.The endpoint should accept a query parameter with the tenant ID from which the user attempts to initiate SSO.
Set up an endpoint to which the user will be redirected with the SSO login result.
Generate a URL to the
https://cloud.acronis.com/api/idp/v1/authorizeendpoint and redirect the user to that URL with the following data specified in its query string parameters:A client ID in the
client_idquery string parameter.- A redirect URL in the
redirect_uriquery string parameter.This must be an endpoint that will process the SSO login result. Specify the following scopes in the
scopequery string parameter:openidrolesto receive access roles that the user has in Acronis.tenantsto receive the list of tenants where the user is located in Acronis.
A unique random string in the
stateparameter.[For PKCE] Specify the following parameters:
Specify the
S256method in thecode_challenge_methodquery string parameter.Specify the base64-encoded SHA-256-encrypted value in the
code_challengequery string parameter. Keep the plain value for token exchange.
Next step: Exchanging code.