DocID®DocID® Documentation
Back to DocID®
  • Overview

    • DocID® Documentation
  • Introduction

    • Introduction
    • How DocID® works
    • Core concepts
  • Getting Started

    • Getting Started
    • Drupal module
    • WordPress plugin
    • Custom website
    • Go-live checklist
  • Features

    • Features
    • Standard Login
    • Access and personalization
    • Analytics
    • Campaigns
  • Licenses

    • Licenses
  • OAuth 2.0

    • OAuth 2.0
    • Configure a client
    • Authorization code flow
    • Scopes and UserInfo
    • Security and environments
  • API

    • API
  • Help

    • Troubleshooting

OAuth 2.0

Scopes and UserInfo

Request the minimum identity data and safely map DocID® users.

DocID® currently supports these identity scopes:

ScopePurpose
openidIdentifies the request as OpenID Connect and provides the stable subject identifier
professionalRequests verified professional data: profession_id, discipline_id, and profession_verified
profileRequests authorized profile data: title, given_name, family_name, name, and gender
emailRequests the authorized email address
phoneRequests the authorized telephone number

Request the required baseline scopes as a space-separated value. Add profile, email, or phone only when the integration needs those data and the user authorizes their transfer:

1openid professional

UserInfo claims

Depending on the requested scopes, the user's profile, and the integration configuration, /oauth2/userinfo can return:

ClaimMeaning
subStable DocID® subject identifier
profession_idDocID® profession reference
discipline_idDocID® discipline reference
profession_verifiedWhether the professional status is verified
titleForm of address or title
given_nameGiven name
family_nameFamily name
nameDisplay or full name
genderProfile gender value
emailEmail address
phone_numberTelephone number

Claims other than sub can be absent. Do not grant access merely because an optional text field exists. Base decisions on a documented rule and handle unknown values safely.

Local account mapping

Use sub as the external identity key. Store it with the DocID® issuer if your application can connect to more than one issuer or environment. Do not merge production and non-production identities.

PreviousAuthorization code flowNextSecurity and environments

On this page

  1. UserInfo claims
  2. Local account mapping