Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BootstrapConfig ¶
type BootstrapConfig struct {
DocumentSDSVaultURL string
KeySDSVaultURL string
AuthZKeyServerURL string
OpsKeyServerURL string
}
BootstrapConfig holds user bootstrap-related config.
type BootstrapData ¶
type BootstrapData struct {
DocumentSDSVaultURL string `json:"documentSDSURL"`
KeySDSVaultURL string `json:"keySDSURL"`
AuthZKeyServerURL string `json:"authzKeyServerURL"`
OpsKeyServerURL string `json:"opsKeyServerURL"`
Data map[string]string `json:"data,omitempty"`
}
BootstrapData is the user's bootstrap data.
type Config ¶
type Config struct {
TLSConfig *tls.Config
RequestTokens map[string]string
OIDC *oidcmodel.Config
UIEndpoint string
TransientStoreProvider storage.Provider
StoreProvider storage.Provider
BootstrapConfig *BootstrapConfig
Hydra Hydra
DeviceRootCerts []string
DeviceCertSystemPool bool
Cookies *CookieConfig
StartupTimeout uint64
SecretsToken string
}
Config defines configuration for rp operations.
type CookieConfig ¶
CookieConfig holds cookie configuration.
type GetSecretResponse ¶
type GetSecretResponse struct {
Secret string `json:"secret"`
}
GetSecretResponse is the response's payload to a request to get a secret.
type Hydra ¶
type Hydra interface {
GetLoginRequest(params *admin.GetLoginRequestParams, opts ...admin.ClientOption) (*admin.GetLoginRequestOK, error)
AcceptLoginRequest(params *admin.AcceptLoginRequestParams,
opts ...admin.ClientOption) (*admin.AcceptLoginRequestOK, error)
GetConsentRequest(params *admin.GetConsentRequestParams,
opts ...admin.ClientOption) (*admin.GetConsentRequestOK, error)
AcceptConsentRequest(params *admin.AcceptConsentRequestParams,
opts ...admin.ClientOption) (*admin.AcceptConsentRequestOK, error)
IntrospectOAuth2Token(params *admin.IntrospectOAuth2TokenParams,
opts ...admin.ClientOption) (*admin.IntrospectOAuth2TokenOK, error)
}
Hydra is the client used to interface with the Hydra service.
type Operation ¶
type Operation struct {
// contains filtered or unexported fields
}
Operation defines handlers.
func (*Operation) GetRESTHandlers ¶
GetRESTHandlers get all controller API handler available for this service.
func (*Operation) SetIntrospectHandler ¶
func (o *Operation) SetIntrospectHandler(i common.Introspecter)
SetIntrospectHandler sets the GNAP introspection handler for Operation's APIs.
type SetSecretRequest ¶
type SetSecretRequest struct {
Secret []byte `json:"secret"`
}
SetSecretRequest is the payload of a request to set a secret.
type UpdateBootstrapDataRequest ¶
UpdateBootstrapDataRequest is a request to update bootstrap data.