Repository navigation
Releases
v1.3.0
Support for expiring tokens and refresh
This release adds support for expiring OAuth access tokens and exchanging refresh tokens for new ones (See RFC 6749). See the README for usage examples.
What's Changed
✨ Features
📚 Docs & Chores
- Add CODEOWNERS by @williammartin in #115
- Add Dependabot config with 5-day cooldown by @williammartin in #116
- Avoid persisting credentials in workflows by @williammartin in #114
- Trim Go test matrix to latest 3 versions by @williammartin in #120
- Bump golangci lint and fix issues by @williammartin in #121
- Add CodeQL workflow by @williammartin in #122
- Reduce dependabot cooldown to 3 days by @williammartin in #123
- SHA pin first-party GitHub Actions by @williammartin in #125
- Group CodeQL Dependabot updates by @williammartin in #144
Dependencies
- Bump actions/checkout from 2 to 6 by @dependabot[bot] in #117
- Bump actions/setup-go from 3 to 6 by @dependabot[bot] in #118
- Bump github.com/cli/browser from 1.0.0 to 1.3.0 by @dependabot[bot] in #119
- Bump github/codeql-action from 4 to 4.35.5 by @dependabot[bot] in #124
- Bump golangci/golangci-lint-action from 9.2.0 to 9.2.1 by @dependabot[bot] in #126
- Bump actions/checkout from 6.0.2 to 6.0.3 by @dependabot[bot] in #128
- Bump github/codeql-action from 4.36.0 to 4.36.2 by @dependabot[bot] in #129
- Bump actions/checkout from 6.0.3 to 7.0.0 by @dependabot[bot] in #130
- Bump golangci/golangci-lint-action from 9.2.1 to 9.3.0 by @dependabot[bot] in #132
- Bump actions/setup-go from 6.4.0 to 7.0.0 by @dependabot[bot] in #139
- Bump actions/checkout from 7.0.0 to 7.0.1 by @dependabot[bot] in #140
- Bump the codeql-actions group with 2 updates by @dependabot[bot] in #145
- Bump the codeql-actions group with 2 updates by @dependabot[bot] in #148
- Bump the codeql-actions group with 2 updates by @dependabot[bot] in #149
New Contributors
- @dependabot[bot] made their first contribution in #117
Full Changelog: v1.2.2...v1.3.0
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