IdentityServer / IdentityServer3.AccessTokenValidation

OWIN Middleware to validate access tokens from IdentityServer3
Apache License 2.0
90 stars 150 forks source link

Adding option for configuring IntrospectionEndpoint #161

Open amit-g opened 7 years ago

amit-g commented 7 years ago

IntrospectionEndpointTokenProvider currently uses /connect/introspect as introspection endpoint which works perfectly with IdentityServer. Some other provides (e.g. Okta - see link below) have slightly different endpoint but currently there is no option to configure it. Is there a reason for not providing this as configuration option? We have updated the IdentityServerOAuthBearerAuthenticationOptions.cs to add an option for IntrospectionEndpointPath which is by default "connect/introspect". That works for us. Does it make sense to include it in the main repository? The same thing applies to ValidationEndpointTokenProvider as well which has connect/accesstokenvalidation as path with no option to configure.

https://developer.okta.com/docs/api/resources/oidc.html#introspection-request