reactpy icon indicating copy to clipboard operation
reactpy copied to clipboard

Authentication/Session Integration

Open Archmonger opened this issue 3 years ago • 0 comments

Current Situation

It is currently fairly awkward to use IDOM for authentication for all our supported frameworks.

Reference

  • #768

Proposed Actions

Have some sort of session integration to improve authentication usability within IDOM.

For example,

from idom import component
from idom.backend.sanic import configure, create_session

use_session, session_store = create_session(
    save=save_to_my_db,
    load=load_from_my_db,
)

@component
def MyComponent():
    session = use_session()
    ...

app = Sanic()
configure(app, MyComponent, Options(session_store=session_store)
app.run()

Also, It might be reasonable for IDOM to create it's own sqlite DB for things such as session keys on frameworks without native ORM capabilities.

Archmonger avatar Jun 22 '22 02:06 Archmonger