fix(oidc): do not lower case in log messages (#2236)

This commit is contained in:
Amir Zarrinkafsh 2021-08-04 08:54:45 +10:00 committed by GitHub
parent f7b358e72a
commit 28991dd71a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}