In this section, the main methods for obtaining an access token and a user token will be outlined.
Backend Access Token Generation
The Backend Access Token Generation process involves obtaining an access token from the API, which is essential for authenticating requests. To generate an access token, you need to Application ID (username) and Application Secret (password). Upon successful authentication, the API returns an access token, its expiration time, and a refresh token. The access token must be included in the Authorization header of subsequent API requests to access protected resources. This method allows obtaining an access token in two ways. The first way is by using the Application ID and Application Secret. The second way is by using the refresh token.
A client token is essential for secure and personalized interactions between banks and their customers when utilizing the Concierge Service SDK. Banks integrating this SDK into their mobile applications must generate a client token to enable its functionality. This token contains crucial information about both the bank generating it and the customer using the mobile app.
There are two types of client tokens available for implementation:
Phone Number Hash-Based Token – This token is generated from the hash of the client’s financial phone number. It is expected that these phone numbers have been preloaded into the Concierge Service system via web services and identified as belonging to the bank’s clients.
Internal Client ID-Based Token – Alternatively, the token can be generated using the bank’s internal client identifier, which must be unique within the bank’s system.
All users authenticated with a client token are automatically recognized as bank clients and gain access to banking services through the Concierge Service SDK within the mobile application.
Method for retrieving a user token based on the hash of the phone number.
This method generates a Client Access Token, which is required for performing operations with user-specific data. To generate the token, a Backend Access Token is needed. The Backend Access Token is generated by a separate method and must be passed in the Authorization header of the request.
The request body must contain an array of objects. Each object should include the following fields:
Name
Type
Description
Integer
The duration in minutes for which the Client Access Token will remain valid. The value must be between 1 and 518,400 minutes.
ArrayObject
A list of objects containing information about
the client's phone numbers.
Name
Type
Description
String
Phone number hash.
Boolean
Determines whether the phone number is primary or not. Only one phone number can be designated as primary.
Response
Example
Method for retrieving a user token based on customer ID.
Method for Independent Service Activation by the Client This method is used in scenarios where the bank does not perform pre-activation and does not provide prior client information. In this case, the client independently connects and activates the concierge service using the provided token type.
Process Description:
Application Scenario
This method is suitable for independent client service activation when:
The bank has not pre-activated the service.
Client information is not available in the system.
Service Activation Steps
The client initiates the activation process via the SDK, providing the necessary data for identification and service activation.