- generateTokenDefaultPayload(DefaultJwtPayload) - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.AuthJwtTokenApi
-
生成token,用默认的payload格式
- get() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.context.LoginUserHolder
-
获取holder中的值
- getAuthJwtSecret() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.expander.AuthConfigExpander
-
用于auth校验的jwt的秘钥
- getAuthJwtTimeoutSeconds() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.expander.AuthConfigExpander
-
用于auth模块权限校验的jwt失效时间
这个时间也是“记住我”功能的过期时间,默认为7天
如果登录的时候开启了“记住我”,则用户7天内免登录
- getCurrentUserCompanyId() - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.LoginUserApi
-
获取当前登录用户当前机构对应的公司id
- getDefaultPayload(String) - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.AuthJwtTokenApi
-
获取jwt的payload(限定默认格式)
- getLoginUser() - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.LoginUserApi
-
获取当前登陆用户
如果获取不到当前登陆用户会抛出 AuthException
- getLoginUserByToken(LoginUserRequest) - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.loginuser.api.LoginUserRemoteApi
-
通过token获取登录的用户
- getLoginUserNullable() - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.LoginUserApi
-
获取当前登陆用户
如果获取不到当前登陆用户返回null
- getMaxErrorLoginCount() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.expander.LoginConfigExpander
-
密码策略:密码最大重试次数
超过此次数则冻结账号
- getMinPasswordLength() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.expander.LoginConfigExpander
-
密码策略:口令最小长度
- getNoneSecurityConfig() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.expander.AuthConfigExpander
-
获取不被权限控制的url
- getPasswordMinCantRepeatTimes() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.expander.LoginConfigExpander
-
密码策略:修改密码时,不能和历史密码重复的次数
- getPasswordMinLowerCaseCount() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.expander.LoginConfigExpander
-
密码策略:最少小写字母数量
- getPasswordMinNumberCount() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.expander.LoginConfigExpander
-
密码策略:最少数字符号的数量
- getPasswordMinSpecialSymbolCount() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.expander.LoginConfigExpander
-
密码策略:最少特殊符号数量
- getPasswordMinUpdateDays() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.expander.LoginConfigExpander
-
密码策略:最少多久更新一次密码,单位天
- getPasswordMinUpperCaseCount() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.expander.LoginConfigExpander
-
密码策略:最少大写字母数量
- getPasswordRsaValidateFlag() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.expander.LoginConfigExpander
-
登录密码是否进行RSA加密校验,默认关闭
需要前端配合加密后再打开开关
- getSession(String) - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.SessionManagerApi
-
通过token获取会话
- getSessionExpiredSeconds() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.expander.AuthConfigExpander
-
获取session过期时间,默认3600秒
在这个时段内不操作,会将用户踢下线,从新登陆
如果开启了记住我功能,在session过期后会从新创建session
- getSingleAccountLoginFlag() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.expander.LoginConfigExpander
-
获取单账号单端登录的开关
单账号单端登录为限制一个账号多个浏览器登录
- getSsoDataDecryptSecret() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.expander.AuthConfigExpander
-
默认解析sso加密的数据的秘钥
- getSsoSessionValidateRedisCachePrefix() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.expander.AuthConfigExpander
-
sso会话远程校验,redis的缓存前缀
- getSsoSessionValidateRedisDbIndex() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.expander.AuthConfigExpander
-
sso会话远程校验,redis的db
- getSsoSessionValidateRedisHost() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.expander.AuthConfigExpander
-
sso会话远程校验,redis的host
- getSsoSessionValidateRedisPassword() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.expander.AuthConfigExpander
-
sso会话远程校验,redis的密码
- getSsoSessionValidateRedisPort() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.expander.AuthConfigExpander
-
sso会话远程校验,redis的端口
- getSsoSessionValidateSwitch() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.expander.AuthConfigExpander
-
获取是否开启sso远程会话校验,当系统对接sso后,如需同时校验sso的会话是否存在则开启此开关
- getSsoUrl() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.expander.AuthConfigExpander
-
获取SSO服务器的地址
- getSuperAdminFlag() - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.LoginUserApi
-
获取是否是超级管理员的标识
- getTenantIdByCode(String) - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.TenantCodeGetApi
-
通过租户编码获取租户的ID
- getToken() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.loginuser.CommonLoginUserUtil
-
获取当前登录用户Token
- getToken() - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.LoginUserApi
-
获取当前登陆用户的token
如果获取不到,返回null