Commit 7cefe90
Expose oauth constants (#725)
* Unify SCOPE and OAuth constants in abstract base
Move AUTHORIZE_URL, TOKEN_URL, and SCOPE to
PyViCareAbstractOAuthManager as the single source of truth.
Both PyViCareOAuthManager and PyViCareBrowserOAuthManager now
import from there.
* Define individual scope constants per CFenner review
Replace VIESSMANN_SCOPE list with individual constants:
SCOPE_IOT, SCOPE_USER, SCOPE_OFFLINE_ACCESS, SCOPE_INTERNAL.
Each manager builds its own scope list from these constants,
making it explicit which scopes each flow requests.
* Apply suggestions from code review
Co-authored-by: Christopher Fenner <9592452+CFenner@users.noreply.github.com>
* Update PyViCareOAuthManager.py
---------
Co-authored-by: Christopher Fenner <9592452+CFenner@users.noreply.github.com>1 parent 8cd3bb7 commit 7cefe90
File tree
3 files changed
+24
-10
lines changed- PyViCare
3 files changed
+24
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
18 | 25 | | |
19 | 26 | | |
20 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
11 | 18 | | |
12 | 19 | | |
13 | 20 | | |
14 | 21 | | |
15 | 22 | | |
16 | 23 | | |
17 | | - | |
18 | | - | |
19 | 24 | | |
20 | | - | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
| |||
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
53 | | - | |
| 57 | + | |
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
12 | 18 | | |
13 | 19 | | |
14 | 20 | | |
15 | 21 | | |
16 | 22 | | |
17 | 23 | | |
18 | | - | |
19 | | - | |
20 | 24 | | |
21 | | - | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
| |||
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
58 | | - | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| |||
0 commit comments