Commit adaebbd
authored
Implement wrapper method of issue_stateless_channel_token (#814)
## Summary
- Add wrapper functions for the stateless channel access token API
- The original `issueStatelessChannelToken` accepts all parameters for
two different authentication patterns (JWT assertion and client secret),
making it unclear which parameters to pass for each pattern. These
wrappers make the distinction explicit through their names and
signatures.
- Supported variants:
- `issueStatelessChannelTokenByJWTAssertion` /
`issueStatelessChannelTokenByClientSecret`
- `*WithHttpInfo`
- `*Async`
- `*AsyncWithHttpInfo`
- The original methods (`issueStatelessChannelToken`,
`issueStatelessChannelTokenWithHttpInfo`,
`issueStatelessChannelTokenAsync`,
`issueStatelessChannelTokenAsyncWithHttpInfo`) are marked as
`@deprecated` with references to the new wrappers.
## Test plan
- [x] Added tests for `issueStatelessChannelTokenByJWTAssertion`
- [x] Added tests for `issueStatelessChannelTokenByClientSecret`
- [x] Added tests for `issueStatelessChannelTokenByJWTAssertionAsync`
- [x] Added tests for `issueStatelessChannelTokenByClientSecretAsync`
- [x] Added tests for
`issueStatelessChannelTokenByJWTAssertionAsyncWithHttpInfo`
- [x] Added tests for
`issueStatelessChannelTokenByClientSecretAsyncWithHttpInfo`1 parent 6f2b7cd commit adaebbd
6 files changed
Lines changed: 1510 additions & 72 deletions
File tree
- docs
- classes
- js
- reports
- src/clients/channel-access-token/lib/Api
- test/clients/channel-access-token/Api
- tools
Lines changed: 847 additions & 71 deletions
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
233 | 273 | | |
234 | 274 | | |
235 | 275 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
138 | 141 | | |
139 | 142 | | |
140 | 143 | | |
141 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
142 | 178 | | |
143 | 179 | | |
144 | 180 | | |
| |||
0 commit comments