Hi Everyone,
I am trying to learn/explore OAuth in webMethods.
I have configured OAuth client, scope in webMethods and associated socope with client.
I am able to successfully generate access & refresh tokens using built-in services in pub.Oauth package.
I was able to successfully test OAuth on a SOAP service (where a flow service was exposed as SOAP service in webMethods). I was able to execute SOAP Service using generated OAuth token.
However I am unable to test OAuth with a REST service (where a flow service is exposed as a REST resource in webMethods) when I use enable bearer token in PostMan to access the resource service (which is a flow service in IS actually) then I am getting following error in postman:
error_description=[ISS.0010.8046] Integration Server
rejected the request to access this resource.
The access token’s scope is insufficient to access the resource.
I have also tried
watt.server.url.alias.partialMatching=true
but this didn’t help.
May be I am not correctly adding rest service in scope that is associated with OAuth client. Can someone please guide me how can I add REST service correctly in scope?
Should I try to add folder or flow service in scope? or should I use url template option in scope instead?
Suppose the rest url that I am trying to hit via postman is following:
http://localhost:5555/restv2/SomeTestService
then how can I add this url in scope? Should I specify url in template or do I need to add folder etc (in which RAD exists or flow service exists)?
and if have to add this in scope as URL Template … then how can I create URL template for this service ?
Regards,
M.Haseeb
#oauth#flow-service#security#Integration-Server-and-ESB#webMethods