Open ShiningRush opened 5 years ago
Could you post the response from your OIDC Providers X-Userinfo endpoint?
Here is response of my userinfo endpoint:
{"sub":"b5b7e48b-e785-4fd1-bf4e-e78f2ce8b305","email":"huyichao@followme.com","email_verified":true}#
That's strange. What OIDC Provider are you using?
I'm using openiddict as OIDC provider.
@ShiningRush what is the response_type value you have configured.
Now I am able to access my api with oidc plugins, then i found the X-UserInfo of request header is a base64 string, and i decoded it like that
I consider oidc plugin should get content from userinfo endpoint ( https://github.com/nokia/kong-oidc/issues/15#issuecomment-335040470 ),
So it should be least three fields same with return of my userinfo endpoint, If content is from id_token, it should be least five fields, But now there is just two field in X-UserInfo, Am i miss something configured?