From 8be99f60b42013598b86bc4ac18b1a5a29a0e97e Mon Sep 17 00:00:00 2001 From: Guido Serra Date: Wed, 14 Feb 2024 10:43:47 +0100 Subject: [PATCH] debugging Azure/Entra-ID returned claims --- api/oauth/oauth.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/oauth/oauth.go b/api/oauth/oauth.go index 678c2fff8..dee842e8d 100644 --- a/api/oauth/oauth.go +++ b/api/oauth/oauth.go @@ -2,6 +2,7 @@ package oauth import ( "context" + "fmt" "io" "mime" "net/http" @@ -105,6 +106,7 @@ func getIdToken(token *oauth2.Token) (map[string]interface{}, error) { } if claims, ok := t.Claims.(jwt.MapClaims); ok { + log.Debug().Str("obj", fmt.Sprintf("%#v", claims)).Msg("JSON Web Token (parsed)") for k, v := range claims { tokenData[k] = v }