# Code not valid with postman

**URL:** <https://forum.keycloak.org/t/code-not-valid-with-postman/13349>\
**Category:** Getting advice\
**Tags:** authentication, user-federation, oidc\
**Created:** [January 30, 2022, 9:15pm UTC](https://forum.keycloak.org/t/code-not-valid-with-postman/13349 "2022-01-30T21:15:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregorso](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/gregorso/32/4935_2.png) [@gregorso](https://forum.keycloak.org/u/gregorso)\
**Post date:** [January 30, 2022, 9:15pm UTC](https://forum.keycloak.org/t/code-not-valid-with-postman/13349/1 "2022-01-30T21:15:13Z")

</div>

Hi there.  
I’m testing keycloak with azure b2c which works well. Now I checked to auth with postman to keycloak which fails with “Code not valid”.  
Auth Url \*/protocol/openid-connect/auth  
Access Toke URL \*/protocol/openid-connect/token  
I see the flow with the last post. In the Body i have grant\_typ: authorization\_code and the code is the one which got from azure.  
The response from keycloak is “Code not valid”

anyone some ideas ?

---

<div class="post-metadata">

**Author:** ![gregorso](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/gregorso/32/4935_2.png) [@gregorso](https://forum.keycloak.org/u/gregorso)\
**Post date:** [February 1, 2022, 7:27am UTC](https://forum.keycloak.org/t/code-not-valid-with-postman/13349/2 "2022-02-01T07:27:13Z")

</div>

Log Message from Keycloak says: [org.keycloak.protocol.oidc.utils.OAuth2CodeParser] (default task-116) Invalid format of the UUID in the code
