auth

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AuthClientSingleton = internal.NewSingleton(func() (AuthClient, error) {
		cfg := common.GetConfig()
		return NewAuthClient(
			internal.GetRestyClient(),
			cfg.ClientId,
			cfg.ClientSecret,
			cfg.AuthApiHost,
		)
	})
)

Functions

func NewAuthClient

func NewAuthClient(restyClient internal.RestyClient, clientId string, clientSecret string, authURL string) (*authClient, error)

Types

type AuthClient

type AuthClient interface {
	AuthorizeRequest(req internal.RestyRequest) (internal.RestyRequest, error)
}

Jump to

Keyboard shortcuts

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