From d21cd1d7ed83d7364721c7a6f46e1713b81b6d88 Mon Sep 17 00:00:00 2001 From: Matt Mauer <59808764+mrmauer@users.noreply.github.com> Date: Mon, 17 Jun 2024 15:52:24 -0400 Subject: [PATCH 1/2] bump py dependency and version --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 49c033c..84601ed 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ setup( name="propelauth-fastapi", - version="2.1.15", + version="2.1.16", description="A FastAPI library for managing authentication, backed by PropelAuth", long_description=README, long_description_content_type="text/markdown", @@ -20,7 +20,7 @@ author="PropelAuth", author_email="support@propelauth.com", license="MIT", - install_requires=["propelauth-py==3.1.15", "requests"], + install_requires=["propelauth-py==3.1.16", "requests"], setup_requires=pytest_runner, tests_require=["pytest==4.4.1"], test_suite="tests", From 83a34d29a94efacacafc6bd981fd7d7f7e63ed8d Mon Sep 17 00:00:00 2001 From: Matthew Mauer Date: Mon, 17 Jun 2024 16:05:50 -0400 Subject: [PATCH 2/2] add fetch_pending_invites and logout_all_user_sessions to auth apis --- propelauth_fastapi/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/propelauth_fastapi/__init__.py b/propelauth_fastapi/__init__.py index 9394c38..ab54429 100644 --- a/propelauth_fastapi/__init__.py +++ b/propelauth_fastapi/__init__.py @@ -176,6 +176,8 @@ def _handle_forbidden_exception(e: ForbiddenException, debug_mode: bool): "fetch_custom_role_mappings", "subscribe_org_to_role_mapping", "resend_email_confirmation", + "fetch_pending_invites", + "logout_all_user_sessions", ], ) @@ -252,4 +254,6 @@ def init_auth( fetch_custom_role_mappings=auth.fetch_custom_role_mappings, subscribe_org_to_role_mapping=auth.subscribe_org_to_role_mapping, resend_email_confirmation=auth.resend_email_confirmation, + fetch_pending_invites=auth.fetch_pending_invites, + logout_all_user_sessions=auth.logout_all_user_sessions, )