Seed user apps and secrets.
This commit is contained in:
@@ -4,7 +4,7 @@ method: POST
|
|||||||
body:
|
body:
|
||||||
type: urlencoded
|
type: urlencoded
|
||||||
content:
|
content:
|
||||||
token: "{{vault:refresh_token}}"
|
token: "{{vault:expenses_refresh_token}}"
|
||||||
auth:
|
auth:
|
||||||
type: noauth
|
type: noauth
|
||||||
order: 3000
|
order: 3000
|
||||||
|
|||||||
@@ -7,6 +7,37 @@ VALUES (
|
|||||||
'00000000-0000-0000-0000-000000000002'
|
'00000000-0000-0000-0000-000000000002'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
INSERT INTO
|
||||||
|
user_apps (id, user_id)
|
||||||
|
VALUES (
|
||||||
|
'00000000-0000-0000-0000-000000000001',
|
||||||
|
'00000000-0000-0000-0000-000000000001'
|
||||||
|
),
|
||||||
|
(
|
||||||
|
'00000000-0000-0000-0000-000000000002',
|
||||||
|
'00000000-0000-0000-0000-000000000002'
|
||||||
|
);
|
||||||
|
|
||||||
|
INSERT INTO
|
||||||
|
user_app_secrets (
|
||||||
|
id,
|
||||||
|
app_id,
|
||||||
|
secret_hash,
|
||||||
|
expires_at
|
||||||
|
)
|
||||||
|
VALUES (
|
||||||
|
'00000000-0000-0000-0000-000000000001',
|
||||||
|
'00000000-0000-0000-0000-000000000001',
|
||||||
|
sha256 (convert_to ('test', 'UTF8')),
|
||||||
|
'2030-01-01T00:00:00Z'
|
||||||
|
),
|
||||||
|
(
|
||||||
|
'00000000-0000-0000-0000-000000000002',
|
||||||
|
'00000000-0000-0000-0000-000000000002',
|
||||||
|
sha256 (convert_to ('test', 'UTF8')),
|
||||||
|
'2030-01-01T00:00:00Z'
|
||||||
|
);
|
||||||
|
|
||||||
INSERT INTO
|
INSERT INTO
|
||||||
accounts (id, name)
|
accounts (id, name)
|
||||||
VALUES (
|
VALUES (
|
||||||
|
|||||||
Reference in New Issue
Block a user