yada icon indicating copy to clipboard operation
yada copied to clipboard

Authentication verify function cannot return a deferred

Open stijnopheide opened this issue 7 years ago • 2 comments

When the authentication :verify function returns a deferred, the credentials will be empty. Use cases for this are e.g. JSON token verification that (possibly) require a remote call.

Is this feasible? Looking at the implementation it will require the use of manifold loop/recur instead of reduce. I'm happy to give it a try.

stijnopheide avatar Dec 21 '18 16:12 stijnopheide

I'm working on this currently. Yes, you're right, I've had to make use of manifold's loop and recur (and zip too!). Certainly authentication needs to be asynchronous, as it's one of those times where you're almost certainly going to need to check a central database.

malcolmsparks avatar Dec 27 '18 15:12 malcolmsparks

👌Thanks!

stijnopheide avatar Dec 28 '18 09:12 stijnopheide