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

add resfresh token to grdf token answer

parent 07d4de49
Branches
No related tags found
No related merge requests found
Pipeline #7975 passed
...@@ -59,6 +59,7 @@ type GrdfConsentementToken struct { ...@@ -59,6 +59,7 @@ type GrdfConsentementToken struct {
type GrdfTokenResponse struct { type GrdfTokenResponse struct {
AccessToken string `json:"access_token"` AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token"`
IdToken string `json:"id_token"` IdToken string `json:"id_token"`
TokenType string `json:"token_type"` TokenType string `json:"token_type"`
ExpiresIn int `json:"expires_in"` ExpiresIn int `json:"expires_in"`
...@@ -565,6 +566,7 @@ func main() { ...@@ -565,6 +566,7 @@ func main() {
http.Error(w, decodeError.Error(), 500) http.Error(w, decodeError.Error(), 500)
return return
} }
data.RefreshToken = ""
if grantType != "refresh_token"{ if grantType != "refresh_token"{
data.Pce = pce data.Pce = pce
data.IdToken = IdToken data.IdToken = IdToken
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment