Developer guide

Build with Unified Identity

Connect your application to a shared identity with OAuth 2.0 and OpenID Connect. Start with an application, configure its client, and send your first sign-in request.

Create an application
Give your integration a name and choose its workspace.
Configure a client
Set the client type and exact callback URLs.
Connect an identity
Request the permissions your application needs.

01 · SETUP

Set up your application

Verify your account email, create a workspace, and wait for administrator or moderator approval. Then create your application from Applications.

Choose the right OAuth client

An application starts with a public Production client. Use a confidential client for a web application that can keep its secret on the server. Browser and native clients use a public client with PKCE.

Verify a production domain

Add a domain, publish its DNS TXT proof, verify ownership, and assign the verified hostname to your application. Production callbacks require HTTPS and an exact registered URL.

Keep local development separate

Create a Development client for exact loopback callbacks. Keep development and production redirect URLs on their respective clients.

02 · DISCOVERY

Find your provider configuration

Configure your OIDC client library with the issuer. Discovery provides the endpoints, signing keys, and supported capabilities.

OpenID Connect discovery
Configuration for the current identity server.
https://auth.dylojestem.com/.well-known/openid-configuration
Issuer
https://auth.dylojestem.com

03 · SIGN-IN

Use Authorization Code Flow

Use S256 PKCE, a random state, and a random nonce for every authorization request. Store those values and the code verifier in your client session.

Authorization request
Replace the placeholders with your registered client and callback.
const params = new URLSearchParams({
  client_id: "YOUR_CLIENT_ID",
  redirect_uri: "YOUR_REGISTERED_CALLBACK",
  response_type: "code",
  scope: "openid profile email",
  state: randomState,
  nonce: randomNonce,
  code_challenge: sha256Base64Url(codeVerifier),
  code_challenge_method: "S256",
});

const authorizationUrl =
  "https://auth.dylojestem.com/oauth/authorize?" + params;
  1. 1

    Redirect to authorize

    Send the user to the authorization URL. They sign in and review the requested permissions.

  2. 2

    Validate the callback

    Check that state matches your saved value, then exchange the one-use code with its original verifier and the exact callback URL.

  3. 3

    Validate the identity token

    Your OIDC library must verify the signature, issuer, audience, expiration, and nonce before establishing your application session.

04 · SCOPES

Request only the access you need

Start with openid. Add profile and email when your application uses that information.

ScopeAccess
Scope
openid
Access
Identify the account and receive an ID token.
Scope
profile
Access
Read the account’s basic profile information.
Scope
email
Access
Read the email address and verification status.
Scope
offline_access
Access
Keep access using rotating refresh tokens.
Scope
discord
Access
Read the connected Discord profile approved for this Premium+ application. Tokens are never included.

Users can revoke access from Authorized applications. When they disconnect in your application, revoke its tokens and end the local application session. Workspace owners and administrators can also revoke a user’s current access or block future authorizations across that company’s applications. A block returns access_denied. Check token validity and end your own local session when provider access is revoked.

05 · ACCESS

Choose who can authorize

Open an application's Settings tab to manage account requirements.

Everyone or verified accounts

Blue verified accounts have completed their profile, verified their email and enabled two-factor authentication or a passkey. Users who need verification see a link to their account setup during authorization.

Minimum account age

Choose minutes, hours or days, up to 90 days. Set zero to allow accounts of any age. Users see how much time remains. Verification and age requirements can be used together and also apply to existing authorizations and token refreshes.

Team approval

Require a request before a user can connect. Team members with access-management permission review requests in Access requests. Pending or declined requests cannot authorize. Declining an approved request invalidates its application grants and tokens. Other application requirements still apply.

Email domains and available places

Allow exact verified email domains: Basic 1, Premium 3 and Premium+ 10 per application. Set a limit of active users or pause new connections. Current users retain access during a pause; full applications offer a waiting list.

Questions, responses and appeals

Add up to eight questions to the request form. Reviewers can claim requests and ask for more information. Users follow progress, reply or withdraw under Your account → Access requests. Optional appeals allow one response within the configured deadline.

Invitations, access codes and terms

Under Entry requirements, choose specific verified email addresses (up to 500), set an access code of 8–64 characters or require agreement to your terms. Codes are remembered for each account and application until you replace the code. Publish a new terms version when the document changes; users must agree again. Codes and invitation lists are private to application managers and excluded from configuration exports.

Application availability and reports

