Aim is to implement Web APIs authenticated by an OAuth 2.0 client in appian.
1.I have created a sample WebAPI.
2. I have created a OAuth credentials from adminconsole. AdminConsole->Web API Authentication->OAuthclients2.0
If i try to access the webapi from browser it is accessible without authorisation. How to integrate this OAuth with my API. is there any attribute needs to be added in appian webapi.?
Kindly help.
Discussion posts and replies are publicly visible
Try using incognito mode - when you are logged in with a browser with your admin credentials, the API will open using your session. So it is authorizing, just not the way you want it. You will have to test it out from an external tool like Postman or soap ui.
I would suggest you to use postman which is easy to test