IBM Support

webMethods Knowlegebase : Mediator sends incorrect HTTP status code for APIs with multiple authentication policies (1795016)

Troubleshooting


Problem

In CentraSite 10.3 Fix 2, a REST Service has been created and virtualized with the following policies:

- Evaluate HTTP Basic Authentication

- Evaluate OAuth2 Token (through the API Consumption Settings)

- Require API Key Check (through the API Consumption Settings)

The Operator (Applicable to only "Evaluate" actions) radio button to "Or" has been set.

Then it has been published to Mediator 9.12 Fix 17 using the axis-free stack.

For Basic Authentication and OAuth2, everything is working fine: authenticate with Basic Authentication or an OAuth2 token generated with the client ID and secret of a registered consumer application.

But when the API with an API key of a registered consumer application is called, the Mediator will always respond with HTTP status code 401, but the status text will be correct (OK or Created, depending on the method called), and it will correctly deliver the respective payload.

This behavior is not reproducible with one of the authentication policies alone. It seems to be a result of the combination of the three authentication policies. Looks like the OR connector is not being considered.

Document Location

Worldwide

[{"Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSEPWU","label":"IBM CentraSite"},"ARM Category":[{"code":"a8mKe00000000AQIAY","label":"CentraSite (INM)"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Windows Server 2012"}],"Version":"10.3"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
20 March 2025

UID

ibm17209317