IdentityServer4 icon indicating copy to clipboard operation
IdentityServer4 copied to clipboard

Calling introspect with Bearer token

Open dhjf opened this issue 10 years ago • 10 comments

Hi

Is it correct that IdentityServer4 does not support calling the introspect endpoint using a Bearer token? According to the RFC, this should be possible - please correct me if I am wrong :-)

/Christian

dhjf avatar Oct 03 '16 07:10 dhjf

not out of the box. What would be the scenario? And what exactly does the spec say?

leastprivilege avatar Oct 03 '16 08:10 leastprivilege

The scenario is that we currently call the introspect endpoint using a scope/secret, and we might not know or want to know the scope secret at this point.

From the spec: To prevent token scanning attacks, the endpoint MUST also require some form of authorization to access this endpoint, such as client authentication as described in OAuth 2.0 [RFC6749] or a separate OAuth 2.0 access token such as the bearer token described in OAuth 2.0 Bearer Token Usage [RFC6750].

Examples can be found in the spec and here: http://connect2id.com/products/server/docs/api/token-introspection

dhjf avatar Oct 03 '16 09:10 dhjf

For your API to get a token to call introspection, it would need a client secret. What's the advantage here?

Sent from my iPhone

On 3 Oct 2016, at 11:03, dhjf [email protected] wrote:

The scenario is that we currently call the introspect endpoint using a scope/secret, and we might not know or want to know the scope secret at this point.

From the spec: To prevent token scanning attacks, the endpoint MUST also require some form of authorization to access this endpoint, such as client authentication as described in OAuth 2.0 [RFC6749] or a separate OAuth 2.0 access token such as the bearer token described in OAuth 2.0 Bearer Token Usage [RFC6750].

Examples can be found in the spec and here: http://connect2id.com/products/server/docs/api/token-introspection

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

leastprivilege avatar Oct 03 '16 09:10 leastprivilege

I might be mixing topics now, but currently you do a check to see if the scope used to call the introspect endpoint is part of the input token. Is this a requirement from the spec?

dhjf avatar Oct 03 '16 09:10 dhjf

yes

leastprivilege avatar Oct 03 '16 09:10 leastprivilege

Hi, sorry for interrupting this thread. But is it possible to point to the part of the spec where

but currently you do a check to see if the scope used to call the introspect endpoint is part of the input token. Is this a requirement from the spec?

is described?

madsj avatar Oct 03 '16 19:10 madsj

in 2.2 it says

The authorization server MAY respond differently to different protected resources making the same request. For instance, an authorization server MAY limit which scopes from a given token are returned for each protected resource to prevent a protected resource from learning more about the larger network than is necessary for its operation.

leastprivilege avatar Oct 14 '16 06:10 leastprivilege

@dhjf all set on this issue -- can we close?

brockallen avatar Oct 21 '16 22:10 brockallen

Yeah, you can close it. Thanks.

dhjf avatar Oct 24 '16 09:10 dhjf

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.

lock[bot] avatar Jan 15 '20 10:01 lock[bot]