Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add info about all possible scopes for OAuth #1510

Merged
merged 1 commit into from
Mar 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/developer/app-store/plugins/oidc.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@ If `Use OAuth scope permissions` is enabled, Saleor will request his own permiss

Your OAuth provider needs to have an assigned audience with proper Saleor's permissions with prefix `saleor:`.

List of all available permissions can be checked in the [Permissions Enum](/api-reference/users/enums/permission-enum.mdx)

:::

Example:
> _UserA_ has assigned permissions on the OAuth side - `saleor:manage_apps` and `saleor:manage_orders`, _UserB_ has assigned
> permission - `saleor:manage_users`. When _UserA_ logs in to the Saleor using _OpenID Connect_ plugin, the plugin will grant the _UserA_
> permissions to _MANAGE_APPS_ and _MANAGE_ORDERS_. The _UserB_ will have access to resources protected by _MANAGE_USERS_
Expand Down