org.shoulder.security.SecurityConst Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shoulder-security Show documentation
Show all versions of shoulder-security Show documentation
Shoulder 基础模块,基于 Spring Security + Spring Boot Web的安全模块,除了提供用户认证、授权、会话管理等基础功能,还允许轻松更换认证模式,如
Session / Token(JWT) 模式切换。
package org.shoulder.security;
/**
* @author lym
* */
public interface SecurityConst {
String CONFIG_PREFIX = "lym.security";
/** 表单方式认证(用户名密码登录) */
String URL_AUTHENTICATION_FORM = "/authentication/form";
/** 短信验证码认证(短信验证码登录) */
String URL_AUTHENTICATION_SMS = "/authentication/sms";
/** 注册新用户 url */
String URL_REGISTER = "/user/register";
/** 取消认证(退出登录) */
String URL_AUTHENTICATION_CANCEL = "/authentication/cancel";
/** 获取验证码请求 url */
String URL_VALIDATE_CODE = "/code";
/** 当请求需要身份认证时,默认跳转的url */
String URL_REQUIRE_AUTHENTICATION = "/authentication/require";
String AUTHENTICATION_SMS_PARAMETER_NAME = "phoneNumber";
/**
* 浏览器相关常量
*
* @author lym
* */
public interface BrowserConsts {
String CONFIG_PREFIX = SecurityConst.CONFIG_PREFIX + ".browser";
/**
* session失效默认的跳转地址
*/
String PAGE_URL_SESSION_INVALID = "/facade-session-invalid.html";
/**
* 登录门户
*/
String PAGE_URL_SIGN_IN = "/facade-signIn.html";
/**
* 注册门户
*/
String PAGE_URL_SIGN_UP = "/facade-signUp.html";
}
}