Disable all /o/api endpoints but one for a User

thumbnail
Jamie Sammons, modificat fa 4 anys. New Member Apunts: 7 Data d'incorporació: 30/04/14 Publicacions recents

For security reasons, I want to close all types of external access to the liferay APIs.
But for an external application (react) I want to give it access to certain endpoint.

My questions are:
Is it possible to disable all but one API access? How (broadly speaking, I'll find out how to do it)?

For a certain user:
I need to open external application access to GET /o/headless-admin-content/v1.0/sites/xxxxx/structured-contents

But I want to close other methods (POST etc) to this endpoint and all other endpoints
It's possible?

 

IMPORTANT: I don't need the solution, I just want to know if it's possible

thumbnail
Jamie Sammons, modificat fa 4 anys. Expert Apunts: 348 Data d'incorporació: 12/02/15 Publicacions recents

Yes, it's possible in the settings (that also can be configured with a properties file). It's in the Third Party category and there you can fully disable an API or just specific methods.