Hi
I am going to provide a virtual service which just forwards the client request to a native REST service . The native REST service asks for OAuth2 authentication.
I get ever the Mediator error bellow regarding invalid authentication but the token is for sure not expired :
error_description=[ISS.0010.8044] Integration Server rejected the request to access this resource. The access token is either invalid or expired.
Is there a sloluiton or a tutorial for creation of such virtual service with abvoe requireement
Hi Rakesh
1)I am sending from client side (for example SOAPUI) the request which contains the access_tocken to virtual service.
The virtual service has only to forward my request with the tocken to the server with the native service. The native service is running on a apache web server.
My virtual service does not contain any configuration for OAuth authentication
Do not include the “Require HTTP Basic Authentication” action in a virtual service’s run-time policy if you selected the OAuth2 option in the virtual service’s Routing Protocol step.
In the Straight through Routing , you need to set HTTP Authentication to use OAuth2 and leave the default option Use credentials from incoming request.
You can refer to the documentation 9-12_Run_Time_Governance_with_CentraSite.pdf – chapter 5 Virtualized Services in CentraSite → section The “Straight Through” Routing Protocol Step (REST/XML).
Unfortunatelly does not work.Your suggestion seems refer to old CS UI where everything was in one tab (see image “1” attached now)
The only configuration I can find and match your suggestion is the one you can see in attached (see image “2” attached now)
Regarding documetaion , can you atttached it ?
I checked the documentation you refer too . This is confusing and wrong ! There is no option in CS new UI (BusinessUI) to selecte
"Use credentials from incoming request !
(attached one screenshot)
I too face the same issue. I did not configure any oauth settings in Centrasite 9.8, it’s just a proxy setup on Centrasite where we are passing the request AS-IS which is coming from the source to the target server. And we are getting the below error when tested with SOAP UI.
[ISS.0010.8044] Integration Server rejected the request to access this resource. The access token is either invalid or expired.
Has anyone faced this issue? Please advice if you have any solution.
You need to add the extended setting watt.server.auth.skipForMediator=true on your mediator IS to get ride of that error. Restart your server for the changes to be affected.
I got this issue resolved for adding this setting but my test is not completely done. I had another issue after that, the Authorization: “Bearer” which I am setting in my headers in soapui was not being passed in the request header hence I get a response back from server saying error : Not Authenticated .
thanks for responding. We’ve set the watt.server.auth.skipForMediator to true which, if I understand correctly, stops Mediator from trying to authenticate the Access Token in the request.
We are now getting the same error as you, the 401 Unauthorized:
Mon Jun 04 11:21:06 BST 2018: DEBUG:Receiving response: HTTP/1.1 401 Unauthorized
Mon Jun 04 11:21:06 BST 2018: DEBUG:Connection can be kept alive indefinitely
Mon Jun 04 11:21:06 BST 2018: DEBUG:Target requested authentication
Mon Jun 04 11:21:06 BST 2018: WARN:Authentication error: Unable to respond to any of these challenges: {}