Documentation
¶
Index ¶
- Constants
- func NewDemo(server string, method string, redirectUri string) (oauth2.TokenSource, error)
- func NewDemoFromConfig(_ context.Context, other map[string]any) (oauth2.TokenSource, error)
- func NewFromConfig(ctx context.Context, typ string, other map[string]any) (oauth2.TokenSource, error)
- func NewOAuthFromConfig(ctx context.Context, other map[string]any) (oauth2.TokenSource, error)
- func NewViessmannFromConfig(ctx context.Context, other map[string]any) (oauth2.TokenSource, error)
- func Register(typ string, fun func(map[string]any) (oauth2.TokenSource, error))
- func WithOauthDeviceFlowOption() func(o *OAuth)
- func WithTokenRetrieverOption(tr func(string, *oauth2.Token) error) func(o *OAuth)
- func WithTokenStorerOption(ts func(*oauth2.Token) any) func(o *OAuth)
- type OAuth
Constants ¶
View Source
const OAuthURI = "https://iam.viessmann-climatesolutions.com/idp/v3"
Variables ¶
This section is empty.
Functions ¶
func NewDemoFromConfig ¶
func NewFromConfig ¶
func NewFromConfig(ctx context.Context, typ string, other map[string]any) (oauth2.TokenSource, error)
NewFromConfig creates auth from configuration
func NewOAuthFromConfig ¶
func NewViessmannFromConfig ¶
func WithOauthDeviceFlowOption ¶
func WithOauthDeviceFlowOption() func(o *OAuth)
Types ¶
type OAuth ¶
type OAuth struct {
// contains filtered or unexported fields
}
func (*OAuth) Authenticated ¶
Authenticated implements api.AuthProvider.
func (*OAuth) DisplayName ¶
DisplayName implements api.AuthProvider.
func (*OAuth) HandleCallback ¶
HandleCallback implements api.AuthProvider.
Click to show internal directories.
Click to hide internal directories.