Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Naresh Bafna
committed
Jul 30, 2013
1 parent
874c12b
commit 51c97ba
Showing
2 changed files
with
66 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
create table oauth_client_details ( | ||
client_id VARCHAR(256) PRIMARY KEY, | ||
resource_ids VARCHAR(256), | ||
client_secret VARCHAR(256), | ||
scope VARCHAR(256), | ||
authorized_grant_types VARCHAR(256), | ||
web_server_redirect_uri VARCHAR(256), | ||
authorities VARCHAR(256), | ||
access_token_validity INTEGER, | ||
refresh_token_validity INTEGER, | ||
additional_information VARCHAR(4096) | ||
); | ||
|
||
create table oauth_client_token ( | ||
token_id VARCHAR(256), | ||
token BLOB, | ||
authentication_id VARCHAR(256), | ||
user_name VARCHAR(256), | ||
client_id VARCHAR(256) | ||
); | ||
|
||
create table oauth_access_token ( | ||
token_id VARCHAR(256), | ||
token BLOB, | ||
authentication_id VARCHAR(256), | ||
user_name VARCHAR(256), | ||
client_id VARCHAR(256), | ||
authentication BLOB, | ||
refresh_token VARCHAR(256) | ||
); | ||
|
||
create table oauth_refresh_token ( | ||
token_id VARCHAR(256), | ||
token BLOB, | ||
authentication BLOB | ||
); | ||
|
||
create table oauth_code ( | ||
code VARCHAR(256), authentication BLOB | ||
); | ||
|
||
-- customized oauth_client_details table | ||
create table ClientDetails ( | ||
appId VARCHAR(256) PRIMARY KEY, | ||
resourceIds VARCHAR(256), | ||
appSecret VARCHAR(256), | ||
scope VARCHAR(256), | ||
grantTypes VARCHAR(256), | ||
redirectUrl VARCHAR(256), | ||
authorities VARCHAR(256), | ||
access_token_validity INTEGER, | ||
refresh_token_validity INTEGER, | ||
additionalInformation VARCHAR(4096) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
It would be good, if the bean id is dataSource instead of jdbcTemplate. I initially thought why JdbcTokenStore expecting jdbcTemplate ?. Just confused.