TrustBuilder Safe-T

White label integration

White label integration allows you to use TrustBuilder to secure your applications without showing the TrustBuilder brand. Users only see your company’s branding, your logos and your colors. TrustBuilder runs in the background as the authentication engine.

A white-label integration can include:

  • Mobile authentication
    Integrate TrustBuilder authentication features into your mobile application using Trustbuilder Android or iOS SDK.

  • Web authentication page
    Integrate TrustBuilder authentication features into a web application using Trustbuilder Web SDK.

  • Custom login portal
    Provide your users with a portal that handles the web authentication experience.

  • User management

    • Self-care → users manage their authentication methods

      Admin management → administrators manage users authentication methods

The authentication logic and API interactions are handled by TrustBuilder, while your applications control the look and feel.

Main phases

#

Phase

Description

1

image-20260525-120621.png API credentials

Get API credentials (Client ID / Client Secret) to communicate with TrustBuilder.

2

image-20260525-120657.png Application and Policies configuration

In the TrustBuilder Admin portal, declare your custom applications and create a custom internal authentication method, define registration policies and authorization rules, then connect your business application.

3

image-20260525-120749.png User provisioning

Provision your users via SCIM, API or JIT.

4

image-20260525-120803.png Technical integration

Embed TrustBuilder SDKs into your mobile and/or web apps.
Connect a custom login portal.

5

image-20260525-121034.png Operations management

Manage authentication flows, transaction confirmations, user self-care and administrative operations.

1. API credentials

Create OAuth M2M application

To generate access tokens and access APIs, log in to Trustbuilder Admin portal and first create an OAuth application with the following settings:

  • Application type: Machine to machine

  • API & Scopes: Internal API --> Click Open and then Select all

  • Authentication methods: Select the client authentication method that best fits your security requirements.

  • Access token: RS256

Once the application is created, you will obtain: Client ID and the Client Secret.

⚠️ Make sure to securely save the Client Secret as it will not be displayed again after creation.

These credentials (Client ID and Client Secret) are then used to generate access tokens, which allow your application to call the TrustBuilder APIs.

Generate an access token

The OAuth application you have previously created has a unique token endpoint. This must be used to generate an access token:

  1. In TrustBuilder Admin portal, click on the OAuth application created.

  2. Go to the Endpoints tab.

  3. Copy the OAuth Token endpoint.

  4. To request an access token, make a POST call to the token endpoint.
    Include the scopes required by the APIs you want to call in the scope parameter, separated by spaces:

    grant_type=client_credentials
    client_id=YOUR_CLIENT_ID
    client_secret=YOUR_CLIENT_SECRET
    scope=SCOPE_1 SCOPE_2
    

    info This example uses Client secret POST.

    ⚠️ If you don’t request the scopes, the access token is still issued, but calls to the API endpoints will fail. The required scopes for each endpoint are listed in the API documentation. Click the lock icon next to an endpoint to see them.
    The response includes:

    • access_token → to be used in API requests to Trustbuilder

    • expires_in → token lifetime in seconds

    • token_type →Bearer

  5. The successful response includes access_token, token_type and expires_in values.

  6. The access token value should be included in API requests:
    Authorization: Bearer ACCESS_TOKEN
    By default, the access token is valid for 900 seconds. You can adjust the lifetime in the TrustBuilder Admin Portal, under the Security Settings tab of the OAuth application.

2. Application and Policies configuration

In Trustbuilder admin portal:

 


3. User provisioning

4. Technical integration

The technical integration phase consists in embedding TrustBuilder authentication capabilities into your applications using SDKs and APIs.

Trustbuilder SDKs

Integrate TrustBuilder authentication directly into your application:

Custom login portal

The custom login portal is the authentication page displayed to your users. It must be developed and hosted on your side. It acts as a bridge with the TrustBuilder backend: it drives the authentication flow, then redirects the user to the Service Provider.

The flow depends on the authentication method used. The two options below are complementary, and you can implement both in the custom login portal.

