You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, when using IntrospectionEndpoint, I am receiving 401. Here's my code:
var tokenClient = new TokenClient("http://localhost:1000/connect/token", "client_id", "client_secret");
var scopes = "MyApi offline_access openid profile";
var tokenResponse = await tokenClient.RequestResourceOwnerPasswordAsync(request.UserName, request.Password, scopes);
var accessToken = tokenResponse.AccessToken;
var introspectionClient = new IntrospectionClient("http://localhost:1000/connect/introspect",
"client_id", "client_secret");
var introspectResponse = await introspectionClient.SendAsync(new IntrospectionRequest()
{
Token = accessToken
});
The introspectResponse's response is the HTML markup of my login page. Debugging on IdentityServer code, it fails on validation of scope. It is searching the secret ID against the scope store and it cannot find it.
Am I doing something wrong? How do I use IntrospectionEndpoint properly? It seems it is using client id to validate against scopes. Thank you.
The text was updated successfully, but these errors were encountered:
Hi, when using IntrospectionEndpoint, I am receiving 401. Here's my code:
The introspectResponse's response is the HTML markup of my login page. Debugging on IdentityServer code, it fails on validation of scope. It is searching the secret ID against the scope store and it cannot find it.
Am I doing something wrong? How do I use IntrospectionEndpoint properly? It seems it is using client id to validate against scopes. Thank you.
The text was updated successfully, but these errors were encountered: