mirror of https://github.com/portainer/portainer
debugging Azure/Entra-ID returned claims
parent
2d25bf4afa
commit
8be99f60b4
|
@ -2,6 +2,7 @@ package oauth
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"mime"
|
"mime"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
@ -105,6 +106,7 @@ func getIdToken(token *oauth2.Token) (map[string]interface{}, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if claims, ok := t.Claims.(jwt.MapClaims); ok {
|
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 {
|
for k, v := range claims {
|
||||||
tokenData[k] = v
|
tokenData[k] = v
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue