Creating a new Application using a blank Redirect URL doesn't display any error message on Red Hat 3scale API Management
Issue
If in Red Hat Single Sign-On (RH SSO) Service Accounts Flow
is activated in the client configuration, the field Redirect URL
must contain a value, in this case the field is mandatory. This results in error messages in the zync
pod when syncing to RH SSO similar to the ones below:
{"adapter":"Keycloak","client_id":"040f8a28","action":"update_client","duration":211.79,"exception":"Keycloak::InvalidResponseError","error":"Keycloak::InvalidResponseError: 500 Internal Server Error","metadata":{"response":{"status":500,"reason":"Internal Server Error","content_type":null,"body":""},"headers":{"Date":"Fri, 13 Sep 2019 10:46:20 GMT","Server":"Apache","Content-Length":"0","X-Frame-Options":"SAMEORIGIN","Strict-Transport-Security":"max-age=16070400","X-XSS-Protection":"1; mode=block","X-Content-Type-Options":"nosniff","Connection":"close"}}}
[1m[36mIntegrationState Update (1.4ms)[0m [1m[33mUPDATE "integration_states" SET "success" = $1, "finished_at" = $2, "updated_at" = $3 WHERE "integration_states"."id" = $4[0m [["success", false], ["finished_at", "2019-09-13 10:46:20.628697"], ["updated_at", "2019-09-13 10:46:20.629528"], ["id", 39]]
[1m[36mTenant Load (0.6ms)[0m [1m[34mSELECT "tenants".* FROM "tenants" WHERE "tenants"."id" = $1 LIMIT $2[0m [["id", 10007], ["LIMIT", 1]]
[1m[35m (2.4ms)[0m [1m[35mCOMMIT[0m
{"adapter":"Que","job":"ProcessIntegrationEntryJob","priority":null,"queue":"default","arguments":["gid://zync/Integration::Keycloak/1","gid://zync/Model/83"],"action":"perform","duration":332.15,"exception":"Keycloak::InvalidResponseError","error":"Keycloak::InvalidResponseError: {\"error\"=>\"invalid_client_metadata\", \"error_description\"=>\"Client Identifier in use\"}","metadata":{"response":{"status":400,"reason":"Bad Request","content_type":"application/json","body":"{\"error\":\"invalid_client_metadata\",\"error_description\":\"Client Identifier in use\"}"},"headers":{"Date":"Fri, 13 Sep 2019 10:46:20 GMT","Server":"Apache","Content-Length":"82","X-Frame-Options":"SAMEORIGIN","Strict-Transport-Security":"max-age=16070400","X-XSS-Protection":"1; mode=block","X-Content-Type-Options":"nosniff","Connection":"close","Content-Type":"application/json"}}}
Environment
- Red Hat 3scale API Management
- SaaS
- 2.X On-premises
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.