1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
| package org.springblade.auth.constant;
|
| /**
| * 授权校验常量
| *
| * @author Chill
| */
| public interface AuthConstant {
|
| /**
| * 密码加密规则
| */
| String ENCRYPT = "{blade}";
|
| /**
| * blade_client表字段
| */
| String CLIENT_FIELDS = "client_id, CONCAT('{noop}',client_secret) as client_secret, resource_ids, scope, authorized_grant_types, " +
| "web_server_redirect_uri, authorities, access_token_validity, " +
| "refresh_token_validity, additional_information, autoapprove";
|
| /**
| * blade_client查询语句
| */
| String BASE_STATEMENT = "select " + CLIENT_FIELDS + " from blade_client";
|
| /**
| * blade_client查询排序
| */
| String DEFAULT_FIND_STATEMENT = BASE_STATEMENT + " order by client_id";
|
| /**
| * 查询client_id
| */
| String DEFAULT_SELECT_STATEMENT = BASE_STATEMENT + " where client_id = ?";
|
| }
|
|