Skip to content

Commit

Permalink
Fix noauth+collaborative mode
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Jan 4, 2022
1 parent 4d0a8a7 commit 004dd43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions plugins/auth/fps_auth/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,7 @@ async def current_user(
if auth_config.collaborative:
if not active_user and auth_config.mode == "noauth":
active_user = await create_guest(user_db, auth_config)
await noauth_authentication.login(
get_noauth_strategy(), active_user, response
)
await cookie_authentication.login(get_jwt_strategy(), active_user, response)

elif not active_user and auth_config.mode == "token":
global_user = await user_db.get_by_email(auth_config.global_email)
Expand Down
1 change: 1 addition & 0 deletions plugins/auth/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ packages = find:
install_requires =
fps >=0.0.8
aiosqlite
databases
fastapi-users[sqlalchemy,oauth] >=9.1.1,<10

[options.entry_points]
Expand Down

0 comments on commit 004dd43

Please sign in to comment.