login

package
v0.0.0-...-c41ce58 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfigRequest

type AuthConfigRequest struct {
	Sub  string `json:"sub"`
	Fail bool   `json:"fail,omitempty"`
}

AuthConfigRequest can be sent to mockAuthNEndpoint to configure the user authentication behaviour.

type ConsentConfigRequest

type ConsentConfigRequest struct {
	UserClaims *UserClaims `json:"user_claims,omitempty"`
	Fail       bool        `json:"fail,omitempty"`
}

ConsentConfigRequest can be sent to mockAuthZEndpoint to configure the user authorization behaviour.

type Steps

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

Steps are the login BDD test steps.

func NewSteps

func NewSteps(ctx *bddcontext.BDDContext) *Steps

NewSteps returns login BDD test steps.

func (*Steps) Register

func (s *Steps) Register(gs *godog.Suite)

Register the login BDD test steps in the godog suite.

type UserClaims

type UserClaims struct {
	Sub        string `json:"sub"`
	Name       string `json:"name"`
	GivenName  string `json:"given_name"`
	FamilyName string `json:"family_name"`
	Email      string `json:"email"`
}

UserClaims can be used by BDD tests to configure the claims in the id_token.

Jump to

Keyboard shortcuts

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