Option 1: Out-of-Band authentication (mobile app)
The user receives an authentication request on a mobile app to approve a login or transaction.

  1. The portal triggers an authentication notification to the user’s device.
    /api/v1/mfa/login/tenants/{tntAlias}/auth-sessions/{authSessionId}/outofband-request

  2. The portal polls the authentication session until it is validated.
    /api/v1/mfa/login/tenants/{tntAlias}/auth-sessions/{authSessionId}/status

  3. The user approves the request in the mobile app.

  4. Once the user is authenticated, the portal retrieves the redirection information and redirects the user to the Service Provider.
    /api/v1/mfa/login/tenants/{tntAlias}/auth-sessions/{authSessionId}/get-auth-code

See Operations section below

Option 2: Browser-based authentication (Web SDK)
The user authenticates directly in the portal through TrustBuilder Web SDK.

  1. The portal embeds the TrustBuilder Authenticator Web SDK.

  2. The Web SDK handles the authentication in the browser.

  3. Once the user is authenticated, the portal retrieves the redirection information and redirects the user to the Service Provider.
    /api/v1/mfa/login/tenants/{tntAlias}/auth-sessions/{authSessionId}/get-auth-code

See Operations section below

A complete sample implementation of a custom login portal, including both the Out-of-Band endpoints and the embedded Web SDK, is available on the Resource Downloads page.

The interactions between the custom login portal and TrustBuilder are described in the Operations section below.

Authentication Method selection

The Service Provider backend should retrieve authentication methods available for users:

API endpoints:

  • Retrieve authentication methods for a user
    /api/v1/sso/registration/enroll/users/{user_id}/method-selection

  • Send to Trustbuilder the selected authentication method for a user
    /api/v1/sso/registration/enroll/users/{user_id}/select-method


5. Operations

Authentication with SDK mobile app (OOB)

This flow describes an out-of-band (OOB) authentication scenario where a user accesses a web application (Service Provider) from a browser and validates the authentication request using a mobile application embedding the TrustBuilder SDK.

The authentication process relies on OpenID Connect (OIDC) and uses a custom login portal to provide a white-label authentication experience and orchestrate the communication with TrustBuilder during the authentication flow.

The following diagram illustrates a specific OOB authentication scenario. The flow may need to be adapted according to the project requirements and architecture.

Participant

Description

SDK mobile application

The mobile application integrating the TrustBuilder SDK. It is used to receive authentication requests and perform strong authentication.

User

The end user attempting to authenticate and access the application.

Service Provider Web app

The client application that initiates the OIDC authentication flow and grants access after successful authentication.

It should be declared in TrustBuilder as an OIDC Regular Web App.

Service Provider Backend

The backend service responsible for securely calling TrustBuilder APIs, such as retrieving the user's registered authentication methods, and providing the required data to the Web Application.

It should be declared in TrustBuilder as an OAuth Machine-to-Machine application.

Custom Login Portal

Frontend application used to customize the user authentication experience and manage the out-of-band authentication workflow.

TrustBuilder Server

Server handling authorization and authentication.

