Authentication

OIDC Response with Danish NemID

164 views October 10, 2019 October 10, 2019 1

An example of how to use the access token to return a JSON response containing the end-user’s information:

UserInfo request:

curl -XGET "https://preprod.signicat.com/oidc/userinfo" -H "Authorization: Bearer ACCESS_TOKEN"

 

UserInfo response:

{ 
   "sub":"hb4m4RJRnf3FhETtB4I7prJvsdXZCQJ2",
   "name":"Tycho Brahe",
   "given_name":"Tycho",
   "locale":"DK",
   "family_name":"Brahe"
}

Was this helpful?