Commit 4958f006 authored by ale's avatar ale
Browse files

Log hydra.GetClient errors

parent 2f47d6e9
......@@ -6,6 +6,7 @@ import (
log ""
jwt ""
hclient ""
......@@ -253,6 +254,10 @@ func (idp *Provider) getClient(ctx context.Context, clientID string) (*hclient.C
// Either the client isn't registered in hydra, or maybe hydra is
// having some problem. Either way, ensure we don't hit hydra again
// for this client if someone (maybe an attacker) retries quickly.
"error": err,
"client_id": clientID,
}).Error("GetClient error")
idp.cache.Set(clientKey, nil, idp.config.ClientCacheExpiration)
return nil, err
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