oidc

package
v2.53.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIssuerData

func GetIssuerData() string

func GetKey

func GetKey() (*rsa.PrivateKey, error)

func GetToken

func GetToken(idToken string, refreshToken string) string

Types

type MockOidcServer

type MockOidcServer struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(config MockOidcServerConfig) *MockOidcServer

func (*MockOidcServer) Issuer

func (s *MockOidcServer) Issuer() string

func (*MockOidcServer) Start

func (s *MockOidcServer) Start(t *testing.T) error

func (*MockOidcServer) Stop

func (s *MockOidcServer) Stop()

type MockOidcServerConfig

type MockOidcServerConfig struct {
	ClientID                 string
	InstallationCodename     string
	TokenRecoverableFailures int
	TokenFatalFailures       int
}

Jump to

Keyboard shortcuts

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