Search code examples
asp.netpostman

Postman Keycloak issuedFor


I'm trying to make a request from postman to Keycloak for authorization test and still getting this error:

{
    "error": "invalid_request",
    "error_description": "You must provide the issuedFor"
}

PostMan request parameters: request body values

Postman bearer token header: bearer token header


Solution

  • Ook i found the problem and resolved it. Keycloak does not give access to some type of requests when going out of the network. You must put it in https. When on your local machine, it does work but as soon as you go out of localhost to the network to reach keycloak, you must pass to https.

    So what i did is, in my request url, i changed the link to keycloak from http to https and hence changed the port from 8080 to 8443 (the port for https serving). Hope it would help someone. Special thanks to @RossPresser :)