com.swak.security.config.JwtConstants Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swak-security-jwt-boot-starter Show documentation
Show all versions of swak-security-jwt-boot-starter Show documentation
swak component of spring security jwt boot starter
The newest version!
package com.swak.security.config;
/**
* 通用常量信息
*/
public class JwtConstants {
/**
* 所有权限标识
*/
public static final String ALL_PERMISSION = "*:*:*";
/**
* 令牌前缀
*/
public static final String TOKEN_PREFIX = "Bearer ";
public static final long MILLIS_SECOND = 1000L;
public interface AuthWhiteList {
/**
* 需要放行的URL
*/
String[] AUTH_WHITELIST = {
// -- register url
"/",
"/login",
"/register",
"/**/login",
"/**/register",
"/**/captcha",
// -- swagger ui
"/v2/api-docs",
"/swagger-resources",
"/swagger-resources/**",
"/swagger-ui.html",
"/webjars/**"
// other public endpoints of your API may be appended to this array
};
String[] STATIC_WHITELIST = {
"/",
"/*.html",
"/**/*.html",
"/**/*.css",
"/**/*.js"};
}
}