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.
New format: The access object is the recommended way to configure authentication and access settings. Root-level properties (requiresLogin, residency, sso, rbac) are still supported for backward compatibility but will show 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 root-level properties, you can 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: readNote: logoutReturnUrl is a new feature and is only available in the access object format. It was not previously available as a root-level property.
Important: Do not define the same property both at root level and in the access object. If both are defined, the configuration will throw 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