From 6b245699cc4f12242f3d07585a2e3f7a0501f98b Mon Sep 17 00:00:00 2001 From: lishengzhao Date: Fri, 22 May 2015 14:58:40 +0800 Subject: [PATCH] 00016 table columns description --- others/db_table_description.html | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/others/db_table_description.html b/others/db_table_description.html index 920656e..ca79617 100644 --- a/others/db_table_description.html +++ b/others/db_table_description.html @@ -22,7 +22,7 @@ - oauth_client_details + oauth_client_details client_id 主键,必须唯一,不能为空. @@ -152,7 +152,15 @@ additional_information - + 这是一个预留的字段,在Oauth的流程中没有实际的使用,可选,但若设置值,必须是JSON格式的数据,如: +
{"country":"CN","country_code":"086"}
+ 按照spring-security-oauth项目中对该字段的描述 +
+ Additional information for this client, not need by the vanilla OAuth protocol but might be useful, + for example,for storing descriptive information. +
+ (详见ClientDetails.javagetAdditionalInformation()方法的注释) + 在实际应用中, 可以用该字段来存储关于客户端的一些其他信息,如客户端的国家,地区,注册时的IP地址等等. @@ -180,6 +188,16 @@ 对该字段的具体使用请参考OauthUserApprovalHandler.java. (扩展字段) + + +

+ 在项目中,主要操作oauth_client_details表的类是JdbcClientDetailsService.java, + 更多的细节请参考该类. +
+ 也可以根据实际的需要,去扩展或修改该类的实现. +

+ + oauth_client_token