Add JDBC implementation of OAuth2AuthorizedClientService

Fixes gh-7655
This commit is contained in:
Joe Grandja
2020-01-19 15:30:27 -05:00
parent a51a202925
commit de8b558561
5 changed files with 815 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
CREATE TABLE oauth2AuthorizedClient (
clientRegistrationId varchar(100) NOT NULL,
principalName varchar(200) NOT NULL,
accessTokenType varchar(100) NOT NULL,
accessTokenValue blob NOT NULL,
accessTokenIssuedAt timestamp NOT NULL,
accessTokenExpiresAt timestamp NOT NULL,
accessTokenScopes varchar(1000) DEFAULT NULL,
refreshTokenValue blob DEFAULT NULL,
refreshTokenIssuedAt timestamp DEFAULT NULL,
createdAt timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL,
PRIMARY KEY (clientRegistrationId, principalName)
);