Categorygithub.com/nrtkbb/oauth2device
modulepackage
0.0.1
Repository: https://github.com/nrtkbb/oauth2device.git
Documentation: pkg.go.dev

# README

Golang OAuth2.0 for Devices

This package implements a small shim atop https://github.com/golang/oauth2 to support Google's OAuth2.0 flow for devices.

See the documentation for more details.

# Packages

No description provided by the author

# Functions

RequestDeviceCode will initiate the OAuth2 device authorization flow.
WaitForDeviceAuthorization polls the token URL waiting for the user to authorize the app.

# Variables

ErrAccessDenied is an error returned when the user has denied this app access to their account.

# Structs

A version of oauth2.Config augmented with device endpoints.
A DeviceCode represents the user-visible code, verification URL and device-visible code used to allow for user authorisation of this app.
DeviceEndpoint contains the URLs required to initiate the OAuth2.0 flow for a provider's device flow.