Go REST
C

How to access the protected resources in WSO2 API-Manager after imported into yaml file of GoRest API and deployed n published in API-Manager ?

Chetan P over 3 years ago 3855 views 1 replies

I'm just trying this public API's by creating yaml and tested in swagger editor, there I got response from protected resources(POST/PUT/DELETE) by passsing the Authentication bearer token ,
But I want to test the same scenarios after imported yaml file into wso2 API-Manager 4.1.0 , deployed and published in publisher portal https://localhost:9444/publisher and testing the scenarios(POST/PUT/DELETE) in try-out of developer portal of Api-m https://localhost:9444/devportal

In API-Manager devportal we need to create proxy client application then subscibed it and generate new Oauth JWT token to access the proxy resources.
But I'm getting response as Authentication failed for protected resources (POST/PUT/DELETE) .

Please help me out to resolve . Thank you.

1 reply
Z
zeevy over 3 years ago

try passing the access token in query parameters ex:

https://gorest.co.in/public/v2/users?access-token=xxx

Your reply

Markdown supported