passwordcredentials

package
v2.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Overview

Package passwordcredentials implements the API Resource Owner Password Credentials access method.

This access methods uses a user ID and password that can access several accounts

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	UserName string
	Password string
	ID       string
	Secret   string
	endpoint.Config
}

Config includes the items necessary to authenticate using password credentials Set the Account entry to determine which account you wish to access

func (*Config) Client

func (c *Config) Client(ctx context.Context) (*http.Client, oauth2.TokenSource, error)

Client creates an oauth2 password credential client from the config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL