Releases: cli/oauth
v1.2.2
Handle monotonic/wall clock drifts (device flow)
We have observed rare cases of time drift between the wall and monotonic clocks, mostly in WSL or VM environments, causing failures during polling for the OAuth token. This new release implements measures to account for such situations.
What's Changed
🐛 Fixes
- Account for fast mono clock when polling in device flow by @babakks in #111
- Fix comment about clock drift by @babakks in #112
Full Changelog: v1.2.1...v1.2.2
v1.2.1
Handle slow_down error when polling (device flow)
Originally, while polling for the access token as part of the device flow, the library would return an error upon receiving slow_down from the OAuth server. However, polling should continue at increased intervals in such cases (See RFC 8628). This release fixes the previous behaviour.
What's Changed
🐛 Fixes
New Contributors
Full Changelog: v1.2.0...v1.2.1
v1.2.0
v1.1.1
What's Changed
- Fix panic when Hostname is used by @williammartin in #70
- Only test supported versions 1.21-1.23 by @williammartin in #72
New Contributors
- @williammartin made their first contribution in #70
Full Changelog: v1.1.0...v1.1.1
v1.1.0
What's Changed
- Introduce safe host parsing function by @mouismail in #63
New Contributors
- @mouismail made their first contribution in #63
Full Changelog: v1.0.1...v1.1.0
oauth 1.0.1
What's Changed
Full Changelog: v1.0.0...v1.0.1
oauth 1.0.0
What's New
-
Deprecate blocking functions
device.PollToken()andwebapp.Flow.AccessToken()in favor of newWait()functions that respect context cancellation and are expandable with future parameters via options struct by @mislav in #39 -
Device flow: expose
VerificationURICompletefor servers that support it by @tchandelle in #37 -
Support Google "OAuth 2.0 for TV and Limited-Input Device Applications" by @markandrus in #24
What's Changed
- Test with Go 1.19 by @mislav in #38
- Linter fixes by @mislav in #40
- Improve examples by @mislav in #41
New Contributors
- @tchandelle made their first contribution in #37
- @markandrus made their first contribution in #24
Full Changelog: v0.9.0...v1.0.0
v0.9.0: Merge pull request #7 from jamierocks/server
What's Changed
- Expose refresh token (used by GitHub Apps) by @swinton in #9
- Support third-party OAuth hosts by @jamierocks in #7
New Contributors
- @swinton made their first contribution in #9
- @jamierocks made their first contribution in #7