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

add debug logs

parent f74f71b2
Branches
No related tags found
No related merge requests found
Pipeline #7960 passed
...@@ -499,8 +499,10 @@ func main() { ...@@ -499,8 +499,10 @@ func main() {
if len(data.AccessToken) > 0 { if len(data.AccessToken) > 0 {
s := strings.Split(data.AccessToken, ".") s := strings.Split(data.AccessToken, ".")
if len(s[1]) > 0 { if len(s[1]) > 0 {
log.Debug("Split Access Token : ", s[1])
sDec, _ := base64.StdEncoding.DecodeString(s[1]) sDec, _ := base64.StdEncoding.DecodeString(s[1])
payload := append(sDec, []byte{125}...) payload := append(sDec, []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