Authent-2026-06-11-154517.png
  1. The user initiates a sign-in request from the Service Provider web application using a browser.

  2. The Service Provider web application requests the list of authentication methods available for the user from the Service Provider backend.

  3. The Service Provider backend calls the TrustBuilder API to retrieve the authentication methods registered for the user account.

  4. Trustbuilder retrieves the user then their registered authentication method. It sends it back to the Service Provider backend.

    registered type (TB_MFA_MOBILE, TB_MFA_BROWSER, TB_MFA_DESKTOP)
    id
    osName
    appId
    appVersion
    isBlocked
    lastAuthDate
    
  5. The Service Provider Backend retrieves the user's registered authentication methods and matches them with the ACR. It then sends the list of available authentication methods to the Service Provider Web Application.

  6. The web application displays the available authentication methods to the user, allowing them to select the preferred authentication option.

  7. The user selects the authentication method linked to the mobile SDK app.

  8. The Service Provider web application initiates the OIDC authentication flow by calling the /authorize endpoint.

  9. TrustBuilder redirects the browser to the Custom Login Portal to continue the authentication journey using the white-label interface.

  10. The Custom Login Portal creates an out-of-band authentication request by calling /api/v1/mfa/login/tenants/{tntAlias}/auth-sessions/{authSessionId}/outofband-request. This triggers the authentication request.

  11. TrustBuilder sends a push notification to the mobile application embedding the TrustBuilder SDK.

  12. While waiting for the user authentication, the Custom Login Portal periodically polls the TrustBuilder authentication session status endpoint
    /api/v1/mfa/login/tenants/{tntAlias}/auth-sessions/{authSessionId}/status.

  13. Initially, the session status is returned as pending.

  14. The mobile application prompts the user to validate the authentication request using the required authentication factor.

  15. The user provides the requested authentication factor, such as biometric or secret code.

  16. The SDK application sends the successful authentication result to TrustBuilder.

  17. The custom login portal keep polling the authentication session status endpoint.
    /api/v1/mfa/login/tenants/{tntAlias}/auth-sessions/{authSessionId}/status

  18. Once authentication succeeds, TrustBuilder returns a done status.

  19. The custom login portal request the authentication result by calling /api/v1/mfa/login/tenants/{tntAlias}/auth-sessions/{authSessionId}/get-auth-code.

  20. TrustBuilder finalizes the OIDC /authorize flow and redirects the browser back to the Service Provider web application using the redirect URI and an authorization code.

  21. The Service Provider webapp securely exchanges the authorization code for OIDC tokens by calling the /token endpoint on TrustBuilder.

  22. TrustBuilder validates the authorization code and returns the OIDC tokens, including the access token and ID token.

  23. Access to the Service Provider is granted to the user.


Authentication with transaction confirmation

This flow describes how a mobile transaction confirmation process works. It uses OpenID Connect CIBA protocol.

The purpose is to confirm a specific business transaction (such as payment, bank transfer, purchase validation, sensitive operation). The user receives a push notification on their mobile app and explicitly approve or reject the transaction after authenticating.

Transaction confirmation is available only with the mobile applications (iOS and Android). It is not supported by the desktop application or the web application.

Participant

Description

Service Provider

The business application that initiates the transaction (for example: banking application).

Client backend Application

The server-side application declared as a CIBA client in TrustBuilder. It initiates the backchannel authentication request by calling the TrustBuilder CIBA endpoints.

TrustBuilder

Manages the authentication.

SDK mobile application

The user’s registered mobile application embedding the TrustBuilder SDK. It receives push notifications, authenticates the user and displays transaction details for approval.

User

The end user who authenticates and approves or rejects the transaction.

Authent with transaction confirmation-2026-11-12-153819.png
  1. The user initiates a sensitive transaction from the Service Provider.

  2. The Service Provider sends the transaction request to the client back end application.

  3. The client backend application sends a backchannel authentication request to the TrustBuilder/bc-authorize endpoint. This request must be authenticated using the client credentials (ID and secret) of the CIBA application in TrustBuilder admin portal.

    • Example → body parameters of a /bc-authorize request:

       { 
       "scope": "openid", 
       "client_notification_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.exampleNotificationToken123456789",
       "binding_message": "Confirme transaction of $1,200", 
       "login_hint": "42c9a46a-7f84-492c-854f-8f43e76979a",
       "requested_expiry": "900"
       }
      
      • scope: must contain openid.

      • client_notification_token: a valid Bearer token.

      • binding_message: should contain the business data displayed to the user during the transaction approval process.

      • login_hint: the user identifier for whom the authentication request is initiated.
        Its value must match the subject type configured in the CIBA application.

      • requested_expiry: Optional. Defines the request timeout in seconds. After this delay, the transaction confirmation request expires automatically.

      • allow_biometrics: Optional. Biometrics are allowed by default. If set to false, the user will not be allowed to authenticate using biometrics and must use their secret code instead.

  4. TrustBuilder validates the CIBA request, creates the authentication request and associates the business data with the request.

  5. TrustBuilder returns an auth_req_id to the client backend application. This uniquely identifies the pending transaction confirmation request.

  6. TrustBuilder sends a push notification to the user’s SDK mobile application.

  7. The SDK mobile app displays the transaction details and asks the user to approve or reject the transaction.

  8. The user approves the transaction.

  9. The SDK mobile application asks the user to authenticate.

  10. The user authenticates.

  11. The SDK mobile application sends the approval decision to TrustBuilder.

  12. TrustBuilder validates the authentication result and the transaction approval.

  13. TrustBuilder sends the authentication result to the configured backchannel notification endpoint.

  14. The client backend application receives the confirmation result and completes the business transaction.

  15. The Service Provider displays the final transaction status to the user.

TRANSACTION PROOF

The ID token sent at step 13 is the proof that the user approved the transaction.

When decoded, the ID token contains:

  • sub: the identifier of the user who approved the transaction;

  • binding_message_hash: a SHA-256 hash, Base64-encoded, of the binding_message sent at step 3;

  • urn:openid:params:jwt:claim:auth_req_id: the identifier of the transaction confirmation request;

  • at_hash: a hash of the access token;

  • urn:openid:params:jwt:claim:rt_hash: a hash of the refresh token (if refresh tokens are enabled in the CIBA application).

Store the proof: TrustBuilder sends the proof once, at the end of the flow. The client backend application must store the ID token and the original binding_message (the ID token contains only its hash, so the original message is required to prove what the user approved).

Verify the proof:

  1. Verify the ID token signature to make sure the token has not been modified.

  2. Compute the SHA-256 hash of the original binding_message, encoded in Base64, and compare it with binding_message_hash.

  3. Check that urn:openid:params:jwt:claim:auth_req_id matches the auth_req_id returned at step 5.

 

Web authentication

This flow describes a web authentication scenario where a user accesses a protected web application (Service Provider) and validates the authentication request using a web application embedding the TrustBuilder SDK. The authentication process relies on OpenID Connect (OIDC).

The following diagram illustrates a specific web authentication scenario. The flow may need to be adapted according to the project requirements and architecture.

Authent Web SDK-2026-11-16-170904.png
  1. The user initiates a sign-in request from the Service Provider web application using a browser.

  2. The Service Provider web application requests the list of authentication methods available for the user from the Service Provider backend.

  3. The Service Provider backend calls the TrustBuilder API to retrieve the authentication methods registered for the user account.

  4. Trustbuilder retrieves the user then their registered authentication method. It sends it back to the Service Provider backend.

    registered type (TB_MFA_MOBILE, TB_MFA_BROWSER, TB_MFA_DESKTOP)
    id
    osName
    appId
    appVersion
    isBlocked
    lastAuthDate
    
  5. The Service Provider Backend retrieves the user's registered authentication methods and matches them with the ACR. It then sends the list of available authentication methods to the Service Provider Web Application.

  6. The web application displays the available authentication methods to the user, allowing them to select the preferred authentication option.

  7. The user selects the authentication method linked to the Web SDK app.

  8. The Service Provider web application initiates the OIDC authentication flow by calling the /authorize endpoint.

  9. TrustBuilder redirects the browser to the SDK web app, part of the Custom Login Portal. The redirect URL includes the session_id, tnt_alias and login_hint parameters.

  10. The SDK web app calls startSecureTokensListing() to retrieve the secure tokens stored in the browser.

  11. The SDK web app starts the authentication by calling startAuthentication({ host, tknAlias, sessionId }).setup() on TrustBuilder.

  12. TrustBuilder confirms the setup is OK.

  13. The SDK web app asks the user for their secret code.

  14. The user enters their secret code.

  15. The SDK web app sends the credential to TrustBuilder by calling execute({ cred, credType: 'SECRET_CODE' }).

  16. TrustBuilder validates the credential and returns an authentication success.

  17. The Custom login portal requests the authentication result by calling POST /api/v1/mfa/login/tenants/{tntAlias}/auth-sessions/{authSessionId}/get-auth-code.

  18. TrustBuilder finalizes the OIDC /authorize flow and returns the redirect URI with an authorization code.

  19. The Custom login portal redirects the browser back to the Service Provider web application using the redirect URI and an authorization code.

  20. The Service Provider web app securely exchanges the authorization code for OIDC tokens by calling the /token endpoint on TrustBuilder.

  21. TrustBuilder validates the authorization code and returns the OIDC tokens, including the access token and ID token.

  22. Access to the Service Provider is granted to the user.