Documentation ¶
Overview ¶
Package certificateproviderpage provides the pages that a certificate provider interacts with.
Index ¶
- func ConfirmDontWantToBeCertificateProviderLoggedOut(tmpl template.Template, shareCodeStore ShareCodeStore, ...) page.Handler
- func EnterReferenceNumber(tmpl template.Template, shareCodeStore ShareCodeStore, ...) page.Handler
- func EnterReferenceNumberOptOut(tmpl template.Template, shareCodeStore ShareCodeStore, ...) page.Handler
- func ParseHowYouWillConfirmYourIdentity(s string) (howYouWillConfirmYourIdentity, error)
- func Register(rootMux *http.ServeMux, logger Logger, commonTmpls, tmpls template.Templates, ...)
- type AddressClient
- type CertificateProviderStore
- type DashboardStore
- type DonorStore
- type ErrorHandler
- type EventClient
- type Handler
- func CompletingYourIdentityConfirmation(tmpl template.Template) Handler
- func ConfirmDontWantToBeCertificateProvider(tmpl template.Template, lpaStoreClient LpaStoreClient, donorStore DonorStore, ...) Handler
- func ConfirmYourDetails(tmpl template.Template, certificateProviderStore CertificateProviderStore) Handler
- func ConfirmYourIdentity(tmpl template.Template, certificateProviderStore CertificateProviderStore) Handler
- func EnterDateOfBirth(tmpl template.Template, certificateProviderStore CertificateProviderStore) Handler
- func Guidance(tmpl template.Template) Handler
- func HowWillYouConfirmYourIdentity(tmpl template.Template, certificateProviderStore CertificateProviderStore) Handler
- func IdentityWithOneLogin(oneLoginClient OneLoginClient, sessionStore SessionStore, ...) Handler
- func IdentityWithOneLoginCallback(oneLoginClient OneLoginClient, sessionStore SessionStore, ...) Handler
- func ProvideCertificate(tmpl template.Template, certificateProviderStore CertificateProviderStore, ...) Handler
- func ReadTheLpa(tmpl template.Template, certificateProviderStore CertificateProviderStore) Handler
- func TaskList(tmpl template.Template) Handler
- func WhatIsYourHomeAddress(logger Logger, tmpl template.Template, addressClient AddressClient, ...) Handler
- func YourPreferredLanguage(tmpl template.Template, certificateProviderStore CertificateProviderStore) Handler
- type Localizer
- type Logger
- type LpaStoreClient
- type LpaStoreResolvingService
- type NotifyClient
- type OneLoginClient
- type ScheduledStore
- type SessionStore
- type ShareCodeSender
- type ShareCodeStore
- type Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfirmDontWantToBeCertificateProviderLoggedOut ¶
func ConfirmDontWantToBeCertificateProviderLoggedOut(tmpl template.Template, shareCodeStore ShareCodeStore, lpaStoreResolvingService LpaStoreResolvingService, lpaStoreClient LpaStoreClient, donorStore DonorStore, sessionStore SessionStore, notifyClient NotifyClient, appPublicURL string) page.Handler
func EnterReferenceNumber ¶
func EnterReferenceNumber(tmpl template.Template, shareCodeStore ShareCodeStore, sessionStore SessionStore, certificateProviderStore CertificateProviderStore) page.Handler
func EnterReferenceNumberOptOut ¶
func EnterReferenceNumberOptOut(tmpl template.Template, shareCodeStore ShareCodeStore, sessionStore SessionStore) page.Handler
func ParseHowYouWillConfirmYourIdentity ¶ added in v0.1548.0
func Register ¶
func Register( rootMux *http.ServeMux, logger Logger, commonTmpls, tmpls template.Templates, sessionStore SessionStore, oneLoginClient OneLoginClient, shareCodeStore ShareCodeStore, errorHandler page.ErrorHandler, certificateProviderStore CertificateProviderStore, addressClient AddressClient, notifyClient NotifyClient, shareCodeSender ShareCodeSender, dashboardStore DashboardStore, lpaStoreClient LpaStoreClient, lpaStoreResolvingService LpaStoreResolvingService, donorStore DonorStore, eventClient EventClient, scheduledStore ScheduledStore, appPublicURL string, )
Types ¶
type AddressClient ¶
type CertificateProviderStore ¶
type CertificateProviderStore interface { Create(ctx context.Context, shareCode sharecodedata.Link, email string) (*certificateproviderdata.Provided, error) Delete(ctx context.Context) error Get(ctx context.Context) (*certificateproviderdata.Provided, error) Put(ctx context.Context, certificateProvider *certificateproviderdata.Provided) error }
type DashboardStore ¶
type DonorStore ¶
type ErrorHandler ¶
type ErrorHandler func(http.ResponseWriter, *http.Request, error)
type EventClient ¶ added in v0.1460.0
type EventClient interface {
SendIdentityCheckMismatched(ctx context.Context, e event.IdentityCheckMismatched) error
}
type Handler ¶
type Handler func(data appcontext.Data, w http.ResponseWriter, r *http.Request, details *certificateproviderdata.Provided, lpa *lpadata.Lpa) error
func CompletingYourIdentityConfirmation ¶ added in v0.1554.0
func ConfirmDontWantToBeCertificateProvider ¶
func ConfirmDontWantToBeCertificateProvider(tmpl template.Template, lpaStoreClient LpaStoreClient, donorStore DonorStore, certificateProviderStore CertificateProviderStore, notifyClient NotifyClient, appPublicURL string) Handler
func ConfirmYourDetails ¶
func ConfirmYourDetails(tmpl template.Template, certificateProviderStore CertificateProviderStore) Handler
func ConfirmYourIdentity ¶ added in v0.1548.0
func ConfirmYourIdentity(tmpl template.Template, certificateProviderStore CertificateProviderStore) Handler
func EnterDateOfBirth ¶
func EnterDateOfBirth(tmpl template.Template, certificateProviderStore CertificateProviderStore) Handler
func HowWillYouConfirmYourIdentity ¶ added in v0.1548.0
func HowWillYouConfirmYourIdentity(tmpl template.Template, certificateProviderStore CertificateProviderStore) Handler
func IdentityWithOneLogin ¶
func IdentityWithOneLogin(oneLoginClient OneLoginClient, sessionStore SessionStore, randomString func(int) string) Handler
func IdentityWithOneLoginCallback ¶
func IdentityWithOneLoginCallback(oneLoginClient OneLoginClient, sessionStore SessionStore, certificateProviderStore CertificateProviderStore, notifyClient NotifyClient, lpaStoreClient LpaStoreClient, eventClient EventClient, appPublicURL string) Handler
func ProvideCertificate ¶
func ProvideCertificate( tmpl template.Template, certificateProviderStore CertificateProviderStore, notifyClient NotifyClient, shareCodeSender ShareCodeSender, lpaStoreClient LpaStoreClient, scheduledStore ScheduledStore, now func() time.Time, ) Handler
func ReadTheLpa ¶
func ReadTheLpa(tmpl template.Template, certificateProviderStore CertificateProviderStore) Handler
func WhatIsYourHomeAddress ¶
func WhatIsYourHomeAddress(logger Logger, tmpl template.Template, addressClient AddressClient, certificateProviderStore CertificateProviderStore) Handler
func YourPreferredLanguage ¶
func YourPreferredLanguage(tmpl template.Template, certificateProviderStore CertificateProviderStore) Handler
type LpaStoreClient ¶
type LpaStoreClient interface { SendCertificateProvider(ctx context.Context, certificateProvider *certificateproviderdata.Provided, lpa *lpadata.Lpa) error SendCertificateProviderConfirmIdentity(ctx context.Context, lpaUID string, certificateProvider *certificateproviderdata.Provided) error SendCertificateProviderOptOut(ctx context.Context, lpaUID string, actorUID actoruid.UID) error }
type NotifyClient ¶
type OneLoginClient ¶
type OneLoginClient interface { AuthCodeURL(state, nonce, locale string, identity bool) (string, error) Exchange(ctx context.Context, code, nonce string) (idToken, accessToken string, err error) UserInfo(ctx context.Context, accessToken string) (onelogin.UserInfo, error) ParseIdentityClaim(userInfo onelogin.UserInfo) (identity.UserData, error) }
type ScheduledStore ¶
type SessionStore ¶
type SessionStore interface { Login(r *http.Request) (*sesh.LoginSession, error) LpaData(r *http.Request) (*sesh.LpaDataSession, error) OneLogin(r *http.Request) (*sesh.OneLoginSession, error) SetLpaData(r *http.Request, w http.ResponseWriter, lpaDataSession *sesh.LpaDataSession) error SetLogin(r *http.Request, w http.ResponseWriter, session *sesh.LoginSession) error SetOneLogin(r *http.Request, w http.ResponseWriter, session *sesh.OneLoginSession) error }
type ShareCodeSender ¶
type ShareCodeSender interface {
}type ShareCodeStore ¶
type ShareCodeStore interface {}
Source Files ¶
- completing_your_identity_confirmation.go
- confirm_dont_want_to_be_certificate_provider.go
- confirm_dont_want_to_be_certificate_provider_logged_out.go
- confirm_your_details.go
- confirm_your_identity.go
- enter_date_of_birth.go
- enter_reference_number.go
- enter_reference_number_opt_out.go
- enum_howyouwillconfirmyouridentity.go
- guidance.go
- how_will_you_confirm_your_identity.go
- identity_with_one_login.go
- identity_with_one_login_callback.go
- provide_certificate.go
- read_the_lpa.go
- register.go
- task_list.go
- what_is_your_home_address.go
- your_preferred_language.go
Click to show internal directories.
Click to hide internal directories.