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
Not every request needs access to the principal in this.httpContext.user
Routes that are secured by a token/JWT will undergo authentication anyway, and therefore authentication occurs twice!
Please allow lazy eval of methods on interfaces.AuthProvider.
I don't know how that would look. Maybe a lazy loading getter. Or a call to this.httpContext.loadUser() and then one can safely call this.httpContext.user.
The text was updated successfully, but these errors were encountered:
[...]
2. Routes that are secured by a token/JWT will undergo authentication anyway, and therefore authentication occurs twice!
[...]
Yes, and it is pretty annoying. Even more when the browser sends pre-flight (OPTIONS) requests every time! These requests go through AuthProvider as well
AuthProvider.getUser()
is run on every request.This is overkill:
this.httpContext.user
Please allow lazy eval of methods on
interfaces.AuthProvider
.I don't know how that would look. Maybe a lazy loading getter. Or a call to
this.httpContext.loadUser()
and then one can safely callthis.httpContext.user
.The text was updated successfully, but these errors were encountered: