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
Currently, every admin and setup endpoint checks for authentication. It would be cleaner if authentication was checked once with a middleware approach and all endpoints wouldn't have to worry about it. Similarly, demo-mode is checked throughout admin and scouting endpoints and that could be done in a single place using middleware.
The text was updated successfully, but these errors were encountered:
When you say "authentication" you mean having it check for the admin password once and that'd generate a token to be used across other endpoints, right? Could also mean using something like Google OAuth.
Good question; I didn't make this issue very clear. I think the access code-based authentication is fine, at least for now. While it isn't very secure, it guards against non-malicious mistakes. What I was trying to capture is that most of the routes in the admin and scouting endpoints check for authentication. For example:
Currently, every admin and setup endpoint checks for authentication. It would be cleaner if authentication was checked once with a middleware approach and all endpoints wouldn't have to worry about it. Similarly, demo-mode is checked throughout admin and scouting endpoints and that could be done in a single place using middleware.
The text was updated successfully, but these errors were encountered: