Version Affected: All
Overview
Calling SecureAuth CIAM's Import Configuration API can return a 400 Bad Request or 422 Unprocessable Entity error, with response text describing the specific problem -- for example, an OAuth client requesting a grant type the target Workspace does not allow.
Cause
The configuration being imported is misconfigured for the target Workspace.
Resolution:
Edit the JSON configuration file to correct the misconfiguration described in the error message, then re-run the import. The import tool checks the configuration against the target Workspace's settings, and will only import clients that are compatible with those settings. For example, this request:
POST https://<tenant_id>.<region>.authz.cloudentity.io/api/system/<tenant_id>/configuration?mode=updatecan return:
{
"status_code": 422,
"error_code": "",
"error": "OAuth client wants to use authorization_code grant type but authorization server does not allow it",
"details": null
}Correct the configuration to match what the error describes, then re-run the import.
SecureAuth Knowledge Base Articles provide information based on specific use cases and may not apply to all appliances or configurations. Be advised that these instructions could cause harm to the environment if not followed correctly or if they do not apply to the current use case.
Customers are responsible for their own due diligence prior to utilizing this information and agree that SecureAuth is not liable for any issues caused by misconfiguration directly or indirectly related to SecureAuth products.
Comments
Please sign in to leave a comment.