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
{{ message }}
Repository navigation
Bug: How do I apply token filter on all routes in an API except on the default route #1052
Which operating systems have you tested for this bug?
Windows
Which server did you use?
apache
Database
MariaDB 10.2
Did you customize Shield?
I customized the UserModel class to include a function to generate a full name of a user from their first and last name before insert and before update. I also customized the User entity class to include two functions to set the first and last name of a user after cleaning the string input and performing formatting on it like capitalization.
What happened?
I applied TokenAuth filter on all routes but I don't know how not to apply it on the default route which serves as the home page of the API. Here is the default route code am using: $routes->get('/', 'HomeController::indexPage'); How do I write it in the except array collection of routes in the $globals filter configuration section?
Steps to Reproduce
Find a way to make TokenAuth filter to be applied to all pages except the ones indicated in the except array collection of routes in $globals filter configuration section including the default route of the API.
Expected Output
The TokenAuth filter should not be applied on the default route as indicated in the except array collection of routes in $globals filter configuration section.
Activity