Commit 5e89709e authored by Mihai Patrascoiu's avatar Mihai Patrascoiu
Browse files

Register an OIDC client using the /openid-configuration issuer instead of the fts3config provider

parent 0987f8ff
Pipeline #1947209 failed with stage
in 17 seconds
......@@ -104,8 +104,6 @@ def fts3_config_load(path='/etc/fts3/fts3config'):
if "_" not in option:
provider_name = option
provider_url = parser.get("providers", provider_name)
if not provider_url.endswith("/"):
provider_url += "/"
fts3cfg["fts3.Providers"][provider_url] = {}
client_id = parser.get("providers", option + "_ClientId")
fts3cfg["fts3.Providers"][provider_url]["client_id"] = client_id
......
......@@ -40,7 +40,8 @@ class OIDCmanager:
client_reg = RegistrationResponse(client_id=providers_config[provider]['client_id'],
client_secret=providers_config[provider]['client_secret'])
client.store_registration_info(client_reg)
self.clients[provider] = client
issuer = client.provider_info['issuer']
self.clients[issuer] = client
def _retrieve_clients_keys(self):
for provider in self.clients:
......
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