Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTokenEndpoint = oauth2.Endpoint{
TokenURL: "https://sso.dynatrace.com/sso/oauth2/token",
}
Functions ¶
func NewOAuthClient ¶
func NewOAuthClient(ctx context.Context, oauthConfig OauthCredentials) *http.Client
NewOAuthClient creates a new HTTP client that supports OAuth2 client credentials based authorization
func NewTokenAuthClient ¶
NewTokenAuthClient creates a new HTTP client that supports token based authorization
Types ¶
type OauthCredentials ¶
type OauthCredentials struct { ClientID string ClientSecret string TokenURL string Scopes []string }
OauthCredentials holds information for authenticating to Dynatrace using Oauth2.0 client credential flow
type TokenAuthTransport ¶
type TokenAuthTransport struct { http.RoundTripper // contains filtered or unexported fields }
TokenAuthTransport should be used to enable a client to use dynatrace token authorization
func NewTokenAuthTransport ¶
func NewTokenAuthTransport(token string) *TokenAuthTransport
NewTokenAuthTransport creates a new http transport to be used for token authorization
Click to show internal directories.
Click to hide internal directories.