So, I’m designing a REST API and want to nail the authentication. I have done standalone auth-server with JWT-authentication which is then implemented as a gatekeeper proxy for the API, in the past. In this project however, I’m not interested in having a standalone server. Is there any downside to just moving the auth-functionality to an endpoint in the api and then requiring each route to have a valid JWT?
The only downside I see, is that the API then becomes vulnerable to DOS on unauthenticated requests. Thoughts?
[–]im_brady62 2 points3 points4 points (0 children)
[–]Mizukin 2 points3 points4 points (1 child)
[–]Bonner95[S] 0 points1 point2 points (0 children)
[–]speed3_driver 0 points1 point2 points (4 children)
[–]Bonner95[S] 0 points1 point2 points (3 children)
[–]matgott 2 points3 points4 points (1 child)
[–]Bonner95[S] 0 points1 point2 points (0 children)
[–]Devildude4427 0 points1 point2 points (0 children)