Update Native SSO settings
PUT
/api/admin/settings/native-sso
Code sample: Shell / cURL
curl --request PUT \ --url https://auth.example.com/api/admin/settings/native-sso \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "enabled": true, "deviceSecretTTLDays": 30, "maxDeviceSecretsPerUser": 5, "maxUseCountPerSecret": 10, "maxSecretsBehavior": "reject_new", "allowCrossClientNativeSSO": false, "rateLimit": { "maxAttemptsPerMinute": 10, "blockDurationMinutes": 15 } }'Updates AUTHRIM_CONFIG config:native-sso overrides after validating TTL, count, behavior, and rate-limit bounds.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
enabled
boolean
deviceSecretTTLDays
integer
maxDeviceSecretsPerUser
integer
maxUseCountPerSecret
integer
maxSecretsBehavior
string
allowCrossClientNativeSSO
boolean
rateLimit
Native SSO rate limit settings.
object
key
additional properties
key
additional properties
Example
{ "enabled": true, "deviceSecretTTLDays": 30, "maxDeviceSecretsPerUser": 5, "maxUseCountPerSecret": 10, "maxSecretsBehavior": "reject_new", "allowCrossClientNativeSSO": false, "rateLimit": { "maxAttemptsPerMinute": 10, "blockDurationMinutes": 15 }}Responses
Section titled “ Responses ”Native SSO settings mutation result.
Media type application/json
object
success
boolean
settings
Resolved Native SSO settings.
object
key
additional properties
sources
Setting sources; present after clearing overrides.
object
key
additional properties
note
string
key
additional properties
Example
{ "success": true, "settings": { "enabled": true, "deviceSecretTTLDays": 30, "maxDeviceSecretsPerUser": 5, "maxUseCountPerSecret": 10, "maxSecretsBehavior": "reject_new", "allowCrossClientNativeSSO": false, "rateLimit": { "maxAttemptsPerMinute": 10, "blockDurationMinutes": 15 } }, "sources": { "enabled": "kv" }, "note": "Native SSO settings updated successfully."}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}