Commit 20beb590 authored by Mihai Patrascoiu's avatar Mihai Patrascoiu
Browse files

Protect OIDC Manager when failing to register an IAM provider

parent 4824dc14
Pipeline #2125747 passed with stage
in 2 minutes and 6 seconds
......@@ -33,6 +33,7 @@ class OIDCmanager:
def _configure_clients(self, providers_config):
# log.debug('provider_info::: {}'.format(client.provider_info))
for provider in providers_config:
try:
client = Client(client_authn_method=CLIENT_AUTHN_METHOD)
# Retrieve well-known configuration
client.provider_config(provider)
......@@ -42,6 +43,9 @@ class OIDCmanager:
client.store_registration_info(client_reg)
issuer = client.provider_info['issuer']
self.clients[issuer] = client
except Exception, ex:
log.warning("Exception registering provider: {}".format(provider))
log.warning(ex)
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