Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenGetter ¶
type TokenGetter struct {
// contains filtered or unexported fields
}
TokenGetter fetches an OIDC Identity token using the Device Code Grant flow as specified in RFC8628
func NewTokenGetter ¶
func NewTokenGetter(issuer string, opts ...Option) *TokenGetter
NewTokenGetter creates a new TokenGetter that retrieves an OIDC Identity Token using a Device Code Grant
func (*TokenGetter) CodeURL ¶
func (d *TokenGetter) CodeURL() (string, error)
CodeURL fetches the device authorization endpoint URL from the provider's well-known configuration endpoint
func (*TokenGetter) GetIDToken ¶
func (d *TokenGetter) GetIDToken(p *oidc.Provider, cfg oauth2.Config) (*oauthflow.OIDCIDToken, error)
GetIDToken gets an OIDC ID Token from the specified provider using the device code grant flow
Click to show internal directories.
Click to hide internal directories.