Configure authentication and access-related settings in a single object. The access object groups authentication and access-related configuration options together for better organization and maintainability.
The access object is the recommended way to configure authentication and access settings. Root-level properties (requiresLogin, residency, sso, rbac) are supported for backward compatibility but display deprecation warnings when used alongside the access object.
| Option | Type | Description |
|---|---|---|
access | object | Container object for access-related configuration properties. Properties:
|
The following example configures authentication requirements and logout redirect:
access:
requiresLogin: true
logoutReturnUrl: https://example.com
sso:
- CORPORATE
- REDOCLY
The following example shows how to redirect users to your main website after logout:
access:
requiresLogin: true
logoutReturnUrl: https://yourcompany.com
The following example sets EU residency:
access:
residency: https://app.cloud.eu.redocly.com
requiresLogin: true
The following example shows how to configure role-based access control within the access object:
access:
rbac:
content:
'**':
authenticated: read
The following example shows all access-related options:
access:
requiresLogin: true
logoutReturnUrl: https://yourcompany.com
residency: https://app.cloud.eu.redocly.com
sso:
- CORPORATE
- GUEST
rbac:
content:
'**':
authenticated: read
If you're currently using requiresLogin, residency, sso, or rbac property at the root-level, migrate to the access object format:
Old format (deprecated):
requiresLogin: true
residency: https://app.cloud.eu.redocly.com
sso:
- CORPORATE
rbac:
content:
'**':
authenticated: read
New format (recommended):
access:
requiresLogin: true
residency: https://app.cloud.eu.redocly.com
sso:
- CORPORATE
rbac:
content:
'**':
authenticated: read
Do not define the same property both at root level and in the access object. Duplicate properties result in an error.
Use only the access object format for new configurations.
- RequiresLogin configuration - Detailed information about requiring login for your project
- SSO configuration - Complete guide for configuring single sign-on
- IdPs configuration - Target specific identity providers by unique ID
- Residency configuration - Information about geographical hosting locations
- RBAC configuration - Alternative access control using role-based permissions