Documentation ¶
Index ¶
- Constants
- type MockWallet
- func (m *MockWallet) CreateAndPushSecretToHubAuth(endpoint string) error
- func (m *MockWallet) FetchBootstrapData(endpoint string) (*operation.BootstrapData, error)
- func (m *MockWallet) RequestUserAuthentication() (*http.Response, error)
- func (m *MockWallet) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (m *MockWallet) UpdateBootstrapData(endpoint string, update *operation.UpdateBootstrapDataRequest) error
- type Steps
- type UserClaims
Constants ¶
View Source
const (
HUB_AUTH_HOST = "https://localhost:8070"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockWallet ¶
type MockWallet struct { ReceivedCallback bool UserData *UserClaims CallbackErr error Secret string // contains filtered or unexported fields }
func NewMockWallet ¶
func NewMockWallet(clientRegistrationURL, oidcProviderURL string, httpClient *http.Client) (*MockWallet, error)
func (*MockWallet) CreateAndPushSecretToHubAuth ¶
func (m *MockWallet) CreateAndPushSecretToHubAuth(endpoint string) error
func (*MockWallet) FetchBootstrapData ¶
func (m *MockWallet) FetchBootstrapData(endpoint string) (*operation.BootstrapData, error)
func (*MockWallet) RequestUserAuthentication ¶
func (m *MockWallet) RequestUserAuthentication() (*http.Response, error)
func (*MockWallet) ServeHTTP ¶
func (m *MockWallet) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*MockWallet) UpdateBootstrapData ¶
func (m *MockWallet) UpdateBootstrapData(endpoint string, update *operation.UpdateBootstrapDataRequest) error
type Steps ¶
type Steps struct {
// contains filtered or unexported fields
}
func NewSteps ¶
func NewSteps(ctx *bddctx.BDDContext) *Steps
func (*Steps) NewWalletLogin ¶
func (s *Steps) NewWalletLogin() (*MockWallet, error)
NewWalletLogin returns a new common.MockWallet that is logged in.
func (*Steps) RegisterSteps ¶
Click to show internal directories.
Click to hide internal directories.