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 have a backend where i'm using passport-saml for initial authentication, and passport-jwt for a custom persistence. Logging in and persisting works well enough, the main issue comes when a user wants to log out, I can't access the passport-saml strategy or its logout function. The error I'm receiving is passportSaml._strategy is not a function.
The getUserByIdOrCreateIfNotExists function looks up the id in the database and creates a token using simple-jwt regardless of whether it found one or not and returns the token and user.
Hi,
I have a backend where i'm using passport-saml for initial authentication, and passport-jwt for a custom persistence. Logging in and persisting works well enough, the main issue comes when a user wants to log out, I can't access the passport-saml strategy or its logout function. The error I'm receiving is
passportSaml._strategy is not a function.
Passport-saml strategy:
The
getUserByIdOrCreateIfNotExists
function looks up the id in the database and creates a token using simple-jwt regardless of whether it found one or not and returns the token and user.Passport-jwt strategy:
I have tested the logout routes separate of the application:
In the
server.js
I call both strategies and authenticate based on routes:I would appreciate any help on everything and anything I'm doing wrong.
The text was updated successfully, but these errors were encountered: