UserInfo Endpoint

The UserInfo endpoint allows your application to return claims about a currently authenticated user. You can find this endpoint from the OAuth Discovery Endpoint.

OAuth Discovery Endpoint

https://<EID Server>/oauth/.well-known/openid-configuration

How to call the UserInfo Endpoint

1. Initiate a request to the EmpowerID User Information endpoint, https://<EID Server>/oauth/v2/userinfo

GET /oauth/v2/userinfo HTTP/1.1 Host: <EID Server> Content-Type: application/x-www-form-urlencoded Cache-Control: no-cache Authorization: Bearer <access_token>

Header Parameter

Required/Optional

Description

Header Parameter

Required/Optional

Description

Content-Type

required

Must be application/x-www-form-urlencoded.

Authorization

required

The access token must be sent in the Authorization header field

2. Returns user information in the response

{     "id": "d399765d-fcd7-45c9-913f-2b0c9e65f8b7",     "username": "xxxxxxxxxxx",     "first_name": " xxxxxxxxxxx ",     "last_name": " xxxxxxxxxxx ",     "email": " xxxxxxxxxxx",     "organization": "Hosting Organization",     "business_role_locations": [         "Any Role in Anywhere",         "Standard Employee in Anywhere",         "All Employee Roles in Anywhere",         "All Employee Roles in All Business Locations",         "Any Role in All Business Locations",         "Default Organization All Roles in All Business Locations",         "Standard Employee in All Business Locations",         "All Business Roles in Anywhere",         "All Business Roles in Default Organization",         "All Employee Roles in Default Organization",         "Any Role in Default Organization",         "Standard Employee in Default Organization"     ] }

 

IN THIS ARTICLE

 

Â