From babf49a2ee8d22b01fdcb97acf480fa461bb4d1b Mon Sep 17 00:00:00 2001 From: lishengzhao Date: Fri, 22 May 2015 12:09:04 +0800 Subject: [PATCH] 00016 table columns description --- others/db_table_description.html | 99 ++++++++++++++++++++++++++++++-- 1 file changed, 94 insertions(+), 5 deletions(-) diff --git a/others/db_table_description.html b/others/db_table_description.html index dc20bba..caf3fa5 100644 --- a/others/db_table_description.html +++ b/others/db_table_description.html @@ -9,8 +9,10 @@

spring-oauth-server 数据库表说明

-

以下对oauth.ddl中的表字及段进行说明, 内容包括字段说明与使用场合

- +

以下对spring-oauth-server项目中的oauth.ddl文件(位于/others/database目录)中的表字及段进行说明, + 内容包括字段说明与使用场合

+
@@ -45,16 +47,37 @@ - + - + @@ -114,6 +137,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
表名
client_secret - + 用于指定客户端(client)的访问密匙; 在注册时必须填写(也可由服务端自动生成). +
+ 对于不同的grant_type,该字段都是必须的. 在实际应用中的另一个名称叫appSecret,与client_secret是同一个概念.
scope + 指定客户端申请的权限范围,可选值包括read,write,trust;若有多个权限范围用逗号(,)分隔,如: "read,write". +
+ scope的值与security.xml中配置的‹intercept-urlaccess属性有关系. + 如‹intercept-url的配置为 +
‹intercept-url pattern="/m/**" access="ROLE_MOBILE,SCOPE_READ"/>
+ 则说明访问该URL时的客户端必须有read权限范围. + write的配置值为SCOPE_WRITE, trust的配置值为SCOPE_TRUST. +
+ 在实际应该中, 该值一般由服务端指定, 常用的值为read,write. +
authorized_grant_types + 指定客户端支持的grant_type,可选值包括authorization_code,password,refresh_token,implicit,client_credentials, + 若支持多个grant_type用逗号(,)分隔,如: "authorization_code,password". +
+ 在实际应用中,当注册时,该字段是一般由服务器端指定的,而不是由申请者去选择的,最常用的grant_type组合有: + "authorization_code,refresh_token"(针对通过浏览器访问的客户端); + "password,refresh_token"(针对移动设备的客户端). +
+ implicitclient_credentials在实际中很少使用. +
web_server_redirect_uriclient_id
oauth_access_tokencreate_time数据的创建时间,精确到秒,由数据库在插入数据时取当前系统时间自动生成(扩展字段)
token_id
token
authentication_id
user_name
client_id
authentication
refresh_token
oauth_refresh_tokencreate_time数据的创建时间,精确到秒,由数据库在插入数据时取当前系统时间自动生成(扩展字段)
token_id
token
authentication
oauth_codecreate_time数据的创建时间,精确到秒,由数据库在插入数据时取当前系统时间自动生成(扩展字段)
code
authentication