Commit 1a5eb05
authored
Connection based verification (#802)
* Initial POC of connection based verification
Signed-off-by: Gavin Jaeger-Freeborn <gavinfreeborn@gmail.com>
* Applied black formatting
Signed-off-by: Gavin Jaeger-Freeborn <gavinfreeborn@gmail.com>
* Removed assertion to ensure we didn't use oob
Signed-off-by: Gavin Jaeger-Freeborn <gavinfreeborn@gmail.com>
* Added problem reports on failed connections
Signed-off-by: Gavin Jaeger-Freeborn <gavinfreeborn@gmail.com>
* Add connection verification testing
Signed-off-by: Gavin Jaeger-Freeborn <gavinfreeborn@gmail.com>
1. Updated timestamps in models to use UTC for consistency across the application.
2. Added comprehensive tests for ACA-Py webhook handler, covering various scenarios including connection status changes, presentation request handling, and error reporting.
3. Introduced new dependencies in the `pyproject.toml` for HTTP handling in tests.
4. Improved mocking strategies in test cases for better isolation and reliability.
These changes ensure better adherence to time standards and robustness in handling connection-based verification's and related testing.
* Improve test coverage
Signed-off-by: Gavin Jaeger-Freeborn <gavinfreeborn@gmail.com>
* Use multi_use keyword rather than ephemeral and only delete multi_use auth_sessions
Signed-off-by: Gavin Jaeger-Freeborn <gavinfreeborn@gmail.com>
* Remove NEW comments and removed depreciated create_invitation
Signed-off-by: Gavin Jaeger-Freeborn <gavinfreeborn@gmail.com>
- Removed commented-out code for the depreciated create_invitation method
- Changed comments in the acapy_handler and oidc router modules to remove "NEW" indicators for clarification.
* Fix: removed "pending-" prefix and error reporting with invi_msg_id
Signed-off-by: Gavin Jaeger-Freeborn <gavinfreeborn@gmail.com>
- Removed the hardcoded "pending-" prefix from the session ID lookup when searching by `pres_exch_id` in `acapy_handler.py`, allowing for more flexible ID matching.
- Added a check in `oidc.py` to raise an HTTP 500 error if the invitation message ID is missing, ensuring proper error handling and clearer diagnostics when creating an OOB invitation message.
* Removed pointless "assert False" that was left over from testing
Signed-off-by: Gavin Jaeger-Freeborn <gavinfreeborn@gmail.com>
* Remove unnecessary dependencies and group allocations in poetry.lock and pyproject.toml
Signed-off-by: Gavin Jaeger-Freeborn <gavinfreeborn@gmail.com>
- Removed 'httpx' packages from pyproject.toml as they were not needed.
* Restore httpx dependancy
Signed-off-by: Gavin Jaeger-Freeborn <gavinfreeborn@gmail.com>
* Change logging type
Signed-off-by: Gavin Jaeger-Freeborn <gavinfreeborn@gmail.com>
* Corrected inconsistent expiry and creation timestamps
Signed-off-by: Gavin Jaeger-Freeborn <gavinfreeborn@gmail.com>
* Handle timezone aware comparison datetimes
Signed-off-by: Gavin Jaeger-Freeborn <gavinfreeborn@gmail.com>
* Add USE_CONNECTION_BASED_VERIFICATION to docker compose
Signed-off-by: Gavin Jaeger-Freeborn <gavinfreeborn@gmail.com>
---------
Signed-off-by: Gavin Jaeger-Freeborn <gavinfreeborn@gmail.com>
Signed-off-by: Gavinok <34443260+Gavinok@users.noreply.github.com>1 parent 5093a84 commit 1a5eb05
File tree
20 files changed
+2785
-36
lines changed- docker
- oidc-controller/api
- authSessions
- tests
- core
- acapy
- tests
- tests
- db/tests
- routers
- tests
20 files changed
+2785
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
30 | 36 | | |
31 | 37 | | |
32 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
30 | 33 | | |
31 | | - | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments