auth0-server-python 1.0.0b1__tar.gz → 1.0.0b3__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.
Files changed (14) hide show
  1. {auth0_server_python-1.0.0b1 → auth0_server_python-1.0.0b3}/PKG-INFO +6 -7
  2. {auth0_server_python-1.0.0b1 → auth0_server_python-1.0.0b3}/README.md +3 -3
  3. {auth0_server_python-1.0.0b1 → auth0_server_python-1.0.0b3}/pyproject.toml +4 -9
  4. {auth0_server_python-1.0.0b1/src → auth0_server_python-1.0.0b3/src/auth0_server_python}/auth_server/server_client.py +3 -3
  5. {auth0_server_python-1.0.0b1/src → auth0_server_python-1.0.0b3/src/auth0_server_python}/encryption/encrypt.py +1 -1
  6. {auth0_server_python-1.0.0b1/src → auth0_server_python-1.0.0b3/src/auth0_server_python}/store/abstract.py +1 -1
  7. {auth0_server_python-1.0.0b1 → auth0_server_python-1.0.0b3}/LICENSE +0 -0
  8. {auth0_server_python-1.0.0b1/src → auth0_server_python-1.0.0b3/src/auth0_server_python}/auth_server/__init__.py +0 -0
  9. {auth0_server_python-1.0.0b1/src → auth0_server_python-1.0.0b3/src/auth0_server_python}/auth_types/__init__.py +0 -0
  10. {auth0_server_python-1.0.0b1/src → auth0_server_python-1.0.0b3/src/auth0_server_python}/encryption/__init__.py +0 -0
  11. {auth0_server_python-1.0.0b1/src → auth0_server_python-1.0.0b3/src/auth0_server_python}/error/__init__.py +0 -0
  12. {auth0_server_python-1.0.0b1/src → auth0_server_python-1.0.0b3/src/auth0_server_python}/store/__init__.py +0 -0
  13. {auth0_server_python-1.0.0b1/src → auth0_server_python-1.0.0b3/src/auth0_server_python}/utils/__init__.py +0 -0
  14. {auth0_server_python-1.0.0b1/src → auth0_server_python-1.0.0b3/src/auth0_server_python}/utils/helpers.py +0 -0
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: auth0-server-python
3
- Version: 1.0.0b1
3
+ Version: 1.0.0b3
4
4
  Summary: Auth0 server-side Python SDK
5
5
  License: MIT
6
- Author: Snehil Kishore
7
- Author-email: snehil.kishore@okta.com
6
+ Author: Auth0
7
+ Author-email: support@okta.com
8
8
  Requires-Python: >=3.9
9
9
  Classifier: License :: OSI Approved :: MIT License
10
10
  Classifier: Programming Language :: Python :: 3
@@ -15,7 +15,6 @@ Classifier: Programming Language :: Python :: 3.12
15
15
  Classifier: Programming Language :: Python :: 3.13
16
16
  Requires-Dist: authlib (>=1.2,<2.0)
17
17
  Requires-Dist: cryptography (>=43.0.1)
18
- Requires-Dist: fastapi (>=0.115.11,<0.116.0)
19
18
  Requires-Dist: httpx (>=0.28.1,<0.29.0)
20
19
  Requires-Dist: jwcrypto (>=1.5.6,<2.0.0)
21
20
  Requires-Dist: pydantic (>=2.10.6,<3.0.0)
@@ -24,7 +23,7 @@ Description-Content-Type: text/markdown
24
23
 
25
24
  The Auth0 Server Python SDK is a library for implementing user authentication in Python applications.
26
25
 
