| Constructor and Description |
|---|
SCAController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<AuthorizeResponse> |
login(String login,
String pin)
STEP-P1, STEP-A1: Validates the login and password of a user.
|
org.springframework.http.ResponseEntity<AuthorizeResponse> |
selectMethod(String scaId,
String authorisationId,
String methodId,
String cookies)
Select a method for sending the authentication code.
|
org.springframework.http.ResponseEntity<AuthorizeResponse> |
validateAuthCode(String scaId,
String authorisationId,
String authCode,
String cookies) |
public org.springframework.http.ResponseEntity<AuthorizeResponse> login(String login, String pin)
Implementation first validates existence of the consent. If the consent does not exist or has the wrong status, the request is rejected.
Call the backend middleware to obtain a login token. This is a token only valid for the sca process.
Store the login token in a cookie.
If the user has no sca method, then return the consent access token.
If the user has only one sca method, sent authentication code to the user and return the sac method id in the AuthorizeResponse
If the user has more than one sca methods, returns the list of sca methods in the AuthorizeResponse and wait for sca method selection.
Method expects
public org.springframework.http.ResponseEntity<AuthorizeResponse> selectMethod(String scaId, String authorisationId, String methodId, String cookies)
selectMethod in interface SCAApiscaId - the id of the login processmethodId - the auth method idauthorisationId - the auth id.cookies - the cookie stringpublic org.springframework.http.ResponseEntity<AuthorizeResponse> validateAuthCode(String scaId, String authorisationId, String authCode, String cookies)
validateAuthCode in interface SCAApiCopyright © 2020. All rights reserved.