device flow

This commit is contained in:
M Hickford
2022-11-14 09:11:52 +00:00
parent ac6658e9cb
commit 9a126d7b53
6 changed files with 295 additions and 9 deletions

View File

@@ -71,8 +71,9 @@ type TokenSource interface {
// Endpoint represents an OAuth 2.0 provider's authorization and token
// endpoint URLs.
type Endpoint struct {
AuthURL string
TokenURL string
AuthURL string
DeviceAuthURL string
TokenURL string
// AuthStyle optionally specifies how the endpoint wants the
// client ID & client secret sent. The zero value means to