Skip to content

Commit

Permalink
feat: add audience and resource to OAuth2 token exchange flow (An…
Browse files Browse the repository at this point in the history
  • Loading branch information
AnWeber committed Dec 29, 2023
1 parent e3dfa95 commit cef317c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
## [6.10.1] (2023-12-29)
## [6.11.0] (2023-12-29)

### Feature

- add `audience` and `resource` to OAuth2 token exchange flow (AnWeber/vscode-httpyac#248)
- allow intercepting and modification of OAuth2 Request before sending using `oauht2_interceptRequest` (#605)

### Fix

- escaping of `\{\{2\}\}` did not work (Anweber/vscode-httpyac#244)
- support only `http-client.env.json` and `http-client.private.env.json` files for intellij environments (Anweber/vscode-httpyac#245)
- add support to set requestUnauthorized to OAuth2 Requests (#605)
- allow intercepting and modification of OAuth2 Request before sending using `oauht2_interceptRequest` (#605)
- allow empty string in input and list provider (AnWeber/vscode-httpyac#247)
- parsing issue with multiline url parsing with only variable content (Anweber/vscode-httpyac#249)

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "MIT",
"publisher": "AnWeber",
"description": "HTTP/REST CLI Client for *.http files",
"version": "6.10.1",
"version": "6.11.0",
"homepage": "https://github.com/AnWeber/httpyac",
"repository": {
"type": "git",
Expand Down
2 changes: 2 additions & 0 deletions src/plugins/oauth2/flow/tokenExchangeFlow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ export class TokenExchangeFlow {
scope: config.scope ?? 'openid',
subject_issuer: config.subjectIssuer || jwtToken?.iss,
subject_token: encodeUrl(openIdInformation.accessToken),
audience: config.audience,
resource: config.resource,
}),
},
{
Expand Down

0 comments on commit cef317c

Please sign in to comment.