OIDC details for MBS.

Try this for now.  If we need actual secret values, we can set those up.
This commit is contained in:
Ralph Bean 2017-02-09 19:44:48 +00:00
parent 723817c096
commit 87d3989731
4 changed files with 37 additions and 0 deletions

View file

@ -25,3 +25,13 @@
tags:
- mbs
- mbs/common
- name: copy client secrets that aren't really secret.
template: >
src=client_secrets.json.{{env}} dest=/etc/module-build-service/client_secrets.json
owner=root group=root mode=0644
notify:
- restart apache
tags:
- mbs
- mbs/common

View file

@ -0,0 +1,12 @@
{
"web": {
"auth_uri": "https://id.fedoraproject.org/openidc/Authorization",
"client_id": "mbs-authorizer",
"client_secret": "notsecret",
"redirect_uris": [
"http://localhost:13747/"
],
"token_uri": "https://id.fedoraproject.org/openidc/Token",
"token_introspection_uri": "https://id.fedoraproject.org/openidc/TokenInfo"
}
}

View file

@ -0,0 +1,12 @@
{
"web": {
"auth_uri": "https://id.stg.fedoraproject.org/openidc/Authorization",
"client_id": "mbs-authorizer",
"client_secret": "notsecret",
"redirect_uris": [
"http://localhost:13747/"
],
"token_uri": "https://id.stg.fedoraproject.org/openidc/Token",
"token_introspection_uri": "https://id.stg.fedoraproject.org/openidc/TokenInfo"
}
}

View file

@ -117,3 +117,6 @@ class ProdConfiguration(BaseConfiguration):
PDC_URL = 'https://pdc.fedoraproject.org/rest_api/v1'
SCMURLS = ["git://pkgs.fedoraproject.org/modules/"]
{% endif %}
# These aren't really secret.
OIDC_CLIENT_SECRETS = path.join(confdir, 'client_secrets.json')