Calling Developers!
We are reenergizing our code contribution process! Learn More

Why my Glue Backend API endpoint does not require authentication?

Options
muhammad.jadoon
muhammad.jadoon Spryker Solution Partner Posts: 7 🧑🏻‍🚀 - Cadet

In my resource, I have set the IsProtected as true for this particular method but the endpoint still works without authentication. Can someone please advise?

Here is how I have set it:

public function getDeclaredMethods(): GlueResourceMethodCollectionTransfer
{
return (new GlueResourceMethodCollectionTransfer())->setGet( (new GlueResourceMethodConfigurationTransfer())->setIsProtected(true)->setAction('getAction') );}

Tagged: