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.
@@ -1,10 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: u2auth
3
- Version: 0.2.0
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://auth.u2secured.com/developer/docs
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://app.u2secured.io`.
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://app.u2secured.io`.
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.0"
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://auth.u2secured.com/developer/docs"
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"
@@ -8,7 +8,7 @@ import urllib.request
8
8
  from typing import Any, Dict, Optional
9
9
 
10
10
 
11
- _DEFAULT_BASE_URL = "https://app.u2secured.io"
11
+ _DEFAULT_BASE_URL = "https://auth.u2secured.com"
12
12
 
13
13
 
14
14
  class U2AuthError(Exception):
@@ -1,10 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: u2auth
3
- Version: 0.2.0
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://auth.u2secured.com/developer/docs
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://app.u2secured.io`.
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