diff --git a/others/db_table_description.html b/others/db_table_description.html new file mode 100644 index 0000000..dc20bba --- /dev/null +++ b/others/db_table_description.html @@ -0,0 +1,122 @@ + + +
+ +以下对oauth.ddl
中的表字及段进行说明, 内容包括字段说明与使用场合
表名 | +字段名 | +字段说明 | +
---|---|---|
oauth_client_details | +client_id | +
+ 主键,必须唯一,不能为空.
+ + 用于唯一标识每一个客户端(client); 在注册时必须填写(也可由服务端自动生成). + + 对于不同的grant_type,该字段都是必须的. 在实际应用中的另一个名称叫appKey,与client_id是同一个概念. + |
+
resource_ids | +
+ 客户端所能访问的资源id集合,多个资源时用逗号(,)分隔,如: "unity-resource,mobile-resource".
+ + 该字段的值必须来源于与 security.xml 中标签‹oauth2:resource-server 的属性resource-id 值一致.
+ 在security.xml 配置有几个‹oauth2:resource-server 标签, 则该字段可以使用几个该值.
+ + 在实际应用中, 我们一般将资源进行分类,并分别配置对应的 ‹oauth2:resource-server ,如订单资源配置一个‹oauth2:resource-server ,
+ 用户资源又配置一个‹oauth2:resource-server . 当注册客户端时,根据实际需要可选择资源id,也可根据不同的注册流程,赋予对应的资源id.
+ |
+ |
client_secret | ++ + | +|
scope | ++ | |
authorized_grant_types | ++ | |
web_server_redirect_uri | ++ | |
authorities | ++ | |
access_token_validity | ++ | |
refresh_token_validity | ++ | |
additional_information | ++ | |
create_time | +数据的创建时间,精确到秒,由数据库在插入数据时取当前系统时间自动生成(扩展字段) | +|
archived | ++ | |
trusted | ++ | |
oauth_client_token | +create_time | +数据的创建时间,精确到秒,由数据库在插入数据时取当前系统时间自动生成(扩展字段) | +
token_id | ++ | |
token | ++ | |
authentication_id | ++ | |
user_name | ++ | |
client_id | ++ |