added introspection flag to client bootstrap
parent
4068952a81
commit
cbcfe55bb9
|
@ -10,8 +10,8 @@ START TRANSACTION;
|
||||||
-- Insert client information into the temporary tables. To add clients to the HSQL database, edit things here.
|
-- Insert client information into the temporary tables. To add clients to the HSQL database, edit things here.
|
||||||
--
|
--
|
||||||
|
|
||||||
INSERT INTO client_details_TEMP (client_id, client_secret, client_name, dynamically_registered, refresh_token_validity_seconds, access_token_validity_seconds, id_token_validity_seconds) VALUES
|
INSERT INTO client_details_TEMP (client_id, client_secret, client_name, dynamically_registered, refresh_token_validity_seconds, access_token_validity_seconds, id_token_validity_seconds, allow_introspection) VALUES
|
||||||
('client', 'secret', 'Test Client', false, null, 3600, 600);
|
('client', 'secret', 'Test Client', false, null, 3600, 600, true);
|
||||||
|
|
||||||
INSERT INTO client_scope_TEMP (owner_id, scope) VALUES
|
INSERT INTO client_scope_TEMP (owner_id, scope) VALUES
|
||||||
('client', 'openid'),
|
('client', 'openid'),
|
||||||
|
@ -36,10 +36,10 @@ INSERT INTO authorized_grant_type_TEMP (owner_id, authorized_grant_type) VALUES
|
||||||
--
|
--
|
||||||
|
|
||||||
MERGE INTO client_details
|
MERGE INTO client_details
|
||||||
USING (SELECT client_id, client_secret, client_name, dynamically_registered, refresh_token_validity_seconds, access_token_validity_seconds, id_token_validity_seconds FROM client_details_TEMP) AS vals(client_id, client_secret, client_name, dynamically_registered, refresh_token_validity_seconds, access_token_validity_seconds, id_token_validity_seconds)
|
USING (SELECT client_id, client_secret, client_name, dynamically_registered, refresh_token_validity_seconds, access_token_validity_seconds, id_token_validity_seconds, allow_introspection FROM client_details_TEMP) AS vals(client_id, client_secret, client_name, dynamically_registered, refresh_token_validity_seconds, access_token_validity_seconds, id_token_validity_seconds, allow_introspection)
|
||||||
ON vals.client_id = client_details.client_id
|
ON vals.client_id = client_details.client_id
|
||||||
WHEN NOT MATCHED THEN
|
WHEN NOT MATCHED THEN
|
||||||
INSERT (client_id, client_secret, client_name, dynamically_registered, refresh_token_validity_seconds, access_token_validity_seconds, id_token_validity_seconds) VALUES(client_id, client_secret, client_name, dynamically_registered, refresh_token_validity_seconds, access_token_validity_seconds, id_token_validity_seconds);
|
INSERT (client_id, client_secret, client_name, dynamically_registered, refresh_token_validity_seconds, access_token_validity_seconds, id_token_validity_seconds, allow_introspection) VALUES(client_id, client_secret, client_name, dynamically_registered, refresh_token_validity_seconds, access_token_validity_seconds, id_token_validity_seconds, allow_introspection);
|
||||||
|
|
||||||
MERGE INTO client_scope
|
MERGE INTO client_scope
|
||||||
USING (SELECT id, scope FROM client_scope_TEMP, client_details WHERE client_details.client_id = client_scope_TEMP.owner_id) AS vals(id, scope)
|
USING (SELECT id, scope FROM client_scope_TEMP, client_details WHERE client_details.client_id = client_scope_TEMP.owner_id) AS vals(id, scope)
|
||||||
|
|
|
@ -44,6 +44,7 @@ CREATE TEMPORARY TABLE IF NOT EXISTS client_details_TEMP (
|
||||||
client_secret VARCHAR(2048),
|
client_secret VARCHAR(2048),
|
||||||
access_token_validity_seconds BIGINT,
|
access_token_validity_seconds BIGINT,
|
||||||
refresh_token_validity_seconds BIGINT,
|
refresh_token_validity_seconds BIGINT,
|
||||||
|
allow_introspection BOOLEAN,
|
||||||
|
|
||||||
client_name VARCHAR(256)
|
client_name VARCHAR(256)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue