Identityserver4: "No Client Identifier Found"

Created on 9 Jan 2017  路  5Comments  路  Source: IdentityServer/IdentityServer4

I have setup IdentityServer4 and it works fine as long as I use Postman to obtain access tokens (using resource owner grant), however, when I send the exact same request within a javascript application, I get a 400 bad request on the browser console and the following error in the IdentityServer console:

image

"No client identifier found". Here is the request sent in Typescript, using exact same parameters and values as I use in my Postman:

`let head = new Headers({
'content-type': 'application/x-www-form-urlencoded'
});
let options = new RequestOptions({
headers: head
});
let body = JSON.stringify({
"grant_type":"password",
"username": "behrooz66",
"client_id": "resourceOwner",
"client_secret": "secret",
"password": "bbcliqa",
"scope": "api offline_access"
});

  let x = this._http.post("http://localhost:5000/connect/token", body, options)
        .map(res => res.json());
  return(x);`

Any ideas?

Most helpful comment

why dont you say your fix then

All 5 comments

hmm, 5m from open to close. so what was it?

Sorry, I realized the format of the body is not right. My bad :(

why dont you say your fix then

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

krgm03 picture krgm03  路  3Comments

chrisrestall picture chrisrestall  路  3Comments

eshorgan picture eshorgan  路  3Comments

klioqc picture klioqc  路  3Comments

createroftheearth picture createroftheearth  路  3Comments