Front-initiated SCA
Use front-initiated strong customer authentication (SCA) when your application must authenticate the user before calling a protected Xpollens endpoint.
Your application starts authentication through the SCA provider's software development kit (SDK), obtains an authentication proof, and includes that proof in the business request. Xpollens verifies the proof before invoking the business action and returns the endpoint's response directly.
Unlike server-initiated SCA, this flow does not wait for Xpollens to start an authentication challenge after you call the business endpoint.
Choose the action
| Action | Endpoint | Integration guide |
|---|---|---|
| Activate a token for Xpay in-app verification | POST /api/sca/normal/vX.Y/appUserId/token/xpayInAppVerifActivation/cardExternalRef | Xpay integration |
| Display card details: primary account number (PAN), card verification value (CVV), and expiration date | POST /api/sca/normal/vX.Y/holderExternalRef/carddisplay/cardExternalRef | Display card details |
| Display the card's personal identification number (PIN) | GET /api/sca/normal/vX.Y/holderExternalRef/pin/cardExternalRef?channelCode=XX | Display the card PIN |
Use the API version, identifiers, request format, and prerequisites specified in the guide for the selected action. The table uses vX.Y as a version placeholder.
The /sca/normal/ path distinguishes these endpoints from those that trigger server-initiated SCA.
Authenticate the user
- Generate an SCA request with the provider's SDK, using the wallet enrolled for the user who will perform the action.
- Let the user complete authentication through the SDK integration in your application.
- After successful authentication, obtain the proof from the SDK and pass it to your backend with the requested action.
- Call the selected Xpollens endpoint with the proof in the request header specified by its integration guide. Include any additional certificate or request data required for that action and platform.
- Handle the endpoint's response and complete any SDK-side processing described in the action's guide.
Do not treat the start of authentication, the display of a prompt, or the user's interaction alone as a successful SDK authentication result.
Sequence diagram
The following sequence shows an application that relays the business request through its backend.
sequenceDiagram
autonumber
actor User
participant App as Your application
participant SDK as SCA provider SDK
participant Partner as Your backend
participant XPO as Xpollens
User->>App: Request a sensitive action
App->>SDK: Start authentication
SDK->>User: Prompt for authentication
User-->>SDK: Complete authentication
SDK-->>App: Successful result and authentication proof
App->>Partner: Requested action and proof
Partner->>XPO: Call the protected endpoint with the proof
XPO->>XPO: Validate the proof and its association with the user
alt Proof rejected
XPO-->>Partner: Error response
else Proof accepted
XPO->>XPO: Invoke the business action
XPO-->>Partner: Business endpoint response
end
Partner-->>App: Return the result
The diagram starts with successful SDK authentication. If the user cancels or authentication fails before a successful result is obtained, do not proceed as though the user had authenticated.
Result and callback behavior
Your application obtains the authentication proof through the SDK and sends it in the Xpollens request. Xpollens verifies the proof and returns the business endpoint's response directly.
This front-initiated flow does not use callback 36. Handle the endpoint's success or error response using the integration guide for the action. Do not wait for a callback 36 notification to obtain this response.
Distinguish these results:
| Result | What it establishes |
|---|---|
| Successful SDK authentication | Your application has obtained the authentication proof to include in the business request. The business action has not yet been executed by that request. |
| Proof accepted by Xpollens | The request can proceed to the business action. It does not guarantee that the business action will succeed. |
| Business endpoint response | The result to interpret according to the selected action's integration guide. An error is not necessarily a proof-validation error. |
When the proof is missing or rejected, Xpollens does not forward the business request.
SDK notifications delivered to your application are separate from HTTP webhooks delivered to your server. The absence of callback 36 does not replace or remove any business-specific notifications documented for the action, such as Xpay token lifecycle notifications.
Technical details
Follow the Antelop mobile SCA integration guide for the SDK authentication procedure.
Use the dedicated Xpay or card selfcare guide for proof headers, platform-specific certificate requirements, and response processing. This overview does not replace those action-specific instructions.
An SDK certificate is not an SDK private key. Do not export SDK private keys or send them to your backend or Xpollens.
For card details and PIN display, follow the SDK secure-display workflow described in Physical Cards Selfcare. Do not treat successful authentication alone as completion of the secure-display operation.
Keep authentication proofs and sensitive response data out of application logs and analytics.
Related guidance
Updated 1 day ago