27
- ![PyPI](https://img.shields.io/pypi/v/auth0-server-python) ![Downloads](https://img.shields.io/pypi/dw/auth0-server-python) [![License](https://img.shields.io/:license-MIT-blue.svg?style=flat)](https://opensource.org/licenses/MIT) [![Codecov](https://img.shields.io/codecov/c/github/auth0/auth0-server-python)](https://codecov.io/gh/auth0/auth0-server-python) [![CI](https://github.com/auth0/auth0-server-python/actions/workflows/ci.yml/badge.svg)](https://github.com/auth0/auth0-server-python/actions)
26
+ ![PyPI](https://img.shields.io/pypi/v/auth0-server-python) ![Downloads](https://img.shields.io/pypi/dw/auth0-server-python) [![License](https://img.shields.io/:license-MIT-blue.svg?style=flat)](https://opensource.org/licenses/MIT)
28
27
 
29
28
  📚 [Documentation](#documentation) - 🚀 [Getting Started](#getting-started) - 💬 [Feedback](#feedback)
30
29
 
@@ -53,7 +52,7 @@ Create an instance of the Auth0 client. This instance will be imported and used
53
52
 
54
53
 
55
54
  ```python
56
- from auth0_server_python import ServerClient
55
+ from auth0_server_python.auth_server.server_client import ServerClient
57
56
 
58
57
  auth0 = ServerClient(
59
58
  domain='<AUTH0_DOMAIN>',
@@ -133,7 +132,7 @@ We appreciate feedback and contribution to this repo! Before you get started, pl
133
132
 
134
133
  - [Auth0's general contribution guidelines](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md)
135
134
  - [Auth0's code of conduct guidelines](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md)
136
- - [This repo's contribution guide](./CONTRIBUTING.md)
135
+ - [This repo's contribution guide](./../../CONTRIBUTING.md)
137
136
 
138
137
  ### Raise an issue
139
138
 
@@ -1,6 +1,6 @@
1
1
  The Auth0 Server Python SDK is a library for implementing user authentication in Python applications.
2
2
 
3
- ![PyPI](https://img.shields.io/pypi/v/auth0-server-python) ![Downloads](https://img.shields.io/pypi/dw/auth0-server-python) [![License](https://img.shields.io/:license-MIT-blue.svg?style=flat)](https://opensource.org/licenses/MIT) [![Codecov](https://img.shields.io/codecov/c/github/auth0/auth0-server-python)](https://codecov.io/gh/auth0/auth0-server-python) [![CI](https://github.com/auth0/auth0-server-python/actions/workflows/ci.yml/badge.svg)](https://github.com/auth0/auth0-server-python/actions)
3
+ ![PyPI](https://img.shields.io/pypi/v/auth0-server-python) ![Downloads](https://img.shields.io/pypi/dw/auth0-server-python) [![License](https://img.shields.io/:license-MIT-blue.svg?style=flat)](https://opensource.org/licenses/MIT)
4
4
 
5
5
  📚 [Documentation](#documentation) - 🚀 [Getting Started](#getting-started) - 💬 [Feedback](#feedback)
6
6
 
@@ -29,7 +29,7 @@ Create an instance of the Auth0 client. This instance will be imported and used
29
29
 
30
30
 
31
31
  ```python
32
- from auth0_server_python import ServerClient
32
+ from auth0_server_python.auth_server.server_client import ServerClient
33
33
 
34
34
  auth0 = ServerClient(
35
35
  domain='<AUTH0_DOMAIN>',
@@ -109,7 +109,7 @@ We appreciate feedback and contribution to this repo! Before you get started, pl
109
109
 
110
110
  - [Auth0's general contribution guidelines](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md)
111
111
  - [Auth0's code of conduct guidelines](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md)
112
- - [This repo's contribution guide](./CONTRIBUTING.md)
112
+ - [This repo's contribution guide](./../../CONTRIBUTING.md)
113
113
 
114
114
  ### Raise an issue
115
115
 
@@ -1,18 +1,13 @@
1
1
  [tool.poetry]
2
2
  name = "auth0-server-python"
3
- version = "1.0.0.b1"
3
+ version = "1.0.0.b3"
4
4
  description = "Auth0 server-side Python SDK"
5
5
  readme = "README.md"
6
- authors = ["Snehil Kishore <snehil.kishore@okta.com>"]
6
+ authors = ["Auth0 <support@okta.com>"]
7
7
  license = "MIT"
8
8
 
9
9
  packages = [
10
- { include = "auth_server", from = "src" },
11
- { include = "auth_types", from = "src" },
12
- { include = "encryption", from = "src" },
13
- { include = "error", from = "src" },
14
- { include = "store", from = "src" },
15
- { include = "utils", from = "src" }
10
+ { include = "auth0_server_python", from = "src" }
16
11
  ]
17
12
 
18
13
  [tool.poetry.dependencies]
@@ -22,7 +17,6 @@ pyjwt = ">=2.8.0"
22
17
  authlib = "^1.2"
23
18
  httpx = "^0.28.1"
24
19
  pydantic = "^2.10.6"
25
- fastapi = "^0.115.11"
26
20
  jwcrypto = "^1.5.6"
27
21
 
28
22
  [tool.poetry.group.dev.dependencies]
@@ -30,6 +24,7 @@ pytest = "^7.2"
30
24
  pytest-cov = "^4.0"
31
25
  pytest-asyncio = "^0.20.3"
32
26
  pytest-mock = "^3.14.0"
27
+ twine = "^6.1.0"
33
28
 
34
29
  [tool.pytest.ini_options]
35
30
  addopts = "--cov=auth_server --cov-report=term-missing:skip-covered --cov-report=xml"
@@ -16,7 +16,7 @@ import httpx
16
16
 
17
17
  from pydantic import BaseModel, ValidationError
18
18
 
19
- from error import (
19
+ from auth0_server_python.error import (
20
20
  MissingTransactionError,
21
21
  ApiError,
22
22
  MissingRequiredArgumentError,
@@ -28,7 +28,7 @@ from error import (
28
28
  AccessTokenForConnectionErrorCode
29
29
 
30
30
  )
31
- from auth_types import (
31
+ from auth0_server_python.auth_types import (
32
32
  StateData,
33
33
  TransactionData,
34
34
  UserClaims,
@@ -37,7 +37,7 @@ from auth_types import (
37
37
  StartInteractiveLoginOptions,
38
38
  LogoutOptions
39
39
  )
40
- from utils import PKCE, State, URL
40
+ from auth0_server_python.utils import PKCE, State, URL
41
41
 
42
42
 
43
43
  # Generic type for store options
@@ -12,7 +12,7 @@ ENC = 'A256CBC-HS512'
12
12
  ALG = 'dir'
13
13
  DIGEST = hashes.SHA256()
14
14
  BYTE_LENGTH = 64
15
- ENCRYPTION_INFO = b'Auth0 Generated ryption'
15
+ ENCRYPTION_INFO = b'Auth0 Generated Encryption'
16
16
 
17
17
 
18
18
 
@@ -1,7 +1,7 @@
1
1
  from abc import ABC, abstractmethod
2
2
  from typing import Generic, TypeVar, Optional, Dict, Any
3
3
 
4
- from encryption import encrypt, decrypt
4
+ from auth0_server_python.encryption import encrypt, decrypt
5
5
 
6
6
  T = TypeVar('T') # Generic type for the data stored
7
7