UpdateOAuth2Client
Updates an OAuth2 client (name, grants, redirect URIs, allowed origins, confidentiality, active state, owner, act-as user). id identifies the client and is never rewritten. plainSecret is non-null only when the client transitions from public to confidential and a new secret is minted.
Signature
mutation {
UpdateOAuth2Client(id: ..., name: ..., grants: ..., isConfidential: ..., active: ...)
}
Retourne : OAuth2ClientSecret!
Arguments
| Nom | Type | Requis | Défaut | Description |
|---|---|---|---|---|
id | ID! | ✓ | — | — |
name | String! | ✓ | — | — |
grants | [OAuth2Grant!]! | ✓ | — | — |
redirectUris | [String!] | — | Required with the AUTHORIZATION_CODE grant, refused without it. HTTPS, or plain HTTP towards 127.0.0.1 / [::1] only; on those, a * port (e.g. http://127.0.0.1:*/callback) accepts any port. | |
isConfidential | Boolean! | ✓ | — | — |
active | Boolean! | ✓ | — | — |
ownerId | ID | — | — | |
actAsUserId | ID | — | — | |
scopes | [String!] | — | Allowed scopes, validated against the catalogue. vasco:full is only kept on a client that already holds it. Omitted: unchanged. | |
allowedOrigins | [String!] | — | Browser origins (https://host[:port], no path nor wildcard) allowed to call the API in CORS on behalf of this client. Plain HTTP only towards 127.0.0.1 or [::1]. Omitted: unchanged; an empty list removes them all. |
Exemple
mutation {
UpdateOAuth2Client(
id: $id
name: $name
grants: $grants
isConfidential: $isConfidential
active: $active
) {
client {}
plainSecret
}
}