Add a message, estimated reopening time and HTTPS contact link for paused or disabled applications. Reopening is manual. During authorization, signed-in users with verified email addresses can report an application with a reason of 10–1,000 characters. Reports are private to platform administrators and moderators, who review them under Administration → Application reports. Use the application filter to review one app or all apps. The actions menu lets staff update reports and send company warnings. Administrators can suspend or restore workspace access. Suspension revokes existing grants and tokens; restoring access requires users to authorize again. Each account can submit up to five reports per day; network limits and duplicate checks also apply. Reporting alone does not grant or revoke access.

Email updates

Manage email notifications under Your account → Notifications. Choose account status and verification, owned workspace updates, request decisions or domain verification independently. Updates go to your verified account email.

06 · APPEARANCE

Make authorization your own

Premium+ application settings include appearance, templates and configuration import.

Choose a light, dark or user-selected theme, a card layout and button colors. Preview the authorization on phone, tablet and desktop widths before saving. Every template supports light and dark themes.

Backgrounds accept still PNG, JPEG or WebP images up to 5 MB. Use one image or separate desktop, tablet and phone images. Recommended sizes are 1920 × 1080, 1536 × 2048 and 1080 × 1920, respectively. Images fill the screen with a centered crop; keep important artwork away from the edges. Reset colors and Reset backgrounds work independently.

Export JSON to reuse access, appearance and client settings. Secrets, tokens, client identifiers and uploaded files are excluded. Import maps to existing clients in creation order, validates registered domains and requires review before applying. Existing credentials are preserved.

07 · DISCORD

Connect Discord with Premium+

Use a Discord application owned by your company. Each workspace has its own credentials and user connections.

  1. Create an application in the Discord Developer Portal.
  2. In Workspace settings, enter its Client ID and Client Secret. Copy the callback address shown there into Discord's OAuth2 Redirects.
  3. Optional: enter the Server ID and a bot token from the same Discord application. Install the bot with Create Invite permission and enable server joining.
  4. Open the application's Discord tab. Enable the connection, choose whether it is required, and optionally enable joining after authorization.
  5. For an automatic role, enter its ID in the application's Discord tab. Each application can assign a different role. Give the bot Manage Roles and place its role above the one you want to assign. Failed assignments appear in the user's Discord profile and can be retried with Sync role.

Users approve their Discord profile, optional email and optional server joining. Existing connections refresh without asking for approval again. Users can disconnect each application in Authorized apps. Other companies cannot use that connection.

Allow the discord scope on your OAuth client to receive a Discord profile claim. It includes the account ID, username, display name, avatar, approved email and connection dates. Access and refresh tokens are never included in that claim.

Authorized team members can queue server joining from a user's Discord tab. Only the workspace owner can export credentials as JSON or CSV, after confirming their identity. Joining runs through the worker and respects Discord's rate limits. Premium+ features stop when the workspace loses that plan.

08 · REFERENCE

Provider endpoints

Resolve endpoints from discovery so your integration follows the provider’s configuration.

EndpointPurpose
Endpoint
/oauth/authorize
Purpose
Start an authorization request
Endpoint
/oauth/token
Purpose
Exchange codes and rotate refresh tokens
Endpoint
/oauth/userinfo
Purpose
Read approved account claims
Endpoint
/.well-known/jwks.json
Purpose
Public keys for ID token validation
Endpoint
/oauth/revoke
Purpose
Revoke an access or refresh token
Endpoint
/oauth/introspect
Purpose
Inspect tokens with an authorized confidential client
Endpoint
/oauth/logout
Purpose
End the provider session

Premium+

Custom authorization entry domains

Use a company hostname for entry while keeping the platform's account session and OAuth issuer unchanged.

Owners can register up to three verified domains in Public page & branding → Entry domains. The hostname must have its TXT ownership proof, DNS pointing to the reverse proxy, and a valid HTTPS certificate.

The proxy operator configures the hostname to forward only its root and /oauth/authorize to the platform /entry route, with the canonical Host, a trusted X-Unified-Custom-Host header and the existing proxy ingress secret. The deployment guide contains the Nginx Proxy Manager configuration. The secret belongs to the operator and is never exposed to workspace users.

Entry redirects to this workspace's public page or to the canonical authorization URL with its parameters preserved. The client must belong to this workspace. Login cookies, redirect URI checks, PKCE and token issuer remain on the canonical platform. Unknown hosts, failed ownership proof, unavailable workspaces and plan downgrades disable the alias.

Registering a hostname does not provision the external proxy or its certificate. Complete proxy setup and verify HTTPS before distributing the new address.

Keep client secrets on the server and use a maintained OIDC library for token validation.

Questions? Contact support