mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 04:27:02 +01:00
chore: Made oauth2 scopes required in CLI (#3165)
This commit is contained in:
parent
cc7530aa65
commit
1b58e4169a
|
@ -210,7 +210,7 @@ You can create a scope map with:
|
|||
|
||||
```bash
|
||||
kanidm system oauth2 update-scope-map <name> <kanidm_group_name> [scopes]...
|
||||
kanidm system oauth2 update-scope-map nextcloud nextcloud_admins admin
|
||||
kanidm system oauth2 update-scope-map nextcloud nextcloud_users email profile openid
|
||||
```
|
||||
|
||||
> [!TIP]
|
||||
|
@ -225,13 +225,17 @@ kanidm system oauth2 update-scope-map nextcloud nextcloud_admins admin
|
|||
> - **email** - email, email_verified
|
||||
> - **address** - address
|
||||
> - **phone** - phone_number, phone_number_verified
|
||||
> - **groups** - groups
|
||||
|
||||
<!-- this is just to split the templates up -->
|
||||
|
||||
> [!WARNING]
|
||||
>
|
||||
> If you are creating an OpenID Connect (OIDC) client you **MUST** provide a scope map named
|
||||
> If you are creating an OpenID Connect (OIDC) client you **MUST** provide a scope map containing
|
||||
> `openid`. Without this, OpenID Connect clients **WILL NOT WORK**!
|
||||
> ```bash
|
||||
> kanidm system oauth2 update-scope-map nextcloud nextcloud_users openid
|
||||
> ```
|
||||
|
||||
You can create a supplemental scope map with:
|
||||
|
||||
|
|
|
@ -943,7 +943,7 @@ pub struct Oauth2CreateScopeMapOpt {
|
|||
nopt: Named,
|
||||
#[clap(name = "group")]
|
||||
group: String,
|
||||
#[clap(name = "scopes")]
|
||||
#[clap(name = "scopes", required = true)]
|
||||
scopes: Vec<String>,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue