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
I am able to login successfully with the Passport-WindowsAuth. I don't want to pass the credential information every time to the server. Is there any way to use the Authorization header with this library? so that i can pass the token for all the subsequent requests. I haven't seen any code in the library ,Any help will be appreciated
Thanks
Manoharan
The text was updated successfully, but these errors were encountered:
@manoharank5 sorry for the long delay, I missed this notification the first time but I got one with the new comment.
You can ask for authentication in one endpoint, if passport is properly configured with session it will store the user in the session.
Otherwise you can return a token on the endpoint where you request authentication, and then use that token to authenticate to any other endpoint. The trick is that you use passport.authenticate('WindowsAuthentication')' in the endpoint where you want WindowsAuth and then you can use passport.authenticate('SomeTokenStrategy')` for everything else.
I am able to login successfully with the Passport-WindowsAuth. I don't want to pass the credential information every time to the server. Is there any way to use the Authorization header with this library? so that i can pass the token for all the subsequent requests. I haven't seen any code in the library ,Any help will be appreciated
Thanks
Manoharan
The text was updated successfully, but these errors were encountered: