类 UserInfoEndpoint

java.lang.Object
cn.bbwres.biscuit.security.oauth2.endpoint.UserInfoEndpoint

@RestController @RequestMapping("/api/auth") public class UserInfoEndpoint extends Object
用户信息的端点
作者:
zhanglinfeng
  • 构造器详细资料

    • UserInfoEndpoint

      public UserInfoEndpoint(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService oauth2AuthorizationService, ResourceService resourceService)
  • 方法详细资料

    • checkToken

      @PostMapping("/check_token") public Result<UserBaseInfo> checkToken(@RequestBody String token)
      检查用户的token
      参数:
      token - 用户token
      返回:
      用户信息
    • loginAuthResource

      @GetMapping("/login_auth_resource") public Result<List<String>> loginAuthResource()
      获取登录就可以访问的地址
      返回:
    • resourceByRole

      @PostMapping("/resource_by_role") public Result<List<String>> resourceByRole(@RequestBody Set<String> rules)
      获取登录就可以访问的地址
      返回: