u2auth 0.2.0__tar.gz → 0.2.2__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.
- {u2auth-0.2.0/u2auth.egg-info → u2auth-0.2.2}/PKG-INFO +6 -3
- {u2auth-0.2.0 → u2auth-0.2.2}/README.md +3 -1
- {u2auth-0.2.0 → u2auth-0.2.2}/pyproject.toml +3 -2
- {u2auth-0.2.0 → u2auth-0.2.2}/tests/test_client.py +17 -0
- {u2auth-0.2.0 → u2auth-0.2.2}/u2auth/client.py +1 -1
- {u2auth-0.2.0 → u2auth-0.2.2/u2auth.egg-info}/PKG-INFO +6 -3
- {u2auth-0.2.0 → u2auth-0.2.2}/LICENSE +0 -0
- {u2auth-0.2.0 → u2auth-0.2.2}/setup.cfg +0 -0
- {u2auth-0.2.0 → u2auth-0.2.2}/tests/test_helpers.py +0 -0
- {u2auth-0.2.0 → u2auth-0.2.2}/tests/test_totp.py +0 -0
- {u2auth-0.2.0 → u2auth-0.2.2}/tests/test_webhook.py +0 -0
- {u2auth-0.2.0 → u2auth-0.2.2}/u2auth/__init__.py +0 -0
- {u2auth-0.2.0 → u2auth-0.2.2}/u2auth/helpers.py +0 -0
- {u2auth-0.2.0 → u2auth-0.2.2}/u2auth/py.typed +0 -0
- {u2auth-0.2.0 → u2auth-0.2.2}/u2auth/webhook.py +0 -0
- {u2auth-0.2.0 → u2auth-0.2.2}/u2auth.egg-info/SOURCES.txt +0 -0
- {u2auth-0.2.0 → u2auth-0.2.2}/u2auth.egg-info/dependency_links.txt +0 -0
- {u2auth-0.2.0 → u2auth-0.2.2}/u2auth.egg-info/requires.txt +0 -0
- {u2auth-0.2.0 → u2auth-0.2.2}/u2auth.egg-info/top_level.txt +0 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: u2auth
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: U2Auth SDK for Python — TOTP verification, push approvals, and local TOTP helpers
|
|
5
5
|
Author-email: DollarMates Dev <dev@dollarmates.com>
|
|
6
6
|
License-Expression: MIT
|
|
7
|
-
Project-URL: Homepage, https://
|
|
7
|
+
Project-URL: Homepage, https://u2secured.com/authenticator
|
|
8
|
+
Project-URL: Documentation, https://auth.u2secured.com/developer/docs
|
|
8
9
|
Project-URL: Source, https://github.com/u2secured/u2auth
|
|
9
10
|
Project-URL: Issues, https://github.com/u2secured/u2auth/issues
|
|
10
11
|
Keywords: 2fa,mfa,totp,push,authentication,u2secured
|
|
@@ -24,6 +25,8 @@ Dynamic: license-file
|
|
|
24
25
|
|
|
25
26
|
Python SDK for the U2Auth platform — TOTP verification, push approvals, and local TOTP helpers.
|
|
26
27
|
|
|
28
|
+
Part of [U2 Secured Authenticator](https://u2secured.com/authenticator) · [Documentation](https://auth.u2secured.com/developer/docs)
|
|
29
|
+
|
|
27
30
|
## Install
|
|
28
31
|
|
|
29
32
|
```bash
|
|
@@ -125,7 +128,7 @@ enrolment = client.wait_for_link(pairing["code"], user_identifier="user@example.
|
|
|
125
128
|
|
|
126
129
|
### `Client(api_key, *, base_url?)`
|
|
127
130
|
|
|
128
|
-
Sync API client. `base_url` defaults to `https://
|
|
131
|
+
Sync API client. `base_url` defaults to `https://auth.u2secured.com`.
|
|
129
132
|
|
|
130
133
|
### `client.verify_totp(secret, code) -> dict`
|
|
131
134
|
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Python SDK for the U2Auth platform — TOTP verification, push approvals, and local TOTP helpers.
|
|
4
4
|
|
|
5
|
+
Part of [U2 Secured Authenticator](https://u2secured.com/authenticator) · [Documentation](https://auth.u2secured.com/developer/docs)
|
|
6
|
+
|
|
5
7
|
## Install
|
|
6
8
|
|
|
7
9
|
```bash
|
|
@@ -103,7 +105,7 @@ enrolment = client.wait_for_link(pairing["code"], user_identifier="user@example.
|
|
|
103
105
|
|
|
104
106
|
### `Client(api_key, *, base_url?)`
|
|
105
107
|
|
|
106
|
-
Sync API client. `base_url` defaults to `https://
|
|
108
|
+
Sync API client. `base_url` defaults to `https://auth.u2secured.com`.
|
|
107
109
|
|
|
108
110
|
### `client.verify_totp(secret, code) -> dict`
|
|
109
111
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "u2auth"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.2"
|
|
8
8
|
description = "U2Auth SDK for Python — TOTP verification, push approvals, and local TOTP helpers"
|
|
9
9
|
authors = [{ name = "DollarMates Dev", email = "dev@dollarmates.com" }]
|
|
10
10
|
requires-python = ">=3.9"
|
|
@@ -19,7 +19,8 @@ classifiers = [
|
|
|
19
19
|
]
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
|
-
Homepage = "https://
|
|
22
|
+
Homepage = "https://u2secured.com/authenticator"
|
|
23
|
+
Documentation = "https://auth.u2secured.com/developer/docs"
|
|
23
24
|
Source = "https://github.com/u2secured/u2auth"
|
|
24
25
|
Issues = "https://github.com/u2secured/u2auth/issues"
|
|
25
26
|
|
|
@@ -822,3 +822,20 @@ class TestDeleteEnrolment:
|
|
|
822
822
|
assert exc.value.code == "ENROLMENT_NOT_FOUND"
|
|
823
823
|
assert exc.value.status_code == 404
|
|
824
824
|
srv.stop()
|
|
825
|
+
|
|
826
|
+
|
|
827
|
+
def test_default_base_url_is_the_production_host():
|
|
828
|
+
"""The default base URL is a security boundary, not a convenience.
|
|
829
|
+
|
|
830
|
+
A client built without base_url sends the caller's rka_ key to whatever
|
|
831
|
+
this names. It named https://app.u2secured.io through 0.2.0 -- a domain
|
|
832
|
+
nobody had registered, so any stranger could have bought it and collected
|
|
833
|
+
keys from every integration that took the default. No test referenced the
|
|
834
|
+
constant, so nothing noticed.
|
|
835
|
+
|
|
836
|
+
The literal is asserted rather than the constant against itself, which
|
|
837
|
+
would pass whatever the constant said.
|
|
838
|
+
"""
|
|
839
|
+
from u2auth.client import _DEFAULT_BASE_URL
|
|
840
|
+
|
|
841
|
+
assert _DEFAULT_BASE_URL == "https://auth.u2secured.com"
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: u2auth
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: U2Auth SDK for Python — TOTP verification, push approvals, and local TOTP helpers
|
|
5
5
|
Author-email: DollarMates Dev <dev@dollarmates.com>
|
|
6
6
|
License-Expression: MIT
|
|
7
|
-
Project-URL: Homepage, https://
|
|
7
|
+
Project-URL: Homepage, https://u2secured.com/authenticator
|
|
8
|
+
Project-URL: Documentation, https://auth.u2secured.com/developer/docs
|
|
8
9
|
Project-URL: Source, https://github.com/u2secured/u2auth
|
|
9
10
|
Project-URL: Issues, https://github.com/u2secured/u2auth/issues
|
|
10
11
|
Keywords: 2fa,mfa,totp,push,authentication,u2secured
|
|
@@ -24,6 +25,8 @@ Dynamic: license-file
|
|
|
24
25
|
|
|
25
26
|
Python SDK for the U2Auth platform — TOTP verification, push approvals, and local TOTP helpers.
|
|
26
27
|
|
|
28
|
+
Part of [U2 Secured Authenticator](https://u2secured.com/authenticator) · [Documentation](https://auth.u2secured.com/developer/docs)
|
|
29
|
+
|
|
27
30
|
## Install
|
|
28
31
|
|
|
29
32
|
```bash
|
|
@@ -125,7 +128,7 @@ enrolment = client.wait_for_link(pairing["code"], user_identifier="user@example.
|
|
|
125
128
|
|
|
126
129
|
### `Client(api_key, *, base_url?)`
|
|
127
130
|
|
|
128
|
-
Sync API client. `base_url` defaults to `https://
|
|
131
|
+
Sync API client. `base_url` defaults to `https://auth.u2secured.com`.
|
|
129
132
|
|
|
130
133
|
### `client.verify_totp(secret, code) -> dict`
|
|
131
134
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|