Commit 00f7a4c
committed
authn-mappings: fix stale no-auth test, add OAuth bearer test
- src/client.rs: the make_api_no_auth! macro-contract test used
AuthNMappingsAPI as its vehicle type, which is no longer accurate now
that authn_mappings.rs uses make_api!. Swapped to ApplicationSecurityAPI
(ASM WAF custom rules), which is still genuinely no-auth today.
- Added test_authn_mappings_list_accepts_oauth_bearer_token, which
configures access_token only (no API/APP keys) and asserts the
Authorization: Bearer header is sent -- the prior tests all used
test_config's defaults (access_token: None), so the make_api_no_auth! ->
make_api! change wasn't actually exercised by any test.1 parent a25aad1 commit 00f7a4c
2 files changed
Lines changed: 37 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
697 | 697 | | |
698 | 698 | | |
699 | 699 | | |
| 700 | + | |
| 701 | + | |
700 | 702 | | |
701 | 703 | | |
702 | | - | |
703 | | - | |
704 | | - | |
| 704 | + | |
705 | 705 | | |
706 | 706 | | |
707 | 707 | | |
| |||
719 | 719 | | |
720 | 720 | | |
721 | 721 | | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
| 722 | + | |
| 723 | + | |
726 | 724 | | |
727 | 725 | | |
728 | 726 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
118 | 150 | | |
119 | 151 | | |
120 | 152 | | |
| |||
0 commit comments