From f194594e5b742ff376246d86eaad78754691f347 Mon Sep 17 00:00:00 2001 From: Ryan Richard Date: Thu, 22 Aug 2024 10:09:19 -0700 Subject: [PATCH] failed token exchanges should show in log at default log config --- .../federationdomain/endpoints/callback/callback_handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/federationdomain/endpoints/callback/callback_handler.go b/internal/federationdomain/endpoints/callback/callback_handler.go index a7c24dfe7..9295b90ef 100644 --- a/internal/federationdomain/endpoints/callback/callback_handler.go +++ b/internal/federationdomain/endpoints/callback/callback_handler.go @@ -62,7 +62,7 @@ func NewHandler( identity, loginExtras, err := idp.LoginFromCallback(r.Context(), authcode(r), state.PKCECode, state.Nonce, redirectURI) if err != nil { - plog.InfoErr("unable to complete login from callback", err, + plog.WarningErr("unable to complete login from callback", err, "identityProviderDisplayName", idp.GetDisplayName(), "identityProviderResourceName", idp.GetProvider().GetResourceName(), "supervisorCallbackURL", redirectURI) @@ -76,7 +76,7 @@ func NewHandler( GrantedScopes: authorizeRequester.GetGrantedScopes(), }) if err != nil { - plog.InfoErr("unable to create a Pinniped session", err, + plog.WarningErr("unable to create a Pinniped session", err, "identityProviderDisplayName", idp.GetDisplayName(), "identityProviderResourceName", idp.GetProvider().GetResourceName(), "supervisorCallbackURL", redirectURI)