auth

package
v0.0.0-...-614127b Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyOAuth2MockServer

func ApplyOAuth2MockServer(resourceMgr *resource.Manager, k8sClient dynamic.Interface, namespace string, domain string) (string, string, error)

ApplyOAuth2MockServer creates OAuth2 mock server deployment, service and virtual service. Returns the issuer URL of the mock server.

func EnsureOAuth2Server

func EnsureOAuth2Server(resourceMgr *resource.Manager, k8sClient dynamic.Interface, namespace string, config testcontext.Config, retryOpts []retry.Option) (string, string, error)

func GetAccessToken

func GetAccessToken(oauth2Cfg clientcredentials.Config, tokenType string) (string, error)

func GetAccessTokenWithRetries

func GetAccessTokenWithRetries(oauth2Cfg clientcredentials.Config, tokenType string, retryOpts []retry.Option) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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