Documentation ¶
Index ¶
- type SelfServiceFrontEndImpl
- func (sfe *SelfServiceFrontEndImpl) BuildID(response http.ResponseWriter, request *http.Request)
- func (sfe *SelfServiceFrontEndImpl) Handler(stats prometheus.Registerer, oTelHTTPOptions ...otelhttp.Option) http.Handler
- func (sfe *SelfServiceFrontEndImpl) Index(response http.ResponseWriter, request *http.Request)
- func (sfe *SelfServiceFrontEndImpl) UnpauseForm(response http.ResponseWriter, request *http.Request)
- func (sfe *SelfServiceFrontEndImpl) UnpauseStatus(response http.ResponseWriter, request *http.Request)
- func (sfe *SelfServiceFrontEndImpl) UnpauseSubmit(response http.ResponseWriter, request *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SelfServiceFrontEndImpl ¶
type SelfServiceFrontEndImpl struct {
// contains filtered or unexported fields
}
SelfServiceFrontEndImpl provides all the logic for Boulder's selfservice frontend web-facing interface, i.e., a portal where a subscriber can unpause their account. Its methods are primarily handlers for HTTPS requests for the various non-ACME functions.
func NewSelfServiceFrontEndImpl ¶
func NewSelfServiceFrontEndImpl( stats prometheus.Registerer, clk clock.Clock, logger blog.Logger, requestTimeout time.Duration, rac rapb.RegistrationAuthorityClient, sac sapb.StorageAuthorityReadOnlyClient, unpauseHMACKey []byte, ) (SelfServiceFrontEndImpl, error)
NewSelfServiceFrontEndImpl constructs a web service for Boulder
func (*SelfServiceFrontEndImpl) BuildID ¶
func (sfe *SelfServiceFrontEndImpl) BuildID(response http.ResponseWriter, request *http.Request)
BuildID tells the requester what boulder build version is running.
func (*SelfServiceFrontEndImpl) Handler ¶
func (sfe *SelfServiceFrontEndImpl) Handler(stats prometheus.Registerer, oTelHTTPOptions ...otelhttp.Option) http.Handler
Handler returns an http.Handler that uses various functions for various non-ACME-specified paths. Each endpoint should have a corresponding HTML page that shares the same name as the endpoint.
func (*SelfServiceFrontEndImpl) Index ¶
func (sfe *SelfServiceFrontEndImpl) Index(response http.ResponseWriter, request *http.Request)
Index is the homepage of the SFE
func (*SelfServiceFrontEndImpl) UnpauseForm ¶
func (sfe *SelfServiceFrontEndImpl) UnpauseForm(response http.ResponseWriter, request *http.Request)
UnpauseForm allows a requester to unpause their account via a form present on the page. The Subscriber's client will receive a log line emitted by the WFE which contains a URL pre-filled with a JWT that will populate a hidden field in this form.
func (*SelfServiceFrontEndImpl) UnpauseStatus ¶
func (sfe *SelfServiceFrontEndImpl) UnpauseStatus(response http.ResponseWriter, request *http.Request)
UnpauseStatus displays a success message to the Subscriber indicating that their account has been unpaused.
func (*SelfServiceFrontEndImpl) UnpauseSubmit ¶
func (sfe *SelfServiceFrontEndImpl) UnpauseSubmit(response http.ResponseWriter, request *http.Request)
UnpauseSubmit serves a page showing the result of the unpause form submission. CSRF is not addressed because a third party causing submission of an unpause form is not harmful.