public interface UserMgmtRestAPI
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<SCALoginResponseTO> |
authorise(String login,
String pin,
UserRoleTO role)
Initiates the user login process.
|
org.springframework.http.ResponseEntity<SCALoginResponseTO> |
authoriseForConsent(String consentId,
String authorisationId,
OpTypeTO opType) |
org.springframework.http.ResponseEntity<SCALoginResponseTO> |
authoriseForConsent(String login,
String pin,
String consentId,
String authorisationId,
OpTypeTO opType)
Initiates the user login process.
|
org.springframework.http.ResponseEntity<SCALoginResponseTO> |
authorizeLogin(String scaId,
String authorisationId,
String authCode)
Send the auth code for two factor login.
|
org.springframework.http.ResponseEntity<List<UserTO>> |
getAllUsers() |
org.springframework.http.ResponseEntity<UserTO> |
getUser() |
org.springframework.http.ResponseEntity<UserTO> |
getUserById(String userId) |
org.springframework.http.ResponseEntity<Boolean> |
multilevel(String login,
String iban) |
org.springframework.http.ResponseEntity<Boolean> |
multilevelAccounts(String login,
List<AccountReferenceTO> references) |
org.springframework.http.ResponseEntity<UserTO> |
register(String login,
String email,
String pin,
UserRoleTO role)
Registers a new user with the system.
|
org.springframework.http.ResponseEntity<SCALoginResponseTO> |
selectMethod(String scaId,
String authorisationId,
String scaMethodId)
Selects the scaMethod to use for sending a login transaction number to the user.
|
org.springframework.http.ResponseEntity<Void> |
updateUserScaData(List<ScaUserDataTO> data) |
org.springframework.http.ResponseEntity<BearerTokenTO> |
validate(String token) |
org.springframework.http.ResponseEntity<Void> |
verifyAuthConfirmationCode(String authorisationId,
String authConfirmCode) |
static final String BASE_PATH
@GetMapping(value="/multilevel") org.springframework.http.ResponseEntity<Boolean> multilevel(@RequestParam(value="login") String login, @RequestParam(value="iban") String iban)
@PostMapping(value="/multilevel") org.springframework.http.ResponseEntity<Boolean> multilevelAccounts(@RequestParam(value="login") String login, @RequestBody List<AccountReferenceTO> references)
@PostMapping(value="/register") org.springframework.http.ResponseEntity<UserTO> register(@RequestParam(value="login") String login, @RequestParam(value="email") String email, @RequestParam(value="pin") String pin, @RequestParam(name="role",defaultValue="CUSTOMER") UserRoleTO role)
login - user loginemail - users e-mail addresspin - users pinrole - users Role at Ledgers@PostMapping(value="/login") org.springframework.http.ResponseEntity<SCALoginResponseTO> authorise(@RequestParam(value="login") String login, @RequestParam(value="pin") String pin, @RequestParam(value="role") UserRoleTO role)
This response object contains an scaId that must be used to proceed with the login.
if the SCAResponseTO.getScaStatus() equals
ScaStatusTO.EXEMPTED the response will contain the final bearer token.
ScaStatusTO.SCAMETHODSELECTED means the auth code has been sent to the user. Must be entered by the user.
ScaStatusTO.PSUAUTHENTICATED there will be a list of scaMethods for selection in the response.
ScaStatusTO.PSUIDENTIFIED the user exists but given password/pin did not match.
login - user loginpin - users pinrole - users Role at Ledgers@PostMapping(value="/loginForConsent") org.springframework.http.ResponseEntity<SCALoginResponseTO> authoriseForConsent(@RequestParam(value="login") String login, @RequestParam(value="pin") String pin, @RequestParam(value="consentId") String consentId, @RequestParam(value="authorisationId") String authorisationId, @RequestParam(value="opType") OpTypeTO opType)
This response object contains an scaId that must be used to proceed with the login.
if the SCAResponseTO.getScaStatus() equals
ScaStatusTO.EXEMPTED the response will contain the final bearer token.
ScaStatusTO.SCAMETHODSELECTED means the auth code has been sent to the user. Must be entered by the user.
ScaStatusTO.PSUAUTHENTICATED there will be a list of scaMethods for selection in the response.
ScaStatusTO.PSUIDENTIFIED the user exists but given password/pin did not match.
login - users loginpin - users pinconsentId - identifier of consent at CMS or other consent management systemauthorisationId - the identifier of authorization objectopType - the type of carried operation@PostMapping(value="/loginForConsent/oauth") org.springframework.http.ResponseEntity<SCALoginResponseTO> authoriseForConsent(@RequestParam(value="consentId") String consentId, @RequestParam(value="authorisationId") String authorisationId, @RequestParam(value="opType") OpTypeTO opType)
@PostMapping(value="/validate") org.springframework.http.ResponseEntity<BearerTokenTO> validate(@RequestParam(value="accessToken") String token)
@PutMapping(value="/{scaId}/authorisations/{authorisationId}/scaMethods/{scaMethodId}")
org.springframework.http.ResponseEntity<SCALoginResponseTO> selectMethod(@PathVariable(name="scaId")
String scaId,
@PathVariable(value="authorisationId")
String authorisationId,
@PathVariable(value="scaMethodId")
String scaMethodId)
The authorization id is used for the identification an authorization process.
Result must be ScaStatusTO.SCAMETHODSELECTED means the auth code has been sent to the user. Must be entered by the user.
scaId - identifier of SCA operation at LedgersauthorisationId - identifier of Authorization at LedgersscaMethodId - identifier of SCA method@PutMapping(value="/{scaId}/authorisations/{authorisationId}/authCode")
org.springframework.http.ResponseEntity<SCALoginResponseTO> authorizeLogin(@PathVariable(value="scaId")
String scaId,
@PathVariable(value="authorisationId")
String authorisationId,
@RequestParam(name="authCode")
String authCode)
scaId - identifier of SCA operation at LedgersauthorisationId - identifier of Authorization at LedgersauthCode - a code sent to user to confirm operation@GetMapping(value="/me") org.springframework.http.ResponseEntity<UserTO> getUser()
@PutMapping(value="/sca-data") org.springframework.http.ResponseEntity<Void> updateUserScaData(@RequestBody List<ScaUserDataTO> data)
@GetMapping(value="/{userId}")
org.springframework.http.ResponseEntity<UserTO> getUserById(@PathVariable(value="userId")
String userId)
@PutMapping(value="/authorisations/{authorisationId}/confirmation/{authConfirmCode}")
org.springframework.http.ResponseEntity<Void> verifyAuthConfirmationCode(@PathVariable(value="authorisationId")
String authorisationId,
@PathVariable(name="authConfirmCode")
String authConfirmCode)
Copyright © 2020. All rights reserved.