Configure Scopes

Create and manage OAuth scopes for access control.

Overview

Scopes define what access a client can request:

  • Standard scopes - OpenID Connect scopes (openid, profile, email)

  • Custom scopes - Application-specific access levels (read, write, admin)

Default Scopes

Authority includes these standard scopes:

Scope
Description
Claims

openid

OpenID Connect

sub

profile

User profile

name, family_name, given_name, picture

email

Email address

email, email_verified

address

Postal address

address

phone

Phone number

phone_number, phone_number_verified

offline_access

Refresh tokens

-

Admin Dashboard

Create Scope

  1. Navigate to Admin DashboardScopes

  2. Click New Scope

  3. Fill in:

Field
Description

Name

Scope identifier (e.g., read)

Description

Human-readable description

Default

Include in all authorizations

  1. Click Create

Scopes

Edit Scope

  1. Select the scope

  2. Modify fields

  3. Click Save

Delete Scope

  1. Select the scope

  2. Click Delete

  3. Confirm deletion

circle-exclamation

API Management

Create Scope

List Scopes

Response:

Update Scope

Delete Scope

Scope Naming Conventions

Hierarchical Scopes

Use colons to create hierarchies:

Resource-Action Pattern

Format: resource:action

Scope
Resource
Action

orders:read

Orders

Read

orders:create

Orders

Create

products:list

Products

List

API Versioning

Include version if needed:

Assign Scopes to Clients

When registering or updating a client:

When users authorize a client, they see requested scopes:

Validating Scopes

At Token Issuance

Authority validates that:

  1. Requested scopes exist

  2. Client is allowed to request them

  3. User consents to them

In Your API

Check scopes in access tokens:

Default Scopes

Set default scopes included in all authorizations:

Or mark scopes as default in the admin dashboard.

Scope Dependencies

Define scopes that require other scopes:

When admin is requested, read and write are automatically included.

Best Practices

circle-check
circle-exclamation

Next Steps

Last updated

Was this helpful?