c#


IdSrv4 - Access Token Validator EndPoint


I set up an Identity Server 4 server. In identity server 3 we have the endpoint available, so we can do the following:
POST /connect/accesstokenvalidation
token=<token>
I supposed it is the same on identity server 4, but I get a 404 NOT FOUND. Then I entered to: http://my-endpoint.com/.well-known/openid-configuration and the endpoint is not present.
Should I set up something to make it available on identity server 4?
It is Introspection Endpoint.
POST /connect/introspect
Authorization: Basic xxxyyy
token=<token>
To autorize, use a HTTP Basic authorization flow: combine <scope>:<scope_secret> pair and put it into Base64-encoded string (xxxyyy in example above). You may specify a scope_secret value in ApiResource definition:
new ApiResource("myapi, "My API")
{
Scopes = {new Scope("post-myapi")},
ApiSecrets = new List<Secret> {new Secret("any_string_you_like".Sha256())},
}
Which gets you response like:
{
"nbf": 1491850954,
"exp": 1491854554,
"iss": "api-auth",
"aud": [
"api-auth/resources",
"myapi"
],
"client_id": "foo",
"scope": "post-myapi",
"active": true
}
Full request (copied from Postman):
POST /connect/introspect HTTP/1.1
Host: localhost:6000
Authorization: Basic YXBpLWlzc3VlczpzY29wZVNlY3JldA==
Content-Type: application/x-www-form-urlencoded
token=.......

Related Links

Inno Setup .NET DLL call works in 64-bit, fails in 32-bit
Using string.Join() to avoid a trailing comma
Reference to the right “System” in c# project
How do I sum values from different rows with matching columns from a datagridview c#
I can't decorate whole Controller with my Custom Authorize Attribute
How to replace different words from list found in string with specific word
Gridview, Edit Mode: Why is my Grid getting rebound?
Unable to insert to SQL Server database
C# OutOfMemory exception when returning a small DataTable
Building Xamarin project
Windows forms pass List to a new form
Moq WebApi async method
Automapper child mapping with entity in the middle
Unity Coroutine for gameMenu
Migrating Database in a N-Tier Application with Entity Framework Codefirst
Search for devices in range of bluetooth UWP

Categories

HOME
reactjs
repository
ftp
cors
process
skypedeveloper
sugarcrm
opacity
clip-path
osx-yosemite
annyang
jcodemodel
facebook-sharer
mamp
resharper
fastreport
amazon-data-pipeline
samba
filehelpers
xforms
include-path
beaker-notebook
onclicklistener
uipath
functional-dependencies
expressionengine
windows-mobile
workflow-foundation
resx
units-of-measurement
jms-topic
federated
spring-data-gemfire
spring-oauth2
jcr
apache-falcon
cache-control
outlook-2010
ui-grid
delphi-xe
compiled-query
nshttpurlresponse
f#-fake
synchronized
qtwebkit
togglebutton
nao-robot
ionic2-select
ng-class
jcs
business-catalyst
timex
robotc
lightspeed
konakart
falcon
vitamio
avaudiorecorder
user-profile
python-rq
mod
innertext
methodology
videoview
controlpanel
random-sample
self-join
om
dcg
p4python
playn
jeet-grid
cl.exe
qxorm
fiware-health
os.walk
breeze-sharp
rpt
angular-file-upload
xpand
jsmpp
pidgin
acrofields
complete
jfilechooser
cab
caroufredsel
outlook-object-model
qmainwindow
mysql2
auctex
feincms
report-viewer2010
netzke
mvcmailer
datejs
jqzoom
recess
subdirectories
iphone-maps
xslt-grouping
uccapi
rpxnow
data-formats
retrospectiva
expander
unauthorized

Resources

Encrypt Message