Replies: 6 comments
-
+1 Callback is being called but user & info are undefined, and error is also empty... I'm thinking of making a small authentication microservice with express only just for that, or switch saml module to something else like https://github.com/auth0/passport-wsfed-saml2 ... |
Beta Was this translation helpful? Give feedback.
-
@CodeJjang the problem was how we're supposed to code middle-ware in Sails. The solution was to write the code like so:
Noticed that the |
Beta Was this translation helpful? Give feedback.
-
I'm having a bit difficulty to understand what you've done... Here's my code: In the Auth controller:
in http.js I've just put passport.initialize() (I dont need sessions, and I dont know why you put the other function there as well). This is my passport.js in config:
How should I change my code? I cannot understand what you wrote, I'd appreciate a more precise answer.. and a working piece of code would be appreciated as well :D |
Beta Was this translation helpful? Give feedback.
-
@CodeJjang use arrays. Change your code to this:
|
Beta Was this translation helpful? Give feedback.
-
Ok. Thanks. It works but the function after the authentication is not called, e.g.:
first function called, second isnt. |
Beta Was this translation helpful? Give feedback.
-
Nevermind its ok :) Had cert. problem |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm building a web application from SailsJS. And on the readme page of this repository, it uses a middleware (here) that is not firing in my code. My code (using SailsJS) is:
routes.js
:passport.js
:http.js
(middleware):But when the call back occurs from the IDP, the verify function is never called.
Beta Was this translation helpful? Give feedback.
All reactions