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

thumbnail
Jamie Sammons, 4 Jaren geleden aangepast. New Member Berichten: 7 Aanmelddatum: 30-4-14 Recente berichten

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, 4 Jaren geleden aangepast. Expert Berichten: 348 Aanmelddatum: 12-2-15 Recente berichten

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.