Hi All,
Resolved it by adding the filter configuration as per post and configuring basic authentication using spring security.
However still I am not sure how was basic authentication enabled and 401 error was thrown by adding OAUTH2 spring dependency. Also How can this be disabled.
Thanks
Manohar