OAuth2.0 in webapi

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