Asyncio support

36 views
Skip to first unread message

Martino Io

unread,
Aug 3, 2017, 4:02:41 PM8/3/17
to Yosai
Hi there, I'm planning to use yosai as the authentication framework in my web-application, which currently is written using sanic which in turn is built on asyncio (and uv-loop if that matters).
I was wondering if explicit asyncio support is included (or planned) or whether I should offload yosai aaa tasks into a separate thread (via thread pool executor).

--
Marcin

Darin Gordon

unread,
Aug 4, 2017, 9:41:49 PM8/4/17
to yo...@googlegroups.com
Hey Marcin

You'll need to do a little bit of re-engineering to make Yosai work, but it's possible. 

Yosai makes use of threadlocal storage (subject stack and Yosai stack) which I believe won't work for you. 

You mentioned authentication but what about authorization?   Imperative style authorization will be far easier to support than declarative (the decorators).

--
You received this message because you are subscribed to the Google Groups "Yosai" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yosai+unsubscribe@googlegroups.com.
To post to this group, send email to yo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/yosai/c352fd07-b913-4368-946e-77fae5168828%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages