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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.