Download OpenAPI specification:Download
Login users using social login providers like Google Sign-In. This implements a backend-to-backend integration for authentication. Irrespective of the social login provider, the flow includes three steps: initiating a login, submitting the received code to Mosaic, and finally completing authentication with Mosaic.
Starts the Google login flow. This call returns an authorization URL to redirect the user to.
Backend auth initialized successfully.
{- "state": "string"
}
{
}
Completes the Google social login flow and authenticates the user in Mosaic.
resource | string Resource URI the authentication request is attempting to access, which is reflected in the audience ( |
object Used to request additional claims in the ID token, such as roles, permissions, and other user profile data. The structure is per the OIDC Standard. For supported claims and how to request custom claims, see the ID Token Reference. | |
org_id | string Organization ID, used for member login in B2B scenarios |
object Client attributes | |
session_id | string Used to associate the authentication with an existing session (such as for MFA). If unspecified, a new session is created and the session ID is returned. |
transaction_id required | string The transaction identifier that was previously returned by the verification endpoint. This ID is required to associate this authentication request with the verified token information stored during the verification step. |
user_id required | string An identifier of the user for whom the token is being requested |
Returns user tokens
{- "resource": "string",
- "claims": {
- "id_token": {
- "roles": null
}
}, - "org_id": "string",
- "client_attributes": {
- "user_agent": "string",
- "ip_address": "string"
}, - "session_id": "string",
- "transaction_id": "string",
- "user_id": "string"
}
{- "access_token": "string",
- "id_token": "string",
- "refresh_token": "string",
- "token_type": "string",
- "expires_in": 3600,
- "session_id": "string"
}
Starts the Facebook login flow. This call returns an authorization URL to redirect the user to.
Backend auth initialized successfully.
{- "state": "string"
}
{
}
Completes the Facebook social login flow and authenticates the user in Mosaic.
resource | string Resource URI the authentication request is attempting to access, which is reflected in the audience ( |
object Used to request additional claims in the ID token, such as roles, permissions, and other user profile data. The structure is per the OIDC Standard. For supported claims and how to request custom claims, see the ID Token Reference. | |
org_id | string Organization ID, used for member login in B2B scenarios |
object Client attributes | |
session_id | string Used to associate the authentication with an existing session (such as for MFA). If unspecified, a new session is created and the session ID is returned. |
transaction_id required | string The transaction identifier that was previously returned by the verification endpoint. This ID is required to associate this authentication request with the verified token information stored during the verification step. |
user_id required | string An identifier of the user for whom the token is being requested |
Returns user tokens
{- "resource": "string",
- "claims": {
- "id_token": {
- "roles": null
}
}, - "org_id": "string",
- "client_attributes": {
- "user_agent": "string",
- "ip_address": "string"
}, - "session_id": "string",
- "transaction_id": "string",
- "user_id": "string"
}
{- "access_token": "string",
- "id_token": "string",
- "refresh_token": "string",
- "token_type": "string",
- "expires_in": 3600,
- "session_id": "string"
}
Starts the Apple login flow. This call returns an authorization URL to redirect the user to.
Backend auth initialized successfully.
{- "state": "string"
}
{
}
Completes the Apple social login flow and authenticates the user in Mosaic.
resource | string Resource URI the authentication request is attempting to access, which is reflected in the audience ( |
object Used to request additional claims in the ID token, such as roles, permissions, and other user profile data. The structure is per the OIDC Standard. For supported claims and how to request custom claims, see the ID Token Reference. | |
org_id | string Organization ID, used for member login in B2B scenarios |
object Client attributes | |
session_id | string Used to associate the authentication with an existing session (such as for MFA). If unspecified, a new session is created and the session ID is returned. |
transaction_id required | string The transaction identifier that was previously returned by the verification endpoint. This ID is required to associate this authentication request with the verified token information stored during the verification step. |
user_id required | string An identifier of the user for whom the token is being requested |
Returns user tokens
{- "resource": "string",
- "claims": {
- "id_token": {
- "roles": null
}
}, - "org_id": "string",
- "client_attributes": {
- "user_agent": "string",
- "ip_address": "string"
}, - "session_id": "string",
- "transaction_id": "string",
- "user_id": "string"
}
{- "access_token": "string",
- "id_token": "string",
- "refresh_token": "string",
- "token_type": "string",
- "expires_in": 3600,
- "session_id": "string"
}
Starts the Tiktok login flow. This call returns an authorization URL to redirect the user to.
Backend auth initialized successfully.
{- "state": "string"
}
{
}
Completes the Tiktok social login flow and authenticates the user in Mosaic.
resource | string Resource URI the authentication request is attempting to access, which is reflected in the audience ( |
object Used to request additional claims in the ID token, such as roles, permissions, and other user profile data. The structure is per the OIDC Standard. For supported claims and how to request custom claims, see the ID Token Reference. | |
org_id | string Organization ID, used for member login in B2B scenarios |
object Client attributes | |
session_id | string Used to associate the authentication with an existing session (such as for MFA). If unspecified, a new session is created and the session ID is returned. |
transaction_id required | string The transaction identifier that was previously returned by the verification endpoint. This ID is required to associate this authentication request with the verified token information stored during the verification step. |
user_id required | string An identifier of the user for whom the token is being requested |
Returns user tokens
{- "resource": "string",
- "claims": {
- "id_token": {
- "roles": null
}
}, - "org_id": "string",
- "client_attributes": {
- "user_agent": "string",
- "ip_address": "string"
}, - "session_id": "string",
- "transaction_id": "string",
- "user_id": "string"
}
{- "access_token": "string",
- "id_token": "string",
- "refresh_token": "string",
- "token_type": "string",
- "expires_in": 3600,
- "session_id": "string"
}
Submits the authorization code returned by Google to exchange for user identity information
Returns user claims and transaction ID
{- "code": "string",
- "state": "string"
}
{- "transaction_id": "string",
- "claims": { }
}
Submits the authorization code returned by Facebook to exchange for user identity information
Returns user claims and transaction ID
{- "code": "string",
- "state": "string"
}
{- "transaction_id": "string",
- "claims": { }
}
Submits the authorization code returned by Apple to exchange for user identity information
Returns user claims and transaction ID
{- "code": "string",
- "state": "string"
}
{- "transaction_id": "string",
- "claims": { }
}
Submits the authorization code returned by TikTok to exchange for user identity information
Returns user claims and transaction ID
{- "code": "string",
- "state": "string"
}
{- "transaction_id": "string",
- "claims": { }
}