From 28991dd71a8d5156c77b1d2f64608a43ed9b41de Mon Sep 17 00:00:00 2001 From: Amir Zarrinkafsh Date: Wed, 4 Aug 2021 08:54:45 +1000 Subject: [PATCH] fix(oidc): do not lower case in log messages (#2236) --- internal/oidc/store.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/oidc/store.go b/internal/oidc/store.go index 706e251d..d585fe42 100644 --- a/internal/oidc/store.go +++ b/internal/oidc/store.go @@ -15,6 +15,8 @@ import ( // NewOpenIDConnectStore returns a new OpenIDConnectStore using the provided schema.OpenIDConnectConfiguration. func NewOpenIDConnectStore(configuration *schema.OpenIDConnectConfiguration) (store *OpenIDConnectStore, err error) { + logger := logging.Logger() + store = &OpenIDConnectStore{ memory: &storage.MemoryStore{ IDSessions: map[string]fosite.Requester{}, @@ -32,7 +34,7 @@ func NewOpenIDConnectStore(configuration *schema.OpenIDConnectConfiguration) (st for _, client := range configuration.Clients { policy := authorization.PolicyToLevel(client.Policy) - logging.Logger().Debugf("registering client %s with policy %s (%v)", client.ID, client.Policy, policy) + logger.Debugf("Registering client %s with policy %s (%v)", client.ID, client.Policy, policy) store.clients[client.ID] = NewClient(client) }