propelauth-fastapi 4.2.7__tar.gz → 4.2.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: propelauth-fastapi
3
- Version: 4.2.7
3
+ Version: 4.2.8
4
4
  Summary: A FastAPI library for managing authentication, backed by PropelAuth
5
5
  Home-page: https://github.com/propelauth/propelauth-fastapi
6
6
  Author: PropelAuth
@@ -4,6 +4,7 @@ from fastapi import Depends, HTTPException, Header
4
4
  from fastapi.security import HTTPBearer, HTTPAuthorizationCredentials
5
5
  from propelauth_py import (
6
6
  TokenVerificationMetadata,
7
+ configure_logging,
7
8
  init_base_auth,
8
9
  init_base_async_auth,
9
10
  SamlIdpMetadata,
@@ -833,8 +834,11 @@ def init_auth(
833
834
  auth_url: str,
834
835
  api_key: str,
835
836
  token_verification_metadata: Optional[TokenVerificationMetadata] = None,
836
- debug_mode=False,
837
+ debug_mode: bool = False,
838
+ log_exceptions: bool = False,
837
839
  ) -> FastAPIAuth:
840
+ configure_logging(log_exceptions)
841
+
838
842
  """Fetches metadata required to validate access tokens and returns auth decorators and utilities"""
839
843
  return FastAPIAuth(auth_url=auth_url, integration_api_key=api_key, token_verification_metadata=token_verification_metadata, debug_mode=debug_mode)
840
844
 
@@ -844,7 +848,10 @@ def init_auth_async(
844
848
  token_verification_metadata: Optional[TokenVerificationMetadata] = None,
845
849
  debug_mode=False,
846
850
  httpx_client: Optional[httpx.AsyncClient] = None,
851
+ log_exceptions: bool = False,
847
852
  ) -> FastAPIAuthAsync:
853
+ configure_logging(log_exceptions)
854
+
848
855
  """Fetches metadata required to validate access tokens and returns auth decorators and utilities"""
849
856
  return FastAPIAuthAsync(auth_url=auth_url, integration_api_key=api_key, token_verification_metadata=token_verification_metadata, debug_mode=debug_mode, httpx_client=httpx_client)
850
857
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: propelauth-fastapi
3
- Version: 4.2.7
3
+ Version: 4.2.8
4
4
  Summary: A FastAPI library for managing authentication, backed by PropelAuth
5
5
  Home-page: https://github.com/propelauth/propelauth-fastapi
6
6
  Author: PropelAuth
@@ -1,3 +1,3 @@
1
- propelauth-py==4.2.7
1
+ propelauth-py==4.2.8
2
2
  requests
3
3
  httpx>=0.28.1
@@ -12,7 +12,7 @@ pytest_runner = ["pytest-runner"] if needs_pytest else []
12
12
 
13
13
  setup(
14
14
  name="propelauth-fastapi",
15
- version="4.2.7",
15
+ version="4.2.8",
16
16
  description="A FastAPI library for managing authentication, backed by PropelAuth",
17
17
  long_description=README,
18
18
  long_description_content_type="text/markdown",
@@ -21,7 +21,7 @@ setup(
21
21
  author="PropelAuth",
22
22
  author_email="support@propelauth.com",
23
23
  license="MIT",
24
- install_requires=["propelauth-py==4.2.7", "requests", "httpx>=0.28.1"],
24
+ install_requires=["propelauth-py==4.2.8", "requests", "httpx>=0.28.1"],
25
25
  setup_requires=pytest_runner,
26
26
  tests_require=["pytest==4.4.1"],
27
27
  test_suite="tests",