00016 table columns description

0.3
lishengzhao 2015-05-22 15:46:06 +08:00
parent 6b245699cc
commit 9723dfff76
1 changed files with 24 additions and 6 deletions

View File

@ -191,7 +191,7 @@
<tr> <tr>
<td colspan="2"> <td colspan="2">
<p class="text-info"> <p class="text-info">
在项目中,主要操作<code>oauth_client_details</code>表的类是<code>JdbcClientDetailsService.java</code>, <em class="glyphicon glyphicon-info-sign"></em> 在项目中,主要操作<code>oauth_client_details</code>表的类是<code>JdbcClientDetailsService.java</code>,
更多的细节请参考该类. 更多的细节请参考该类.
<br/> <br/>
也可以根据实际的需要,去扩展或修改该类的实现. 也可以根据实际的需要,去扩展或修改该类的实现.
@ -200,30 +200,48 @@
</tr> </tr>
<!-- oauth_client_token --> <!-- oauth_client_token -->
<tr> <tr>
<td rowspan="6">oauth_client_token</td> <td rowspan="7">oauth_client_token</td>
<td>create_time</td> <td>create_time</td>
<td>数据的创建时间,精确到秒,由数据库在插入数据时取当前系统时间自动生成(扩展字段)</td> <td>数据的创建时间,精确到秒,由数据库在插入数据时取当前系统时间自动生成(扩展字段)</td>
</tr> </tr>
<tr> <tr>
<td>token_id</td> <td>token_id</td>
<td></td> <td>
从服务器端获取到的<code>access_token</code>的值.
</td>
</tr> </tr>
<tr> <tr>
<td>token</td> <td>token</td>
<td></td> <td>
这是一个二进制的字段, 存储的数据是<code>OAuth2AccessToken.java</code>对象序列化后的二进制数据.
</td>
</tr> </tr>
<tr> <tr>
<td>authentication_id</td> <td>authentication_id</td>
<td></td> <td>
该字段具有唯一性, 是根据当前的username(如果有),client_id与scope通过MD5加密生成的.
<br/>
具体实现请参考<code>DefaultClientKeyGenerator.java</code>类.
</td>
</tr> </tr>
<tr> <tr>
<td>user_name</td> <td>user_name</td>
<td></td> <td>登录时的用户名</td>
</tr> </tr>
<tr> <tr>
<td>client_id</td> <td>client_id</td>
<td></td> <td></td>
</tr> </tr>
<tr>
<td colspan="2">
<p class="text-info">
<em class="glyphicon glyphicon-info-sign"></em> 该表用于在客户端系统中存储从服务端获取的token数据,
<a href="http://git.oschina.net/shengzhao/spring-oauth-server">spring-oauth-server</a>项目中未使用到.
<br/>
<code>oauth_client_token</code>表的主要操作在<code>JdbcClientTokenServices.java</code>类中, 更多的细节请参考该类.
</p>
</td>
</tr>
<!-- oauth_access_token --> <!-- oauth_access_token -->
<tr> <tr>
<td rowspan="8">oauth_access_token</td> <td rowspan="8">oauth_access_token</td>