oidc

package
v3.0.0-...-a69f007 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 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