anyoauth-sdk 0.1.0__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.
- anyoauth_sdk-0.1.0/LICENSE +21 -0
- anyoauth_sdk-0.1.0/PKG-INFO +8 -0
- anyoauth_sdk-0.1.0/README.md +50 -0
- anyoauth_sdk-0.1.0/anyoauth/__init__.py +158 -0
- anyoauth_sdk-0.1.0/anyoauth_sdk.egg-info/PKG-INFO +8 -0
- anyoauth_sdk-0.1.0/anyoauth_sdk.egg-info/SOURCES.txt +8 -0
- anyoauth_sdk-0.1.0/anyoauth_sdk.egg-info/dependency_links.txt +1 -0
- anyoauth_sdk-0.1.0/anyoauth_sdk.egg-info/top_level.txt +1 -0
- anyoauth_sdk-0.1.0/pyproject.toml +13 -0
- anyoauth_sdk-0.1.0/setup.cfg +4 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) AnyOAuth contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# anyoauth-sdk
|
|
2
|
+
|
|
3
|
+
Generated AnyOAuth python confidential-backend SDK, version 0.1.0. MIT licensed. Model descriptors are generated from OpenAPI and embedded in the runtime (also published in schema.json). Objects use JSON field names; optional additive response fields are preserved.
|
|
4
|
+
|
|
5
|
+
## Install / build
|
|
6
|
+
|
|
7
|
+
Install with `pip install .` from this directory.
|
|
8
|
+
|
|
9
|
+
From this SDK repository root:
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
python3 -m compileall -q sdks/python
|
|
13
|
+
python3 tests/selftest.py
|
|
14
|
+
python3 tests/conformance.py < input.json
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
The runner reads one JSON object and prints one JSON result. Example input: `{"action":"pkceChallenge","params":{"codeVerifier":"dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk"}}`. Tests use a local HTTP server and dummy credentials only.
|
|
18
|
+
|
|
19
|
+
## Public API
|
|
20
|
+
|
|
21
|
+
Construct `anyoauth.Client(client_id, client_secret, base_url)`. The origin defaults to https://api.anyoauth.com. Each operation accepts a parameter dictionary.
|
|
22
|
+
|
|
23
|
+
- `exchange_code`
|
|
24
|
+
- `profile`
|
|
25
|
+
- `revoke`
|
|
26
|
+
- `providers`
|
|
27
|
+
- `pkce_challenge`
|
|
28
|
+
- `authorization_url`
|
|
29
|
+
- `validate_callback`
|
|
30
|
+
- `create_transaction`
|
|
31
|
+
|
|
32
|
+
Canonical parameters: exchangeCode {code, codeVerifier, redirectUri}; profile/revoke {accessToken}; pkceChallenge {codeVerifier}; authorizationUrl {provider, redirectUri, state, codeChallenge}; validateCallback {callbackUrl, redirectUri, state, expiresAt}; createTransaction {}. Revocation returns null/nil. Errors expose status, code and safe message. Default timeout is 10 seconds with no redirects or retries.
|
|
33
|
+
|
|
34
|
+
Persist the transaction in the initiating browser's server session, binding it to the exact registered callback. Construct the authorization URL locally, then navigate the browser. Validate the callback and consume the saved transaction atomically (including provider denial). Exchange once with the original verifier, retrieve profile, identify by subject rather than email, and create your application's session. Nullable profile fields are legitimate. Keep secrets on the backend; never put tokens or the verifier in URLs. Helpers do not manage session storage.
|
|
35
|
+
|
|
36
|
+
Generated reproducibly by `node sdks/generate.mjs --target=python`; edit sdks/templates/server-dynamic.mjs rather than generated sources.
|
|
37
|
+
|
|
38
|
+
## Standalone conformance
|
|
39
|
+
|
|
40
|
+
Run `node tests/check.mjs` from this package after installing/building dependencies. The shared suite exercises all eight public actions through the native runtime, schema failures, wire formats, redirects, no retries, and deadlines. Node is a test harness dependency only.
|
|
41
|
+
|
|
42
|
+
## Source and releases
|
|
43
|
+
|
|
44
|
+
Repository: https://github.com/AnyOAuth/anyoauth-python
|
|
45
|
+
|
|
46
|
+
GitHub prerelease: https://github.com/AnyOAuth/anyoauth-python/releases/tag/v0.1.0
|
|
47
|
+
|
|
48
|
+
Clone this repository, then run `node verify.mjs` with the native toolchain installed to build and execute the package's conformance suite. Source is generated in the AnyOAuth monorepo; propose changes there so every language stays aligned. GitHub hosts source archives and checksums. Package registry publication is separate.
|
|
49
|
+
|
|
50
|
+
This initial source release has full advertised-method conformance coverage. Runtime line/branch coverage for the whole language matrix remains a separate release gate; see https://anyoauth.com/docs/libraries/.
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
"""Generated AnyOAuth SDK. Runtime policy: sdks/templates/server-dynamic.mjs."""
|
|
2
|
+
import base64
|
|
3
|
+
import hashlib
|
|
4
|
+
import hmac
|
|
5
|
+
import json
|
|
6
|
+
import re
|
|
7
|
+
import secrets
|
|
8
|
+
import time
|
|
9
|
+
import urllib.error
|
|
10
|
+
import urllib.parse
|
|
11
|
+
import urllib.request
|
|
12
|
+
|
|
13
|
+
DESCRIPTORS = json.loads("{\"schemas\":{\"Provider\":{\"type\":\"string\",\"enum\":[\"google\",\"github\"]},\"RedirectUri\":{\"type\":\"string\",\"format\":\"uri\",\"maxLength\":2048,\"x-validation\":\"redirect\",\"description\":\"Exact registered HTTPS URL or HTTP loopback; no credentials, query or fragment.\"},\"TokenRequest\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"grant_type\",\"client_id\",\"client_secret\",\"code\",\"redirect_uri\",\"code_verifier\"],\"properties\":{\"grant_type\":{\"type\":\"string\",\"const\":\"authorization_code\"},\"client_id\":{\"type\":\"string\",\"maxLength\":100},\"client_secret\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":200},\"code\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":200},\"redirect_uri\":{\"$ref\":\"#/components/schemas/RedirectUri\"},\"code_verifier\":{\"type\":\"string\",\"pattern\":\"^[A-Za-z0-9._~-]{43,128}$\"}}},\"TokenResponse\":{\"type\":\"object\",\"required\":[\"access_token\",\"token_type\",\"expires_in\",\"scope\"],\"properties\":{\"access_token\":{\"type\":\"string\",\"pattern\":\"^aop_[A-Za-z0-9_-]{43}$\"},\"token_type\":{\"type\":\"string\",\"const\":\"Bearer\"},\"expires_in\":{\"type\":\"integer\",\"const\":900},\"scope\":{\"type\":\"string\",\"const\":\"profile\"}}},\"Profile\":{\"type\":\"object\",\"required\":[\"subject\",\"provider\",\"providerSubject\",\"name\",\"username\",\"email\",\"emailVerified\",\"avatarUrl\"],\"properties\":{\"subject\":{\"type\":\"string\"},\"provider\":{\"$ref\":\"#/components/schemas/Provider\"},\"providerSubject\":{\"type\":\"string\"},\"name\":{\"type\":[\"string\",\"null\"]},\"username\":{\"type\":[\"string\",\"null\"]},\"email\":{\"type\":[\"string\",\"null\"]},\"emailVerified\":{\"type\":\"boolean\"},\"avatarUrl\":{\"type\":[\"string\",\"null\"]}}},\"ProviderStatus\":{\"type\":\"object\",\"required\":[\"id\",\"configured\",\"enabled\",\"available\"],\"properties\":{\"id\":{\"$ref\":\"#/components/schemas/Provider\"},\"configured\":{\"type\":\"boolean\"},\"enabled\":{\"type\":\"boolean\"},\"available\":{\"type\":\"boolean\"}}},\"ProviderStatuses\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/ProviderStatus\"}},\"ApiError\":{\"type\":\"object\",\"required\":[\"error\"],\"properties\":{\"error\":{\"type\":\"string\"},\"message\":{\"type\":\"string\"}}},\"Transaction\":{\"type\":\"object\",\"required\":[\"state\",\"codeVerifier\",\"codeChallenge\",\"createdAt\",\"expiresAt\"],\"properties\":{\"state\":{\"type\":\"string\",\"pattern\":\"^[A-Za-z0-9_-]{43}$\"},\"codeVerifier\":{\"type\":\"string\",\"pattern\":\"^[A-Za-z0-9._~-]{43,128}$\"},\"codeChallenge\":{\"type\":\"string\",\"pattern\":\"^[A-Za-z0-9_-]{43}$\"},\"createdAt\":{\"type\":\"integer\"},\"expiresAt\":{\"type\":\"integer\"}}}},\"operations\":{\"exchangeCode\":{\"id\":\"exchangeCode\",\"path\":\"/v1/token\",\"method\":\"POST\",\"auth\":\"client\",\"requestSchema\":\"TokenRequest\",\"responseSchema\":\"TokenResponse\",\"successStatus\":200,\"inputs\":{\"grant_type\":{\"constant\":\"authorization_code\"},\"client_id\":{\"param\":\"clientId\"},\"client_secret\":{\"param\":\"clientSecret\"},\"code\":{\"param\":\"code\"},\"redirect_uri\":{\"param\":\"redirectUri\"},\"code_verifier\":{\"param\":\"codeVerifier\"}}},\"profile\":{\"id\":\"profile\",\"path\":\"/v1/profile\",\"method\":\"GET\",\"auth\":\"bearer\",\"requestSchema\":null,\"responseSchema\":\"Profile\",\"successStatus\":200,\"inputs\":{}},\"revoke\":{\"id\":\"revoke\",\"path\":\"/v1/revoke\",\"method\":\"POST\",\"auth\":\"bearer\",\"requestSchema\":null,\"responseSchema\":null,\"successStatus\":204,\"inputs\":{}},\"providers\":{\"id\":\"providers\",\"path\":\"/api/providers\",\"method\":\"GET\",\"auth\":\"none\",\"requestSchema\":null,\"responseSchema\":\"ProviderStatuses\",\"successStatus\":200,\"inputs\":{}}},\"authorization\":{\"path\":\"/authorize\",\"parameters\":[{\"name\":\"client_id\",\"in\":\"query\",\"required\":true,\"schema\":{\"type\":\"string\",\"minLength\":1}},{\"name\":\"provider\",\"in\":\"query\",\"required\":true,\"schema\":{\"$ref\":\"#/components/schemas/Provider\"}},{\"name\":\"redirect_uri\",\"in\":\"query\",\"required\":true,\"schema\":{\"$ref\":\"#/components/schemas/RedirectUri\"}},{\"name\":\"state\",\"in\":\"query\",\"required\":true,\"schema\":{\"type\":\"string\",\"minLength\":16,\"maxLength\":512}},{\"name\":\"code_challenge\",\"in\":\"query\",\"required\":true,\"schema\":{\"type\":\"string\",\"pattern\":\"^[A-Za-z0-9_-]{43}$\"}},{\"name\":\"code_challenge_method\",\"in\":\"query\",\"required\":true,\"schema\":{\"type\":\"string\",\"const\":\"S256\"}},{\"name\":\"response_type\",\"in\":\"query\",\"required\":true,\"schema\":{\"type\":\"string\",\"const\":\"code\"}}]},\"transaction\":{\"lifetimeSeconds\":600,\"entropyBytes\":32,\"description\":\"Create random state and a PKCE verifier/challenge. Persist this transaction in the initiating browser or app session.\",\"input\":{\"type\":\"object\",\"properties\":{},\"additionalProperties\":false}},\"defaultOrigin\":\"https://api.anyoauth.com\"}")
|
|
14
|
+
SCHEMAS = DESCRIPTORS['schemas']
|
|
15
|
+
|
|
16
|
+
class Error(Exception):
|
|
17
|
+
def __init__(self, status=0, code='invalid_argument', message='Invalid input'):
|
|
18
|
+
super().__init__(message)
|
|
19
|
+
self.status, self.code, self.message = status, code, message
|
|
20
|
+
|
|
21
|
+
def _url(value, origin=False):
|
|
22
|
+
try:
|
|
23
|
+
if not isinstance(value, str) or re.search(r'[\s\\]', value):
|
|
24
|
+
raise ValueError()
|
|
25
|
+
u = urllib.parse.urlsplit(value)
|
|
26
|
+
_ = u.port
|
|
27
|
+
if not u.hostname or u.username is not None or u.password is not None or '?' in value or '#' in value:
|
|
28
|
+
raise ValueError()
|
|
29
|
+
if u.scheme != 'https' and not (u.scheme == 'http' and u.hostname in ('localhost', '127.0.0.1', '::1')):
|
|
30
|
+
raise ValueError()
|
|
31
|
+
if origin and u.path not in ('', '/'):
|
|
32
|
+
raise ValueError()
|
|
33
|
+
return value.rstrip('/') if origin else value
|
|
34
|
+
except (ValueError, TypeError):
|
|
35
|
+
raise Error()
|
|
36
|
+
|
|
37
|
+
def validate(value, schema):
|
|
38
|
+
if '$ref' in schema:
|
|
39
|
+
return validate(value, SCHEMAS[schema['$ref'].split('/')[-1]])
|
|
40
|
+
types = schema.get('type', [])
|
|
41
|
+
if isinstance(types, str): types = [types]
|
|
42
|
+
matches = {'null': value is None, 'string': isinstance(value, str), 'boolean': type(value) is bool,
|
|
43
|
+
'integer': type(value) is int or (type(value) is float and value.is_integer()), 'object': isinstance(value, dict), 'array': isinstance(value, list)}
|
|
44
|
+
if types and not any(matches[t] for t in types): raise Error()
|
|
45
|
+
if 'const' in schema and (type(value) is bool or value != schema['const']): raise Error()
|
|
46
|
+
if 'enum' in schema and value not in schema['enum']: raise Error()
|
|
47
|
+
if isinstance(value, str):
|
|
48
|
+
if len(value) < schema.get('minLength', 0) or len(value) > schema.get('maxLength', float('inf')): raise Error()
|
|
49
|
+
if 'pattern' in schema:
|
|
50
|
+
pattern = schema['pattern']
|
|
51
|
+
if pattern.endswith('$'): pattern = pattern[:-1] + r'\Z'
|
|
52
|
+
if not re.search(pattern, value): raise Error()
|
|
53
|
+
if schema.get('x-validation') == 'redirect': _url(value)
|
|
54
|
+
if isinstance(value, dict):
|
|
55
|
+
if any(k not in value for k in schema.get('required', [])): raise Error()
|
|
56
|
+
props = schema.get('properties', {})
|
|
57
|
+
if schema.get('additionalProperties') is False and any(k not in props for k in value): raise Error()
|
|
58
|
+
for k, s in props.items():
|
|
59
|
+
if k in value: validate(value[k], s)
|
|
60
|
+
if isinstance(value, list) and 'items' in schema:
|
|
61
|
+
for item in value: validate(item, schema['items'])
|
|
62
|
+
return value
|
|
63
|
+
|
|
64
|
+
class _NoRedirect(urllib.request.HTTPRedirectHandler):
|
|
65
|
+
def redirect_request(self, req, fp, code, msg, headers, newurl): return None
|
|
66
|
+
|
|
67
|
+
class Client:
|
|
68
|
+
def __init__(self, client_id='', client_secret='', base_url=DESCRIPTORS['defaultOrigin']):
|
|
69
|
+
self.client_id, self.client_secret = client_id, client_secret
|
|
70
|
+
self.base_url = _url(base_url, True)
|
|
71
|
+
|
|
72
|
+
def _request(self, action, params):
|
|
73
|
+
op = DESCRIPTORS['operations'][action]
|
|
74
|
+
headers = {'Accept': 'application/json', 'User-Agent': 'AnyOAuth-python/0.1.0'}
|
|
75
|
+
body = None
|
|
76
|
+
if op['auth'] == 'bearer':
|
|
77
|
+
token = params.get('accessToken')
|
|
78
|
+
if not isinstance(token, str) or not re.fullmatch(r'[A-Za-z0-9._~+/-]+=*', token): raise Error()
|
|
79
|
+
headers['Authorization'] = 'Bearer ' + token
|
|
80
|
+
if op['requestSchema']:
|
|
81
|
+
values = {**params, 'clientId': self.client_id, 'clientSecret': self.client_secret}
|
|
82
|
+
data = {k: v['constant'] if 'constant' in v else values.get(v['param']) for k,v in op['inputs'].items()}
|
|
83
|
+
validate(data, SCHEMAS[op['requestSchema']])
|
|
84
|
+
body = json.dumps(data).encode()
|
|
85
|
+
headers['Content-Type'] = 'application/json'
|
|
86
|
+
req = urllib.request.Request(self.base_url + op['path'], data=body, headers=headers, method=op['method'])
|
|
87
|
+
try:
|
|
88
|
+
opener = urllib.request.build_opener(urllib.request.ProxyHandler({}), _NoRedirect())
|
|
89
|
+
with opener.open(req, timeout=10) as response:
|
|
90
|
+
status, raw = response.status, response.read()
|
|
91
|
+
except urllib.error.HTTPError as e:
|
|
92
|
+
status, raw = e.code, e.read()
|
|
93
|
+
except Exception:
|
|
94
|
+
raise Error(0, 'transport_error', 'HTTP request failed')
|
|
95
|
+
if status != op['successStatus']:
|
|
96
|
+
if 200 <= status < 300: raise Error(status, 'protocol_error', 'Unexpected response status')
|
|
97
|
+
code, message = 'protocol_error', 'Invalid error response'
|
|
98
|
+
try:
|
|
99
|
+
data = json.loads(raw, parse_constant=lambda _: (_ for _ in ()).throw(ValueError()))
|
|
100
|
+
validate(data, SCHEMAS['ApiError'])
|
|
101
|
+
code, message = data['error'], data.get('message', 'HTTP request failed')
|
|
102
|
+
except Exception: pass
|
|
103
|
+
raise Error(status, code, message)
|
|
104
|
+
if not op['responseSchema']: return None
|
|
105
|
+
try:
|
|
106
|
+
return validate(json.loads(raw, parse_constant=lambda _: (_ for _ in ()).throw(ValueError())), SCHEMAS[op['responseSchema']])
|
|
107
|
+
except Exception:
|
|
108
|
+
raise Error(status, 'protocol_error', 'Invalid API response')
|
|
109
|
+
|
|
110
|
+
def exchange_code(self, params=None):
|
|
111
|
+
return self._request("exchangeCode", params or {})
|
|
112
|
+
|
|
113
|
+
def profile(self, params=None):
|
|
114
|
+
return self._request("profile", params or {})
|
|
115
|
+
|
|
116
|
+
def revoke(self, params=None):
|
|
117
|
+
return self._request("revoke", params or {})
|
|
118
|
+
|
|
119
|
+
def providers(self, params=None):
|
|
120
|
+
return self._request("providers", params or {})
|
|
121
|
+
|
|
122
|
+
def pkce_challenge(self, params):
|
|
123
|
+
verifier = params.get('codeVerifier')
|
|
124
|
+
if not isinstance(verifier, str) or not re.fullmatch(r'[A-Za-z0-9._~-]{43,128}', verifier): raise Error()
|
|
125
|
+
return base64.urlsafe_b64encode(hashlib.sha256(verifier.encode('ascii')).digest()).decode().rstrip('=')
|
|
126
|
+
|
|
127
|
+
def create_transaction(self, params=None):
|
|
128
|
+
settings = DESCRIPTORS['transaction']
|
|
129
|
+
state, verifier = (secrets.token_urlsafe(settings['entropyBytes']) for _ in range(2))
|
|
130
|
+
now = int(time.time())
|
|
131
|
+
return validate({'state':state, 'codeVerifier':verifier, 'codeChallenge':self.pkce_challenge({'codeVerifier':verifier}), 'createdAt':now, 'expiresAt':now+settings['lifetimeSeconds']}, SCHEMAS['Transaction'])
|
|
132
|
+
|
|
133
|
+
def authorization_url(self, params):
|
|
134
|
+
values = {**params, 'clientId':self.client_id}
|
|
135
|
+
query = {}
|
|
136
|
+
for p in DESCRIPTORS['authorization']['parameters']:
|
|
137
|
+
s = p['schema']
|
|
138
|
+
key = re.sub(r'_([a-z])', lambda m: m[1].upper(), p['name'])
|
|
139
|
+
query[p['name']] = validate(s['const'] if 'const' in s else values.get(key), s)
|
|
140
|
+
return self.base_url + DESCRIPTORS['authorization']['path'] + '?' + urllib.parse.urlencode(query)
|
|
141
|
+
|
|
142
|
+
def validate_callback(self, params):
|
|
143
|
+
redirect = _url(params.get('redirectUri'))
|
|
144
|
+
callback = params.get('callbackUrl')
|
|
145
|
+
state, expiry = params.get('state'), params.get('expiresAt')
|
|
146
|
+
if not isinstance(state, str) or not state or type(expiry) is not int or expiry <= int(time.time()): raise Error()
|
|
147
|
+
if not isinstance(callback, str) or '#' in callback or re.search(r'[\s\\]', callback) or callback.split('?',1)[0] != redirect: raise Error()
|
|
148
|
+
query = callback.partition('?')[2]
|
|
149
|
+
if re.search(r'%(?![0-9A-Fa-f]{2})', query): raise Error()
|
|
150
|
+
try: pairs = urllib.parse.parse_qs(query, keep_blank_values=True, errors='strict')
|
|
151
|
+
except Exception: raise Error()
|
|
152
|
+
if any(len(pairs.get(k, [])) > 1 for k in ('state','code','error')): raise Error()
|
|
153
|
+
actual = pairs.get('state', [''])[0]
|
|
154
|
+
if not hmac.compare_digest(actual.encode(), state.encode()): raise Error()
|
|
155
|
+
if ('code' in pairs) == ('error' in pairs): raise Error()
|
|
156
|
+
key = 'code' if 'code' in pairs else 'error'
|
|
157
|
+
if not pairs[key][0]: raise Error()
|
|
158
|
+
return {key:pairs[key][0], 'state':actual}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
anyoauth
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "anyoauth-sdk"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "AnyOAuth confidential backend SDK"
|
|
9
|
+
requires-python = ">=3.10"
|
|
10
|
+
license = {text = "MIT"}
|
|
11
|
+
|
|
12
|
+
[tool.setuptools]
|
|
13
|
+
packages = ["anyoauth"]
|