Redirect Localhost Instead Of Myserver.org:3000/login/callback
Solution 1:
I figured it out for my problem...
I was using exactly what the example provided, which included Feide OpenIdP AND the following code
issuer:'passport-saml'The issuer is an identification of what application is requesting authentication with (in this case) Feide OpenIdP. "passport-saml" is a pre-registered entity on Feide's OpenIdP network, which had an redirect link pre-defined in it to go back to localhost:3000
What you need to do is register your own entity entry on Feide OpenIdP and change the "issuer" in your code to whatever the name of the entity is that you registered. This should fix the problem.
Also note: I have my redirect url hard-coded on the Feide OpenIdP entity... I'm not sure how Feide OpenIdP would react if you did not specify the redirect URL in the entity. maybe it would redirect to whatever you have configured in the passport.use(new SamlStrategy()) call.
Solution 2:
See also Node.js passport-saml redirects to localhost:3000/login/callback all the time where I basically do the same thing suggested above, but provide the example I used.
Post a Comment for "Redirect Localhost Instead Of Myserver.org:3000/login/callback"