Search in sources :

Example 1 with AuthenticateUserResult

use of org.haiku.haikudepotserver.api2.model.AuthenticateUserResult in project haikudepotserver by haiku.

the class UserApiImpl method authenticateUser.

@Override
public ResponseEntity<AuthenticateUserResponseEnvelope> authenticateUser(AuthenticateUserRequestEnvelope authenticateUserRequestEnvelope) {
    AuthenticateUserRequest requestV1 = new AuthenticateUserRequest();
    requestV1.nickname = authenticateUserRequestEnvelope.getNickname();
    requestV1.passwordClear = authenticateUserRequestEnvelope.getPasswordClear();
    org.haiku.haikudepotserver.api1.model.user.AuthenticateUserResult resultV1 = userApiV1.authenticateUser(requestV1);
    return ResponseEntity.ok(new AuthenticateUserResponseEnvelope().result(new AuthenticateUserResult().token(resultV1.token)));
}
Also used : org.haiku.haikudepotserver.api1.model.user(org.haiku.haikudepotserver.api1.model.user) AuthenticateUserResult(org.haiku.haikudepotserver.api2.model.AuthenticateUserResult)

Aggregations

org.haiku.haikudepotserver.api1.model.user (org.haiku.haikudepotserver.api1.model.user)1 AuthenticateUserResult (org.haiku.haikudepotserver.api2.model.AuthenticateUserResult)1