SSO Permissions Mapping
Last updated
Last updated
This feature requires Quilt stack version 1.54.0 or higher
This feature allows Quilt admin to configure what roles and admin flag value are assigned to the user who logs in via SSO based on the user's ID token claims.
The configuration can be set with quilt3.admin.sso_config.set()
or with admin UI.
Note: Roles used by configuration can't be removed or renamed.
Note: The user who sets the configuration will never have their admin flag revoked.
Note: After configuration is set, any user who logs in via SSO can't be manually assigned roles or admin permissions.
The configuration file is to be written in YAML and is defined by this JSON Schema which includes descriptions of all the fields.
Warning: In schemas don't forget to add claims you want to check to
required
, because otherwise the schema will match any ID token even if these claims are missing.
user with email admin@example.com
will have ReadWriteQuiltBucket
role and admin flag set to true
user with group rw
will have ReadWriteQuiltBucket
role and admin flag set to false (except the user with admin@example.com
email)
all other users will have ReadQuiltBucket
role
Note: Unrecognized users will have their role set to the
default_role
, but their admin flag will be unchanged.