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 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<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) |
static final String BASE_PATH
@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) throws ConflictRestException
login - email - pin - role - ConflictRestException@PostMapping(value="/login") org.springframework.http.ResponseEntity<SCALoginResponseTO> authorise(@RequestParam(value="login") String login, @RequestParam(value="pin") String pin, @RequestParam(value="role") UserRoleTO role) throws NotFoundRestException, ForbiddenRestException
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 - pin - role - NotFoundRestExceptionForbiddenRestException - : role specified by the user did not match@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)
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 - pin - consentId - authorisationId - opType - NotFoundRestExceptionForbiddenRestException - : role specified by the user did not match@PostMapping(value="/validate") org.springframework.http.ResponseEntity<BearerTokenTO> validate(@RequestParam(value="accessToken") String token) throws ForbiddenRestException
ForbiddenRestException@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)
throws ValidationRestException,
NotAcceptableRestException,
NotFoundRestException,
ForbiddenRestException
ScaStatusTO.SCAMETHODSELECTED means the auth code has been sent to the user. Must be entered by the user.scaId - authorisationId - scaMethodId - ValidationRestExceptionNotAcceptableRestExceptionNotFoundRestExceptionForbiddenRestException@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)
throws GoneRestException,
NotFoundRestException,
ExpectationFailedRestException,
NotAcceptableRestException,
ForbiddenRestException
scaId - authorisationId - authCode - GoneRestExceptionNotFoundRestExceptionConflictRestExceptionExpectationFailedRestExceptionNotAcceptableRestExceptionForbiddenRestException@GetMapping(value="/me") org.springframework.http.ResponseEntity<UserTO> getUser()
@PutMapping(value="/sca-data") org.springframework.http.ResponseEntity<Void> updateUserScaData(@RequestBody List<ScaUserDataTO> data) throws NotFoundRestException
NotFoundRestException@GetMapping(value="/{userId}")
org.springframework.http.ResponseEntity<UserTO> getUserById(@PathVariable(value="userId")
String userId)
throws NotFoundRestException
NotFoundRestExceptionCopyright © 2019. All rights reserved.