Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMockUserData ¶
GetMockUserData returns a slice of *models.UserInfo that represents a response from the Okta server. Most of the data here is generated randomly, though some of it was curated specifically for the purpose of making tests pass.
func NewLocalAuthenticationMiddleware ¶
NewLocalAuthenticationMiddleware stubs out context info for local (non-Okta) authentication
func NewOktaAPIClient ¶
func NewOktaAPIClient() *client
NewOktaAPIClient returns an Okta API client that returns mock data
Types ¶
type CedarEasiClient ¶
type CedarEasiClient struct{}
CedarEasiClient mocks the CEDAR Easi client for local/test use
func NewCedarEasiClient ¶
func NewCedarEasiClient() *CedarEasiClient
NewCedarEasiClient returns a fake CEDAR Easi Client
func (*CedarEasiClient) CheckConnection ¶
func (c *CedarEasiClient) CheckConnection(context.Context) error
CheckConnection tries to verify if we are able to communicate with the CEDAR API
func (*CedarEasiClient) ValidateAndSubmitSystemIntake ¶
func (c *CedarEasiClient) ValidateAndSubmitSystemIntake(ctx context.Context, intake *models.SystemIntake) (string, error)
ValidateAndSubmitSystemIntake submits a system intake to CEDAR
type DevUserConfig ¶
DevUserConfig is the set of values that can be passed in a request header
type SMTPSender ¶
type SMTPSender struct {
// contains filtered or unexported fields
}
SMTPSender is a basic email sender that connects to an SMTP server; use with MailCatcher for testing locally
func NewSMTPSender ¶
func NewSMTPSender(serverAddress string) SMTPSender
NewSMTPSender configures and returns an SMTPSender for local testing
func (SMTPSender) Send ¶
func (sender SMTPSender) Send(ctx context.Context, toAddresses []models.EmailAddress, ccAddresses []models.EmailAddress, subject string, body string) error
Send sends and logs an email