Commit 07dcac36 authored by Dimitris Aragiorgis's avatar Dimitris Aragiorgis

Add oa2_secret to conf files

This secret is used during registering pithos view in astakos.
Make this setting configurable.
Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
parent 441610ab
......@@ -7,6 +7,7 @@ user_email = user@synnefo.org
user_name = John
user_lastname = Doe
user_passwd = 12345
oa2_secret = 12345
[roles]
......
......@@ -7,6 +7,7 @@ user_email = user@synnefo.org
user_name = John
user_lastname = Doe
user_passwd = 12345
oa2_secret = 12345
[roles]
......
......@@ -616,9 +616,9 @@ def astakos_register_pithos_view():
pithos_base_url = "https://%s/pithos" % env.env.pithos.fqdn
cmd = """
snf-manage oauth2-client-add pithos-view --secret=12345 --is-trusted \
--url {0}
""".format('%s/ui/view' % pithos_base_url)
snf-manage oauth2-client-add pithos-view --secret={0} --is-trusted \
--url {1}
""".format(env.env.oa2_secret, '%s/ui/view' % pithos_base_url)
try_run(cmd)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment