Interceptor on REST API

Hello,

How can we add an interceptor to the REST API that calls a function prior to executing the service? We need to intercept the REST API request so we can do a custom authentication according to another service.
Also, is it possible to disable the oauth2 from the REST API?

Regards.

1 Like

Hi,
About the disabling oauth2 - yes, you can enable anonymous mode. See here: https://doc.cuba-platform.com/manual-6.5/rest_api_v2_anonymous.html
About the custom authentication - can you please describe in more details how you authentication will work?