config

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OAuthCallbackAddr = "localhost:8085"
)

Variables

View Source
var (
	PrivateConfig = viper.New()

	OAuthConf = &oauth2.Config{
		ClientID: "d8ae7ea0-4a1a-46b0-b556-6d742687223a",
		Scopes:   []string{"device", "offline_access", "app-admin"},
		Endpoint: oauth2.Endpoint{
			AuthURL:  "https://login.tidbyt.com/oauth2/auth",
			TokenURL: "https://login.tidbyt.com/oauth2/token",
		},
		RedirectURL: fmt.Sprintf("http://%s", OAuthCallbackAddr),
	}
)

Functions

func OAuthTokenFromConfig

func OAuthTokenFromConfig(ctx context.Context) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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