00016 table columns description
parent
9723dfff76
commit
50cfd0ca83
|
@ -244,25 +244,32 @@
|
|||
</tr>
|
||||
<!-- oauth_access_token -->
|
||||
<tr>
|
||||
<td rowspan="8">oauth_access_token</td>
|
||||
<td rowspan="9">oauth_access_token</td>
|
||||
<td>create_time</td>
|
||||
<td>数据的创建时间,精确到秒,由数据库在插入数据时取当前系统时间自动生成(扩展字段)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>token_id</td>
|
||||
<td></td>
|
||||
<td>
|
||||
该字段的值是将<code>access_token</code>的值通过MD5加密后存储的.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>token</td>
|
||||
<td></td>
|
||||
<td>
|
||||
存储将<code>OAuth2AccessToken.java</code>对象序列化后的二进制数据, 是真实的AccessToken的数据值.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>authentication_id</td>
|
||||
<td></td>
|
||||
<td>
|
||||
该字段具有唯一性, 其值是根据当前的username(如果有),client_id与scope通过MD5加密生成的.
|
||||
具体实现请参考<code>DefaultAuthenticationKeyGenerator.java</code>类.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>user_name</td>
|
||||
<td></td>
|
||||
<td>登录时的用户名, 若客户端没有用户名(如grant_type="client_credentials"),则该值等于client_id</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>client_id</td>
|
||||
|
@ -270,29 +277,55 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td>authentication</td>
|
||||
<td></td>
|
||||
<td>
|
||||
存储将<code>OAuth2Authentication.java</code>对象序列化后的二进制数据.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>refresh_token</td>
|
||||
<td></td>
|
||||
<td>
|
||||
该字段的值是将<code>refresh_token</code>的值通过MD5加密后存储的.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<p class="text-info">
|
||||
<em class="glyphicon glyphicon-info-sign"></em> 在项目中,主要操作<code>oauth_access_token</code>表的对象是<code>JdbcTokenStore.java</code>.
|
||||
更多的细节请参考该类.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- oauth_refresh_token -->
|
||||
<tr>
|
||||
<td rowspan="4">oauth_refresh_token</td>
|
||||
<td rowspan="5">oauth_refresh_token</td>
|
||||
<td>create_time</td>
|
||||
<td>数据的创建时间,精确到秒,由数据库在插入数据时取当前系统时间自动生成(扩展字段)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>token_id</td>
|
||||
<td></td>
|
||||
<td>
|
||||
该字段的值是将<code>refresh_token</code>的值通过MD5加密后存储的.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>token</td>
|
||||
<td></td>
|
||||
<td>
|
||||
存储将<code>OAuth2RefreshToken.java</code>对象序列化后的二进制数据.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>authentication</td>
|
||||
<td></td>
|
||||
<td>
|
||||
存储将<code>OAuth2Authentication.java</code>对象序列化后的二进制数据.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<p class="text-info">
|
||||
<em class="glyphicon glyphicon-info-sign"></em> 在项目中,主要操作<code>oauth_refresh_token</code>表的对象是<code>JdbcTokenStore.java</code>.
|
||||
(与操作<code>oauth_access_token</code>表的对象一样);更多的细节请参考该类.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- oauth_code -->
|
||||
<tr>
|
||||
|
@ -310,6 +343,10 @@
|
|||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p class="text-muted">
|
||||
© <a href="http://git.oschina.net/shengzhao/spring-oauth-server" target="_blank">spring-oauth-server</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
|
Loading…
Reference in New Issue