类 ScxAuthController
java.lang.Object
cool.scx.ext.organization.auth.ScxAuthController
默认认证 api 推荐使用
也可以不用此 api 但需要将 自定义 AuthHandler 的实现中的方法清空
- 版本:
- 0.3.6
- 作者:
- scx567888
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明cool.scx.vo.DataJsonchangeUserAvatar(String newAvatar) changeUserAvatar.cool.scx.vo.BaseVochangeUserPassword(String newPassword, String oldPassword) changeUserPassword.cool.scx.vo.BaseVochangeUserUsername(String newUsername, String password) changeUserUsername.cool.scx.vo.BaseVoinfo(io.vertx.ext.web.RoutingContext routingContext) info.cool.scx.vo.BaseVologin.cool.scx.vo.BaseVologinByThirdParty(String uniqueID, String accessToken, String accountType, io.vertx.ext.web.RoutingContext ctx) loginByThirdParty.cool.scx.vo.Jsonlogout(io.vertx.ext.web.RoutingContext routingContext) logout.cool.scx.vo.DataJsonsignup.cool.scx.vo.DataJsonsignupByThirdParty(String uniqueID, String accessToken, String accountType) signupByThirdParty.
-
构造器详细资料
-
ScxAuthController
Constructor for ScxAuthController.
- 参数:
userService- aUserServiceobject
-
-
方法详细资料
-
login
public cool.scx.vo.BaseVo login(String username, String password, io.vertx.ext.web.RoutingContext ctx) login.
-
loginByThirdParty
public cool.scx.vo.BaseVo loginByThirdParty(String uniqueID, String accessToken, String accountType, io.vertx.ext.web.RoutingContext ctx) loginByThirdParty.
-
signup
signup.
- 参数:
user- aUserobject- 返回:
- a
DataJsonobject
-
signupByThirdParty
public cool.scx.vo.DataJson signupByThirdParty(String uniqueID, String accessToken, String accountType) signupByThirdParty.
-
logout
public cool.scx.vo.Json logout(io.vertx.ext.web.RoutingContext routingContext) logout.
- 参数:
routingContext- aRoutingContextobject- 返回:
- a
Jsonobject
-
info
public cool.scx.vo.BaseVo info(io.vertx.ext.web.RoutingContext routingContext) throws cool.scx.http.exception.impl.UnauthorizedException info.
- 参数:
routingContext- aRoutingContextobject- 返回:
- a
BaseVoobject - 抛出:
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- aStringobject- 返回:
- a
DataJsonobject - 抛出:
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.
-
changeUserPassword
public cool.scx.vo.BaseVo changeUserPassword(String newPassword, String oldPassword) throws cool.scx.http.exception.impl.UnauthorizedException changeUserPassword.
-