Skip to content
Snippets Groups Projects
Commit 7f9d1ec2 authored by Yoan VALLET's avatar Yoan VALLET
Browse files

feat: move log for better debug

parent ffd247a4
Branches
No related tags found
No related merge requests found
Pipeline #9384 passed
...@@ -459,11 +459,11 @@ func main() { ...@@ -459,11 +459,11 @@ func main() {
s := strings.Split(IdToken, ".") s := strings.Split(IdToken, ".")
if len(s[1]) > 0 { if len(s[1]) > 0 {
payload, _ := base64.StdEncoding.DecodeString(s[1]) payload, _ := base64.StdEncoding.DecodeString(s[1])
log.Debug(string(payload))
// Check if the payload is well ended // Check if the payload is well ended
if payload[len(payload)-1] != 125 { if payload[len(payload)-1] != 125 {
payload = append(payload, []byte{125}...) payload = append(payload, []byte{125}...)
} }
log.Debug(string(payload))
// Decode the payload from the token // Decode the payload from the token
var token GrdfConsentementToken var token GrdfConsentementToken
err := json.Unmarshal(payload, &token) err := json.Unmarshal(payload, &token)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment