Documentation ¶
Index ¶
- type OloCredentials
- type OloSignature
- func (OloSignature) CaddyModule() caddy.ModuleInfo
- func (m *OloSignature) Provision(ctx caddy.Context) error
- func (m OloSignature) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error
- func (m *OloSignature) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
- func (m OloSignature) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OloCredentials ¶
type OloCredentials struct { ClientId string ClientSecret string // contains filtered or unexported fields }
func NewOloCredentials ¶
func NewOloCredentials(clientId string, clientSecret string) OloCredentials
type OloSignature ¶
type OloSignature struct { // OLO client ID used in header generation. ClientId string `json:"client_id,omitempty"` // OLO client secret for signing the request details. ClientSecret string `json:"client_secret,omitempty"` // contains filtered or unexported fields }
OLO client credentials required for Signature Authorization header generation.
Authorization: OloSignature {ClientId}:{Signature}
Signature is a Base64 encoded, signed hash of the following request components: Client ID HTTP Method Content-Type Base64 encoded, request body hash (SHA-256) Request URI Date in RFC1123 format
func (OloSignature) CaddyModule ¶
func (OloSignature) CaddyModule() caddy.ModuleInfo
func (*OloSignature) Provision ¶
func (m *OloSignature) Provision(ctx caddy.Context) error
func (OloSignature) ServeHTTP ¶
func (m OloSignature) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error
func (*OloSignature) UnmarshalCaddyfile ¶
func (m *OloSignature) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
func (OloSignature) Validate ¶
func (m OloSignature) Validate() error
Click to show internal directories.
Click to hide internal directories.