62 lines
1.4 KiB
Plaintext
62 lines
1.4 KiB
Plaintext
--
|
|
-- Oauth sql -- MYSQL
|
|
--
|
|
|
|
Drop table if exists oauth_client_details;
|
|
create table oauth_client_details (
|
|
client_id VARCHAR(255) 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_time timestamp default now(),
|
|
archived tinyint(1) default '0',
|
|
trusted tinyint(1) default '0'
|
|
);
|
|
|
|
Drop table if exists oauth_client_token;
|
|
create table oauth_client_token (
|
|
create_time timestamp default now(),
|
|
token_id VARCHAR(256),
|
|
token BLOB,
|
|
authentication_id VARCHAR(256),
|
|
user_name VARCHAR(256),
|
|
client_id VARCHAR(256)
|
|
);
|
|
|
|
Drop table if exists oauth_access_token;
|
|
create table oauth_access_token (
|
|
create_time timestamp default now(),
|
|
token_id VARCHAR(256),
|
|
token BLOB,
|
|
authentication_id VARCHAR(256),
|
|
user_name VARCHAR(256),
|
|
client_id VARCHAR(256),
|
|
authentication BLOB,
|
|
refresh_token VARCHAR(256)
|
|
);
|
|
|
|
Drop table if exists oauth_refresh_token;
|
|
create table oauth_refresh_token (
|
|
create_time timestamp default now(),
|
|
token_id VARCHAR(256),
|
|
token BLOB,
|
|
authentication BLOB
|
|
);
|
|
|
|
Drop table if exists oauth_code;
|
|
create table oauth_code (
|
|
create_time timestamp default now(),
|
|
code VARCHAR(256),
|
|
authentication BLOB
|
|
);
|
|
|
|
|
|
|
|
|