• Articles
  • Configuration
  • Developers
  • Contact
  • Privacy & Terms
Show / Hide Table of Contents
  • Tokens
  • Requesting a Token
  • Refreshing a Token
  • Discovery Endpoint
  • Authorize Endpoint
  • Token Endpoint
  • UserInfo Endpoint
  • Introspection Endpoint
  • Revocation Endpoint
  • End Session Endpoint
  • Device Authorization Endpoint

UserInfo Endpoint

The UserInfo endpoint can be used to retrieve claims about a user (see spec.

The caller needs to send a valid access. Depending on the granted scopes, the UserInfo endpoint will return the mapped claims (at least the openid scope is required).

GET /connect/userinfo
Authorization: Bearer <access_token>
HTTP/1.1 200 OK
Content-Type: application/json

{
    "sub": "248289761001",
    "name": "Bob Smith",
    "given_name": "Bob",
    "family_name": "Smith"
}

.NET client library

You can use the IdentityModel client library to programmatically interact with the protocol endpoint from .NET code.

using IdentityModel.Client;s

var client = new HttpClient();

var response = await client.GetUserInfoAsync(new UserInfoRequest
{
    Address = disco.UserInfoEndpoint,
    Token = token
});
Back to top © 2020 Technology Transformation Group Limited.  All rights reserved.