From a46259c5e3ede7f221b3d714bb59bc0e66e4c991 Mon Sep 17 00:00:00 2001 From: andrew-propelauth <89474256+andrew-propelauth@users.noreply.github.com> Date: Fri, 29 Mar 2024 14:29:53 -0700 Subject: [PATCH] Expose validate function from py library (#18) --- propelauth_fastapi/__init__.py | 2 ++ setup.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/propelauth_fastapi/__init__.py b/propelauth_fastapi/__init__.py index 9850c5d..89646b3 100644 --- a/propelauth_fastapi/__init__.py +++ b/propelauth_fastapi/__init__.py @@ -129,6 +129,7 @@ def _handle_forbidden_exception(e: ForbiddenException, debug_mode: bool): "require_org_member_with_exact_role", "require_org_member_with_permission", "require_org_member_with_all_permissions", + "validate_access_token_and_get_user", "fetch_user_metadata_by_user_id", "fetch_user_metadata_by_email", "fetch_user_metadata_by_username", @@ -201,6 +202,7 @@ def init_auth( require_org_member_with_all_permissions=_require_org_member_with_all_permissions_wrapper( auth, debug_mode ), + validate_access_token_and_get_user=auth.validate_access_token_and_get_user, fetch_user_metadata_by_user_id=auth.fetch_user_metadata_by_user_id, fetch_user_metadata_by_email=auth.fetch_user_metadata_by_email, fetch_user_metadata_by_username=auth.fetch_user_metadata_by_username, diff --git a/setup.py b/setup.py index b144271..9320d1d 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ setup( name="propelauth-fastapi", - version="2.1.11", + version="2.1.12", description="A FastAPI library for managing authentication, backed by PropelAuth", long_description=README, long_description_content_type="text/markdown",