类 ScxAuthController

java.lang.Object
cool.scx.ext.organization.auth.ScxAuthController

public class ScxAuthController extends Object
默认认证 api 推荐使用 也可以不用此 api 但需要将 自定义 AuthHandler 的实现中的方法清空
版本:
0.3.6
作者:
scx567888
  • 构造器详细资料

    • ScxAuthController

      public ScxAuthController(UserService userService)

      Constructor for ScxAuthController.

      参数:
      userService - a UserService object
  • 方法详细资料

    • login

      public cool.scx.vo.BaseVo login(String username, String password, io.vertx.ext.web.RoutingContext ctx)

      login.

      参数:
      username - a String object
      password - a String object
      ctx - a RoutingContext object
      返回:
      a BaseVo object
    • loginByThirdParty

      public cool.scx.vo.BaseVo loginByThirdParty(String uniqueID, String accessToken, String accountType, io.vertx.ext.web.RoutingContext ctx)

      loginByThirdParty.

      参数:
      uniqueID - a String object
      accessToken - a String object
      accountType - a String object
      ctx - a RoutingContext object
      返回:
      a BaseVo object
    • signup

      public cool.scx.vo.DataJson signup(User user)

      signup.

      参数:
      user - a User object
      返回:
      a DataJson object
    • signupByThirdParty

      public cool.scx.vo.DataJson signupByThirdParty(String uniqueID, String accessToken, String accountType)

      signupByThirdParty.

      参数:
      uniqueID - a String object
      accessToken - a String object
      accountType - a String object
      返回:
      a DataJson object
    • logout

      public cool.scx.vo.Json logout(io.vertx.ext.web.RoutingContext routingContext)

      logout.

      参数:
      routingContext - a RoutingContext object
      返回:
      a Json object
    • info

      public cool.scx.vo.BaseVo info(io.vertx.ext.web.RoutingContext routingContext) throws cool.scx.http.exception.impl.UnauthorizedException

      info.

      参数:
      routingContext - a RoutingContext object
      返回:
      a BaseVo object
      抛出:
      cool.scx.http.exception.impl.UnauthorizedException - if any.
    • changeUserAvatar

      public cool.scx.vo.DataJson changeUserAvatar(String newAvatar) throws cool.scx.http.exception.impl.UnauthorizedException

      changeUserAvatar.

      参数:
      newAvatar - a String object
      返回:
      a DataJson object
      抛出:
      cool.scx.http.exception.impl.UnauthorizedException - if any.
    • changeUserUsername

      public cool.scx.vo.BaseVo changeUserUsername(String newUsername, String password) throws cool.scx.http.exception.impl.UnauthorizedException

      changeUserUsername.

      参数:
      newUsername - a String object
      password - a String object
      返回:
      a BaseVo object
      抛出:
      cool.scx.http.exception.impl.UnauthorizedException - if any.
    • changeUserPassword

      public cool.scx.vo.BaseVo changeUserPassword(String newPassword, String oldPassword) throws cool.scx.http.exception.impl.UnauthorizedException

      changeUserPassword.

      参数:
      newPassword - a String object
      oldPassword - a String object
      返回:
      a BaseVo object
      抛出:
      cool.scx.http.exception.impl.UnauthorizedException - if any.