@@ -196,3 +196,31 @@ ALTER TABLE `cloud`.`snapshot_store_ref`
196
196
ADD COLUMN ` error_str` varchar (255 ) DEFAULT NULL COMMENT ' the error message when the snapshot download occurs' AFTER ` download_pct` ,
197
197
ADD COLUMN ` local_path` varchar (255 ) DEFAULT NULL COMMENT ' the path of the snapshot download' AFTER ` error_str` ,
198
198
ADD COLUMN ` display` tinyint (1 ) unsigned NOT NULL DEFAULT 1 COMMENT ' 1 implies store reference is available for listing' AFTER ` error_str` ;
199
+
200
+ UPDATE ` cloud` .` configuration` SET
201
+ ` options` = concat(` options` , ' ,OAUTH2' ),
202
+ ` default_value` = concat(` default_value` , ' ,OAUTH2' ),
203
+ ` value` = concat(` value` , ' ,OAUTH2' )
204
+ WHERE ` name` = ' user.authenticators.order' ;
205
+
206
+ UPDATE ` cloud` .` configuration` SET
207
+ ` options` = concat(` options` , ' ,OAUTH2Auth' ),
208
+ ` default_value` = concat(` default_value` , ' ,OAUTH2Auth' ),
209
+ ` value` = concat(` value` , ' ,OAUTH2Auth' )
210
+ where ` name` = ' pluggableApi.authenticators.order' ;
211
+
212
+ -- Create table for OAuth provider details
213
+ DROP TABLE IF EXISTS ` cloud` .` oauth_provider` ;
214
+ CREATE TABLE `cloud `.` oauth_provider` (
215
+ ` id` bigint unsigned NOT NULL auto_increment COMMENT ' id' ,
216
+ ` uuid` varchar (40 ) NOT NULL COMMENT ' unique identifier' ,
217
+ ` description` varchar (1024 ) COMMENT ' description of the provider' ,
218
+ ` provider` varchar (40 ) NOT NULL COMMENT ' name of the provider' ,
219
+ ` client_id` varchar (255 ) NOT NULL COMMENT ' client id which is configured in the provider' ,
220
+ ` secret_key` varchar (255 ) NOT NULL COMMENT ' secret key which is configured in the provider' ,
221
+ ` redirect_uri` varchar (255 ) NOT NULL COMMENT ' redirect uri which is configured in the provider' ,
222
+ ` enabled` int (1 ) NOT NULL DEFAULT 1 COMMENT ' Enabled or disabled' ,
223
+ ` created` datetime NOT NULL COMMENT ' date created' ,
224
+ ` removed` datetime COMMENT ' date removed if not null' ,
225
+ PRIMARY KEY (` id` )
226
+ ) ENGINE= InnoDB DEFAULT CHARSET= utf8;
0 commit comments