Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Authorization): adds "additionalParams" option to allow passing arbitrary query parameters through OAuth redirects. #170

Merged
merged 9 commits into from
Jun 3, 2024

Conversation

jakeglobus
Copy link
Contributor

No description provided.

@jakeglobus
Copy link
Contributor Author

Just learning about the test suite so I can test the params are preserved

Copy link

codecov bot commented May 14, 2024

Codecov Report

Attention: Patch coverage is 28.57143% with 15 lines in your changes are missing coverage. Please review.

Project coverage is 91.80%. Comparing base (9b27e43) to head (87c9533).

Current head 87c9533 differs from pull request most recent head 5e9ec70

Please upload reports for the commit 5e9ec70 to get more accurate results.

Files Patch % Lines
src/lib/core/authorization/AuthorizationManager.ts 21.05% 15 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #170      +/-   ##
==========================================
- Coverage   99.12%   91.80%   -7.33%     
==========================================
  Files          63       63              
  Lines         919      927       +8     
  Branches      125      132       +7     
==========================================
- Hits          911      851      -60     
- Misses          8       68      +60     
- Partials        0        8       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jakeglobus jakeglobus force-pushed the add-overrides-for-auth-params branch from fff6292 to 0d29c28 Compare May 14, 2024 20:37
@jakeglobus jakeglobus force-pushed the add-overrides-for-auth-params branch 2 times, most recently from 7ac60ee to e07ba94 Compare May 21, 2024 15:56
@jakeglobus
Copy link
Contributor Author

Still trying to figure out what test for handleCodeRedirect looks like and how to make it work but I think this is in a pretty good spot

@jakeglobus jakeglobus marked this pull request as ready for review May 21, 2024 17:32
@jbottigliero jbottigliero changed the title feat(Auth): preserve URL search params on redirect URL feat(Authorization): adds "additionalParams" option to allow passing arbitrary query parameters through OAuth redirects. May 21, 2024
@jakeglobus jakeglobus force-pushed the add-overrides-for-auth-params branch from d5fe7b0 to 8a48b7a Compare May 21, 2024 18:09
@jbottigliero jbottigliero force-pushed the add-overrides-for-auth-params branch from f69c80b to 87c9533 Compare June 3, 2024 18:22
@jbottigliero jbottigliero merged commit 754b508 into main Jun 3, 2024
7 checks passed
@jbottigliero jbottigliero deleted the add-overrides-for-auth-params branch June 3, 2024 18:32
This was referenced Jun 3, 2024
jbottigliero pushed a commit that referenced this pull request Jun 3, 2024
##
[3.4.0](v3.3.1...v3.4.0)
(2024-06-03)


### Features

* **Authorization:** adds `additionalParams` option to allow passing
arbitrary query parameters through OAuth redirects.
([#170](#170))
([754b508](754b508))

```tsx
managerInstance.handleErrorResponse(res, {
  additionalParams: {
    retained_state: "example-state",
    retained_route: "example.route",
  },
});
```

* **GCS:** adds HTTPS Access service methods to GCS
([#182](#182))
([a258082](a258082))
```tsx
    const request = await https.get(GCS_CONFIGURATION, '/my-file.txt', {
      headers: {
        Authorization: 'Bearer an-example-token',
      },
    });
```

## Internal
We've updated the request composition to include an
`X-Globus-ClientInfo` header with requests. This header will include the
current SDK version information for use by the Globus platform and
support. e.g. `X-Globus-ClientInfo:
product=javascript-sdk,version=3.4.0;`.

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants