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

pull/2151/head^2
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
1 changed files with 3 additions and 1 deletions

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