v1
latestOpenAPI 3.1.22026-08-0611530152.3 KBOAuth 2.0
Update OAuth 2.0 configuration
Update the existing OAuth 2.0 configuration. This is an asynchronous operation that returns a job_id immediately. Track progress using the Jobs API.
Note: Only one operation can run at a time per resource. When operation is completed, a restart of RabbitMQ is required for changes to be applied.
put/oauth2-configurations
Request body
Example request
{
"resource_server_id": "rabbitmq",
"issuer": "https://auth.example.com",
"preferred_username_claims": [
"sub",
"email"
],
"additional_scopes_key": [
"roles",
"groups"
],
"scope_prefix": "my-app:",
"scope_aliases": {
"user": "user:read",
"admin": "admin:access"
},
"verify_aud": true,
"oauth_client_id": "oauth-client-id-456",
"oauth_scopes": [
"manage:clients",
"read:users"
],
"audience": "rabbitmq",
"oauth_disable_basic_auth": true
}Response
Configuration update initiated
Example response
{
"job_id": "5c2f59e8-826e-452c-b28d-27ef1f8b32a3"
}