Add markers to highlight where to begin and end copy/pasta on oidc script.

Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
This commit is contained in:
Randy Barlow 2018-05-03 21:18:34 +00:00
parent b5cf0d7844
commit 096edb164a

View file

@ -32,6 +32,7 @@ secret = base64.urlsafe_b64encode(os.urandom(64))[:64]
template = """
Run this SQL against Ipsilon's database:
--------START CUTTING HERE--------
BEGIN;
insert into token values ('{uuid}','username','{service_name}@service');
insert into token values ('{uuid}','security_check','{secret}');
@ -41,6 +42,8 @@ insert into token values ('{uuid}','type','Bearer');
insert into token values ('{uuid}','issued_at','{now}');
insert into token values ('{uuid}','scope','{scope}');
COMMIT;
-------- END CUTTING HERE --------
"""