|
@@ -363,3 +363,26 @@ BEGIN
|
|
|
SELECT ACL_ENTRY_SQ.NEXTVAL INTO :NEW.ID FROM DUAL;
|
|
|
END;
|
|
|
----
|
|
|
+
|
|
|
+
|
|
|
+[[dbschema-oauth2-client]]
|
|
|
+== OAuth 2.0 Client Schema
|
|
|
+The JDBC implementation of <<oauth2Client-authorized-repo-service, OAuth2AuthorizedClientService>> (`JdbcOAuth2AuthorizedClientService`) requires a table for persisting `OAuth2AuthorizedClient`(s).
|
|
|
+You will need to adjust this schema to match the database dialect you are using.
|
|
|
+
|
|
|
+[source,ddl]
|
|
|
+----
|
|
|
+CREATE TABLE oauth2_authorized_client (
|
|
|
+ client_registration_id varchar(100) NOT NULL,
|
|
|
+ principal_name varchar(200) NOT NULL,
|
|
|
+ access_token_type varchar(100) NOT NULL,
|
|
|
+ access_token_value blob NOT NULL,
|
|
|
+ access_token_issued_at timestamp NOT NULL,
|
|
|
+ access_token_expires_at timestamp NOT NULL,
|
|
|
+ access_token_scopes varchar(1000) DEFAULT NULL,
|
|
|
+ refresh_token_value blob DEFAULT NULL,
|
|
|
+ refresh_token_issued_at timestamp DEFAULT NULL,
|
|
|
+ created_at timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
|
+ PRIMARY KEY (client_registration_id, principal_name)
|
|
|
+);
|
|
|
+----
|