Closed monok-o closed 2 years ago
I actually kinda fixed it : https://github.com/monok-o/hydra-client-go/commit/de77bfac3384d533a4d7d54dab898ddd1f22b712
@monok-o @robinWongM @phsym did you find the official way to use the current SDK version with double map
? It seems here since v1.11
Thank you,
@gen1us2k can you maybe take a look? :)
@sneko well, actually I'm using the fix from @monok-o 's fork
I can say that something is wrong with openAPI generator because the specification is the same across the versions but it generates completely different code.
Thanks - it appears to be a dupe of: https://github.com/ory/hydra/issues/3058
Preflight checklist
Describe the bug
Hello, this is probably not a bug but I can't find anything in the document or in other repo. It seems that the API have been changed and I'm now struggling to just set the IdToken because it ask map[string]map[string]interface{} while I understand that the IdToken is just made of key and values, because then when I try to get the user information with go-oidc, it says that it can't parse the field I filled in the consent request... I'm very sorry if I'm reporting this in the wrong place or if it's documented. Thank you a lot!
Reproducing the bug
This is the code of my consent endpoint (currently just for test purposes):
And this is the code of the callback endpoint (also for testing purpose, so don't worry for the hardcoded secret):
And when I fill the "email" field in the consent endpoint, the callback endpoint send me:
oidc: failed to decode userinfo: json: cannot unmarshal object into Go struct field UserInfo.email of type string
and when I print UserInfo.email it just return a nil value...But when I don't fill the IdToken, everything is fine.
Relevant log output
No response
Relevant configuration
No response
Version
1.11.7
On which operating system are you observing this issue?
Linux
In which environment are you deploying?
Binary
Additional Context
No response