Class LoginUser

java.lang.Object
net.lightapi.portal.user.query.handler.LoginUser
All Implemented Interfaces:
com.networknt.rpc.HybridHandler

public class LoginUser extends Object implements com.networknt.rpc.HybridHandler
This endpoint is called from a customized authenticator from light-oauth2. It returns two values, user id and roles in string after successfully authenticated from the user_t table. The validatePassword method in HashUtil will be called to verify the password again the stored password When a new user is registered, the verification flag is false. It will be updated to true only after the email address is confirmed. We check the flag during the login so a user must have a valid email address.
Author:
Steve Hu
  • Field Summary

    Fields inherited from interface com.networknt.rpc.HybridHandler

    ERROR_NOT_DEFINED, logger, REQUEST_SUCCESS, STATUS_VALIDATION_ERROR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    handle(io.undertow.server.HttpServerExchange exchange, Object input)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.networknt.rpc.HybridHandler

    getStatus, getStatus, validate
  • Constructor Details

    • LoginUser

      public LoginUser()
  • Method Details

    • handle

      public ByteBuffer handle(io.undertow.server.HttpServerExchange exchange, Object input)
      Specified by:
      handle in interface com.networknt.rpc.HybridHandler