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

Feature/inherit oauth #2

Closed
wants to merge 12 commits into from
Closed

Feature/inherit oauth #2

wants to merge 12 commits into from

Conversation

pietrygamat
Copy link
Owner

Description

Contribution Checklist:

  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.

Publishing to New Package Managers

Please see here for more information.

Copy link

github-actions bot commented May 5, 2024

Test Results

 1 files  ±0  29 suites  +1   14s ⏱️ -1s
32 tests +1  31 ✅ ±0  0 💤 ±0  0 ❌ ±0  1 🔥 +1 
48 runs  +1  47 ✅ ±0  0 💤 ±0  0 ❌ ±0  1 🔥 +1 

For more details on these errors, see this check.

Results for commit 733ed88. ± Comparison against base commit 411289d.

♻️ This comment has been updated with latest results.

@pietrygamat pietrygamat force-pushed the feature/inherit-oauth branch 3 times, most recently from 5744e7f to a5e2d09 Compare May 6, 2024 14:23
Mateusz Pietryga and others added 11 commits May 7, 2024 20:03
… of api endpoint

Setting oauth2 authorization no longer equals overwriting user-specified data in a request. The pre-requests made to obtain oauth2 access_token are now separated from actual API request.

usebruno#1999
Results of oauth2 authorization flow (i.e. access_token but also refresh_token, id_token, scope or any other information returned from token request) are stored in a collection specific cache. It is persisted in the file system, and will be automatically reused when executing requests until the cache is purged (using Clear Cache button available in all related views).
…able by scripts

The new variable 'credentials' is now available in 'req' object. It is added automatically during request preparation if oauth2 method is used and is value is either evaluated or retrieved from collection oauth2 cache.
…Token action

The actual the authorization request is now part of request preparation, and its response is returned for post-request script processing.
According to RFC6749 Section 7.1, The client MUST NOT use an access token
if it does not understand the token type.
At this point bruno only understands 'bearer' token_type.
@VictorioBerra
Copy link

Whats the state of this?

@pietrygamat
Copy link
Owner Author

@VictorioBerra

Whats the state of this?

The actual PR to track is usebruno#2077 . It is ready to merge, or at least for thorough review, but such large changesets are approached cautiously by the main project maintainers. The best I can give you at this time is:

The 2077 is a larger effort that will take some time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants