credentials

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOauth2Config

func GetOauth2Config(config Config) (*oauth2.Config, error)

GetOauth2Config reads the token and authorization URLs from a discovery document

Types

type Config

type Config struct {
	Issuer         string `mapstructure:"issuer"` // URL identifier for the service
	AppID          string `mapstructure:"app-id"`
	ClientID       string `mapstructure:"client-id"`
	ClientSecret   string `mapstructure:"client-secret"`
	UserName       string `mapstructure:"username"`
	Password       string `mapstructure:"password"`
	Scope          string `mapstructure:"scope"`
	HeaderTenantID string `mapstructure:"header-tenant-id"`
	TenantID       uint32 `mapstructure:"tenant-id"`
}

Config stores the user's credentials

Jump to

Keyboard shortcuts

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