所有超级接口:
Serializable
所有已知实现类:
LoginUser

public interface ILoginUser extends Serializable
登录用户的信息,这里拿到的是登录的用户的信息,是从 jwt token 里面解析出来的用户信息,如果想再加其他信息
1、 在 io.github.mangocrisp.spring.taybct.api.system.dto.OAuth2UserDTO 里面加信息
2、 在 io.github.mangocrisp.spring.taybct.auth.security.pojo.OAuth2UserDetails 里面加信息
3、 在 io.github.mangocrisp.spring.taybct.auth.security.config.AuthorizationServerConfig.tokenEnhancer() 里面把信息写入到 jwt token 的载体里面
从以下版本开始:
1.0.0
  • 方法详细资料

    • getUserId

      Long getUserId()
    • getUsername

      String getUsername()
      用户名
    • getAuthorities

      Set<String> getAuthorities()
      用户角色编码(权限)集合
      ["ADMIN","NORMAL","LEADER"...]
    • getScope

      String getScope()
      权限范围
    • getExp

      Long getExp()
      超时时间
    • getJti

      String getJti()
      jwt token id
    • getClientId

      String getClientId()
      客户端 id
    • getTenantId

      String getTenantId()
      租户 id
    • getPayload

      com.alibaba.fastjson2.JSONObject getPayload()
      Token 数据参数载体
    • checkRoot

      int checkRoot()
      检查有没有 ROOT 权限(是否是 ROOT 用户)
      返回:
      int
    • checkAuthorities

      Set<String> checkAuthorities()
      检查有没有权限,返回权限列表
      返回:
      Set<String>
    • hasRootRole

      int hasRootRole()
      是否有 ROOT 角色
      返回:
      int
    • hasAdminRole

      int hasAdminRole()
      是否有 ADMIN 角色
      返回:
      int