[keycloak-user] invalid_code error when using openidconnect.net to test auth code flow
Ratna Kamireddy
ratna at qualica.com
Wed Oct 10 10:43:54 EDT 2018
Well we got it working so I might help to sort out the issue. But more
information would help to solve the problem like client setup etc
Regards
Ratna
On Wed, 10 Oct 2018 at 16:35, David Erie (US) <David.Erie at datapath.com>
wrote:
> Hello,
> I am using https://openidconnect.net to test out the authorization code
> flow on my Keycloak installation, but I am always getting this error in the
> log and no token in the response:
>
> type=LOGIN_ERROR, realmId=myrealm, clientId=null, userId=null,
> ipAddress=..., error=invalid_code
>
> Here's an example of the request:
>
> POST
> http://myserver:8447/auth/realms/myrealm/protocol/openid-connect/token
> grant_type=authorization_code
> <http://myserver:8447/auth/realms/myrealm/protocol/openid-connect/tokengrant_type=authorization_code>
> &client_id=oidc-playground
> &client_secret=19709e24-cac8-4ece-8b03-0a40e5c0c765
> &redirect_url=https://openidconnect.net/callback
>
> &code=eyJhbGciOiJkaXIiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2In0..w7Pc9yB_htF5F2_cgqDtZA.Ru7B5B-MgYT6mbGy8ykT2dyFVPRSj11HvgJV6rrFownvVUjKYQ90FaiU17rCxpREWC-znDyhzsz4gV7thmz2okswrIUezzgCtzzRqiXo8EidSFZk51qrs1C7UiYklQjMdqyt0qcDRtuhv6eV8YE-t31l3eeuMmKKrT6ikGy_HazJpoOamGyKbGQBGqaJoi8-dNmTVORC7mVHcvX7IEECA0RaSY-gAoNEFPy4ViaGX0JvHGUjUByFsOrQHUea9Fgm.TZbp9Kkt8IEB_JrOALBCYg
>
> Any help would be appreciated.
>
> Thanks,
> Dave
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
More information about the keycloak-user
mailing list