Prechádzať zdrojové kódy

oauth2相关常量类

ZhangWenQiang 5 rokov pred
rodič
commit
9a127bc845

+ 31 - 0
happy-cloud-auth/src/main/java/org/jeecg/common/constant/GrantTypeConstant.java

@@ -0,0 +1,31 @@
+package org.jeecg.common.constant;
+
+/**
+ * @Author: zwq
+ * @Date: Create in 2020/8/3 16:33
+ * @Description:
+ */
+public interface GrantTypeConstant {
+
+    /**
+     * 刷新模式
+     */
+    String REFRESH_TOKEN = "refresh_token";
+    /**
+     * 授权码模式
+     */
+    String AUTHORIZATION_CODE = "authorization_code";
+    /**
+     * 客户端模式
+     */
+    String CLIENT_CREDENTIALS = "client_credentials";
+    /**
+     * 密码模式
+     */
+    String PASSWORD = "password";
+    /**
+     * 简化模式
+     */
+    String IMPLICIT = "implicit";
+
+}

+ 36 - 0
happy-cloud-auth/src/main/java/org/jeecg/common/constant/ParamsConstant.java

@@ -0,0 +1,36 @@
+package org.jeecg.common.constant;
+
+/**
+ * @Author: zwq
+ * @Date: Create in 2020/8/3 16:32
+ * @Description:
+ */
+public interface ParamsConstant {
+
+    /**
+     * 验证码 key
+     */
+    String VALIDATE_CODE_KEY = "key";
+    /**
+     * 验证码 code
+     */
+    String VALIDATE_CODE_CODE = "code";
+    /**
+     * 认证类型参数 key
+     */
+    String GRANT_TYPE = "grant_type";
+    /**
+     * 登录类型
+     */
+    String LOGIN_TYPE = "login_type";
+
+    /**
+     * 登录客户端id
+     */
+    String CLIENT_ID = "client_id";
+
+    /**
+     * 登录客户端秘钥
+     */
+    String CLIENT_SECRET = "client_secret";
+}