Error on getting userinfo
See original GitHub issueHi,
I’ve just downloaded your code to learn about go and jwt. When trying to access the userinfo api i received a message, that I could not figure what is the problem. I hope you can help me undestand:
[negroni] PANIC: interface conversion: interface {} is nil, not *jwt.Token
Issue Analytics
- State:
 - Created 6 years ago
 - Comments:6 (3 by maintainers)
 
Top Results From Across the Web
ErrorType and userInfo dictionaries | Apple Developer Forums
NSError has a way to carry additional information around with it: the userInfo dictionary. This includes user-facing information like the localized ...
Read more >Unauthorized error when hitting the userinfo endpoint
Update: I am getting this error when I have the user-info-uri property in the configuration and if removed, the endpoint is accissible.
Read more >Unable to get userinfo returns 400 bad request
I have been trying to battle with this issue, I verified that I do have "openid" scope as part of my JWT authorization...
Read more >UserInfo endpoint - Amazon Cognito
The userInfo endpoint is an OpenID Connect (OIDC) userInfo endpoint . It responds with user attributes when service providers present access tokens that ......
Read more >Error while getting user info for application - BMC Communities
Error while getting user info for application : AtriumCMDBConsole. Please help me. i have a problem when connect to atrium cmdb through mid...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I’ve seen this exact same issue. In my case, I’d used go modules to pull down the dependencies. After much debugging I eventually discovered that the version of JWT middleware I was using wasn’t the latest! I had somehow managed to grab a version from 2016-04
After coaxing go modules to get the latest version from 2017-04
the problem I was having with getting userinfo was resolved.
I’m sorry, without more information, I can’t tell what the problem is. I was able to duplicate your error, but it is now fixed for me. Perhaps try a “go get -u ./…” in the project root. Then restart everything.