Performing both OAUTH and Basis Auth for API


I have exposed an API in outsystem with basic auth. But now, I want to implement OAuth as well

The requirement is, If a user wants to perform Basic, they can choose Basic auth otherwise they can go ahead with OAuth.

If I choose OAuth, I don't need to give Basic Authorization(username & password). But OnAuthentication method will always expect username and password.

I tried myself to achieve this one. So, I selected Oauth, then I have given only a Bearer Token. Afterward, I tried to hit that API with Debugger. But debugger itself not triggered. 

kindly help me to resolve this issue...



Have you looked at this forge component?   does it help?