类 Oauth2Controller
java.lang.Object
plus.hiver.module.open.controller.Oauth2Controller
尊重知识产权,CV 请保留版权,海文科技 https://hiver.cc 出品,不允许非法使用,后果自负
- 作者:
- Yazhi Li
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明plus.hiver.common.api.Resultauthorize(String username, String password, Long client_id, String redirect_uri, String response_type, String state) plus.hiver.common.api.Resultauthorized(Long client_id, String redirect_uri, String state) plus.hiver.common.api.Resultplus.hiver.common.api.Resultlogout()plus.hiver.common.api.Resulttoken(String grant_type, Long client_id, String client_secret, String code, String refresh_token, String redirect_uri) plus.hiver.common.api.Result
-
构造器详细资料
-
Oauth2Controller
public Oauth2Controller()
-
-
方法详细资料
-
info
@GetMapping("/info/{client_id}") public plus.hiver.common.api.Result info(@PathVariable Long client_id) -
authorize
@PostMapping("/authorize") @SystemLog(description="\u8ba4\u8bc1\u4e2d\u5fc3\u767b\u5f55", type=LOGIN) public plus.hiver.common.api.Result authorize(@RequestParam String username, @RequestParam String password, @RequestParam Long client_id, @RequestParam String redirect_uri, @RequestParam(required=false,defaultValue="code") String response_type, @RequestParam String state) -
token
@GetMapping("/token") public plus.hiver.common.api.Result token(@RequestParam String grant_type, @RequestParam Long client_id, @RequestParam String client_secret, @RequestParam(required=false) String code, @RequestParam(required=false) String refresh_token, @RequestParam(required=false) String redirect_uri) -
authorized
-
logout
@PostMapping("/logout") public plus.hiver.common.api.Result logout() -
user
-