Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntrospectionEndpoint returns 401 response #20

Closed
randalvance opened this issue Oct 5, 2016 · 1 comment
Closed

IntrospectionEndpoint returns 401 response #20

randalvance opened this issue Oct 5, 2016 · 1 comment

Comments

@randalvance
Copy link

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.

@github-actions
Copy link

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

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant