解决数据库多条 access_token问题,增加唯一约束

2.0.2
monkeyk7 2019-08-28 18:15:02 +08:00
parent 427d058516
commit 951a11d912
2 changed files with 2 additions and 1 deletions

View File

@ -167,6 +167,7 @@ Base on Spring-Boot
</p>
<ol>
<li><p><del>Fix CVE-2019-3778, use spring-security-oauth 2.3.5.RELEASE</del></p></li>
<li><p><del>解决数据库多条 access_token问题增加唯一约束</del></p></li>
</ol>
<br/>
</li>

View File

@ -26,7 +26,7 @@ create table oauth_access_token (
create_time timestamp default now(),
token_id VARCHAR(255),
token BLOB,
authentication_id VARCHAR(255),
authentication_id VARCHAR(255) UNIQUE,
user_name VARCHAR(255),
client_id VARCHAR(255),
authentication BLOB,