Skip to content

Commit

Permalink
add DeviceAuthUrl to oauth2.Endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
cbodonnell committed Oct 29, 2023
1 parent 752ccd7 commit 015c4bf
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions oidc/oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,12 +280,7 @@ func (p *Provider) Claims(v interface{}) error {

// Endpoint returns the OAuth2 auth and token endpoints for the given provider.
func (p *Provider) Endpoint() oauth2.Endpoint {
return oauth2.Endpoint{AuthURL: p.authURL, TokenURL: p.tokenURL}
}

// DeviceEndpoint returns the OAuth2 device auth endpoint for the given provider.
func (p *Provider) DeviceEndpoint() string {
return p.deviceAuthURL
return oauth2.Endpoint{AuthURL: p.authURL, DeviceAuthURL: p.deviceAuthURL, TokenURL: p.tokenURL}
}

// UserInfoEndpoint returns the OpenID Connect userinfo endpoint for the given
Expand Down

0 comments on commit 015c4bf

Please sign in to comment.