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
- REDOCLYThe following example shows how to redirect users to your main website after logout:
access:
requiresLogin: true
logoutReturnUrl: https://yourcompany.comThe following example sets EU residency:
access:
residency: https://app.cloud.eu.redocly.com
requiresLogin: trueThe following example shows how to configure role-based access control within the access object:
access:
rbac:
content:
'**':
authenticated: readThe 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: readIf 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: readNew format (recommended):
access:
requiresLogin: true
residency: https://app.cloud.eu.redocly.com
sso:
- CORPORATE
rbac:
content:
'**':
authenticated: readDo 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
- Residency configuration - Information about geographical hosting locations
- RBAC configuration - Alternative access control using role-based permissions