You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This package is awesome but I cannot create endpoints which do not require login.
I want to create endpoints through Badaso admin which don't require a user to be signed in and access this endpoints from my frontend. I cannot make this work because every endpoint request checks if an User has roles.
If I try to send a request the response is "message": "Attempt to read property \"roles\" on null",
Look at line $user_roles = auth()->user()->roles; inside GetData.php
The requirements don't allow me to create a guest user with limited permissions and than login every visitor of a frontend site with a guest account automatically because he will have some permissions inside the CMS admin and it is not safe.
I do not want to expose custom endpoints via Laravel app because the user of admin panel cannot automatically generate CRUD for his website (each addition of a table will require additional open api endpoints to be added inside api.php and Controllers).
Is it possible to create endpoints which don't require login via Badaso admin? Can I bypass this issue somehow?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This package is awesome but I cannot create endpoints which do not require login.
I want to create endpoints through Badaso admin which don't require a user to be signed in and access this endpoints from my frontend. I cannot make this work because every endpoint request checks if an User has roles.
If I try to send a request the response is
"message": "Attempt to read property \"roles\" on null",
Look at line
$user_roles = auth()->user()->roles;
insideGetData.php
The requirements don't allow me to create a guest user with limited permissions and than login every visitor of a frontend site with a guest account automatically because he will have some permissions inside the CMS admin and it is not safe.
I do not want to expose custom endpoints via Laravel app because the user of admin panel cannot automatically generate CRUD for his website (each addition of a table will require additional open api endpoints to be added inside api.php and Controllers).
Is it possible to create endpoints which don't require login via Badaso admin? Can I bypass this issue somehow?
Beta Was this translation helpful? Give feedback.
All reactions