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

Configure a client

Register redirects and keep DocID® credentials separated by environment.

Create or obtain a DocID® client for the website asset before starting development.

Required values

  • Client ID
  • Client secret for a confidential server-side client
  • DocID® issuer or base URL for the environment
  • One or more registered redirect URIs
  • The asset ID when using asset-specific metadata or business API resources

Redirect URI rules

DocID® compares the callback with the registered URI exactly. Register each real callback rather than using a wildcard.

These are different redirect URIs:

1https://example.com/auth/docid/callback2https://www.example.com/auth/docid/callback3https://example.com/auth/docid/callback/

Query strings and ports are part of the value too. Use HTTPS outside a controlled local development setup.

Authorization server metadata

Asset-specific authorization-server metadata is available at:

1/oauth2/{assetId}/.well-known/oauth-authorization-server?env={environment}

Use the asset ID and environment supplied for your integration. Metadata discovery helps avoid hardcoding endpoint URLs, but it does not replace correct client and redirect registration.

Store the secret

Keep the client secret in a server-side secret manager or protected environment variable. Never commit it, expose it through a client-visible environment variable, embed it in a mobile or browser bundle, or send it to analytics.

PreviousOAuth 2.0NextAuthorization code flow

On this page

  1. Required values
  2. Redirect URI rules
  3. Authorization server metadata
  4. Store the secret