debugging Azure/Entra-ID returned claims

pull/11179/head
Guido Serra 10 months ago
parent 2d25bf4afa
commit 8be99f60b4

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

Loading…
Cancel
Save