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
Hey @mlaripour. Can we have a little more information about this issue? More precisely, why is req.auth.artifacts the right thing to store in http.auth.
Looking into the registerAuth function, it appears that state is actually returned by fn: AuthenticationHandler. If the AuthenticationHandler that you are using does not return an object with the state property, http.auth.get(request) will return undefined. Replacing state in this.authState.set will only fix your specific use case. Other users who return the state object in fn will have a broken experience.
I'm not too familiar with this section of code, but from a quick glance at it, it looks like we will need a bit more information before making a change here since this a core feature. Let me know if you have tried using an AuthenticationHandler that returns the state object as expected.
Is your feature request related to a problem? Please describe.
get current user name with <http.auth.get(request)> function dose not work
Describe the solution you'd like
change <this.authState.set(req, state)> in src.core.http.http_server.ts .
The text was updated successfully, but these errors were encountered: