Documentation ¶
Index ¶
- func ConfirmDontWantToBeCertificateProvider(tmpl template.Template, lpaStoreResolvingService LpaStoreResolvingService, ...) page.Handler
- func ConfirmDontWantToBeCertificateProviderLoggedOut(tmpl template.Template, shareCodeStore ShareCodeStore, ...) page.Handler
- func ConfirmYourDetails(tmpl template.Template, lpaStoreResolvingService LpaStoreResolvingService, ...) page.Handler
- func EnterDateOfBirth(tmpl template.Template, lpaStoreResolvingService LpaStoreResolvingService, ...) page.Handler
- func EnterReferenceNumber(tmpl template.Template, shareCodeStore ShareCodeStore, ...) page.Handler
- func EnterReferenceNumberOptOut(tmpl template.Template, shareCodeStore ShareCodeStore, ...) page.Handler
- func Guidance(tmpl template.Template, lpaStoreResolvingService LpaStoreResolvingService, ...) page.Handler
- func IdentityWithOneLogin(oneLoginClient OneLoginClient, sessionStore SessionStore, ...) page.Handler
- func IdentityWithOneLoginCallback(tmpl template.Template, oneLoginClient OneLoginClient, ...) page.Handler
- func ProvideCertificate(tmpl template.Template, lpaStoreResolvingService LpaStoreResolvingService, ...) page.Handler
- func ReadTheLpa(tmpl template.Template, lpaStoreResolvingService LpaStoreResolvingService, ...) page.Handler
- func Register(rootMux *http.ServeMux, logger Logger, commonTmpls, tmpls template.Templates, ...)
- func TaskList(tmpl template.Template, lpaStoreResolvingService LpaStoreResolvingService, ...) page.Handler
- func WhatIsYourHomeAddress(logger Logger, tmpl template.Template, addressClient AddressClient, ...) page.Handler
- func YouHaveDecidedNotToBeACertificateProvider(tmpl template.Template) page.Handler
- func YourPreferredLanguage(tmpl template.Template, certificateProviderStore CertificateProviderStore, ...) page.Handler
- type AddressClient
- type CertificateProviderStore
- type DashboardStore
- type DonorStore
- type ErrorHandler
- type Localizer
- type Logger
- type LpaStoreClient
- type LpaStoreResolvingService
- type NotifyClient
- type OneLoginClient
- type SessionStore
- type ShareCodeSender
- type ShareCodeStore
- type Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfirmDontWantToBeCertificateProvider ¶ added in v0.1181.0
func ConfirmDontWantToBeCertificateProvider(tmpl template.Template, lpaStoreResolvingService LpaStoreResolvingService, lpaStoreClient LpaStoreClient, donorStore DonorStore, certificateProviderStore CertificateProviderStore, notifyClient NotifyClient, appPublicURL string) page.Handler
func ConfirmDontWantToBeCertificateProviderLoggedOut ¶ added in v0.1181.0
func ConfirmDontWantToBeCertificateProviderLoggedOut(tmpl template.Template, shareCodeStore ShareCodeStore, lpaStoreResolvingService LpaStoreResolvingService, lpaStoreClient LpaStoreClient, donorStore DonorStore, sessionStore SessionStore, notifyClient NotifyClient, appPublicURL string) page.Handler
func ConfirmYourDetails ¶
func ConfirmYourDetails(tmpl template.Template, lpaStoreResolvingService LpaStoreResolvingService, certificateProviderStore CertificateProviderStore) page.Handler
func EnterDateOfBirth ¶
func EnterDateOfBirth(tmpl template.Template, lpaStoreResolvingService LpaStoreResolvingService, certificateProviderStore CertificateProviderStore) page.Handler
func EnterReferenceNumber ¶
func EnterReferenceNumber(tmpl template.Template, shareCodeStore ShareCodeStore, sessionStore SessionStore, certificateProviderStore CertificateProviderStore) page.Handler
func EnterReferenceNumberOptOut ¶ added in v0.1181.0
func EnterReferenceNumberOptOut(tmpl template.Template, shareCodeStore ShareCodeStore, sessionStore SessionStore) page.Handler
func Guidance ¶
func Guidance(tmpl template.Template, lpaStoreResolvingService LpaStoreResolvingService, certificateProviderStore CertificateProviderStore) page.Handler
func IdentityWithOneLogin ¶
func IdentityWithOneLogin(oneLoginClient OneLoginClient, sessionStore SessionStore, randomString func(int) string) page.Handler
func IdentityWithOneLoginCallback ¶
func IdentityWithOneLoginCallback(tmpl template.Template, oneLoginClient OneLoginClient, sessionStore SessionStore, certificateProviderStore CertificateProviderStore, lpaStoreResolvingService LpaStoreResolvingService, lpaStoreClient LpaStoreClient) page.Handler
func ProvideCertificate ¶
func ProvideCertificate( tmpl template.Template, lpaStoreResolvingService LpaStoreResolvingService, certificateProviderStore CertificateProviderStore, notifyClient NotifyClient, shareCodeSender ShareCodeSender, lpaStoreClient LpaStoreClient, now func() time.Time, ) page.Handler
func ReadTheLpa ¶
func ReadTheLpa(tmpl template.Template, lpaStoreResolvingService LpaStoreResolvingService, certificateProviderStore CertificateProviderStore) page.Handler
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, appPublicURL string, )
func TaskList ¶
func TaskList(tmpl template.Template, lpaStoreResolvingService LpaStoreResolvingService, certificateProviderStore CertificateProviderStore) page.Handler
func WhatIsYourHomeAddress ¶ added in v0.834.0
func WhatIsYourHomeAddress(logger Logger, tmpl template.Template, addressClient AddressClient, certificateProviderStore CertificateProviderStore) page.Handler
func YouHaveDecidedNotToBeACertificateProvider ¶ added in v0.1181.0
func YourPreferredLanguage ¶ added in v0.884.0
func YourPreferredLanguage(tmpl template.Template, certificateProviderStore CertificateProviderStore, lpaStoreResolvingService LpaStoreResolvingService) page.Handler
Types ¶
type AddressClient ¶ added in v0.834.0
type CertificateProviderStore ¶
type CertificateProviderStore interface { Create(ctx context.Context, shareCode actor.ShareCodeData, email string) (*actor.CertificateProviderProvidedDetails, error) Delete(ctx context.Context) error Get(ctx context.Context) (*actor.CertificateProviderProvidedDetails, error) Put(ctx context.Context, certificateProvider *actor.CertificateProviderProvidedDetails) error }
type DashboardStore ¶ added in v0.899.0
type DonorStore ¶
type DonorStore interface { GetAny(ctx context.Context) (*actor.DonorProvidedDetails, error) Put(ctx context.Context, donor *actor.DonorProvidedDetails) error }
type ErrorHandler ¶ added in v0.930.0
type ErrorHandler func(http.ResponseWriter, *http.Request, error)
type LpaStoreClient ¶ added in v0.922.0
type LpaStoreClient interface { SendCertificateProvider(ctx context.Context, certificateProvider *actor.CertificateProviderProvidedDetails, lpa *lpastore.Lpa) error SendCertificateProviderConfirmIdentity(ctx context.Context, lpaUID string, certificateProvider *actor.CertificateProviderProvidedDetails) error SendCertificateProviderOptOut(ctx context.Context, lpaUID string, actorUID actoruid.UID) error }
type LpaStoreResolvingService ¶ added in v0.1116.0
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(ctx context.Context, userInfo onelogin.UserInfo) (identity.UserData, error) }
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 ¶ added in v0.881.0
type ShareCodeSender interface {
}type ShareCodeStore ¶
type ShareCodeStore interface {}
Source Files ¶
- confirm_dont_want_to_be_certificate_provider.go
- confirm_dont_want_to_be_certificate_provider_logged_out.go
- confirm_your_details.go
- enter_date_of_birth.go
- enter_reference_number.go
- enter_reference_number_opt_out.go
- guidance.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
- you_have_decided_not_to_be_a_certificate_provider.go
- your_preferred_language.go
Click to show internal directories.
Click to hide internal directories.