Documentation ¶
Index ¶
- Variables
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetEnableServiceTokenCreation() bool
- func (x *Config) GetOidc() *OIDC
- func (x *Config) GetSessionSecret() string
- func (m *Config) GetType() isConfig_Type
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- func (m *Config) Validate() error
- func (m *Config) ValidateAll() error
- type ConfigMultiError
- type ConfigValidationError
- type Config_Oidc
- type OIDC
- func (*OIDC) Descriptor() ([]byte, []int)deprecated
- func (x *OIDC) GetClientId() string
- func (x *OIDC) GetClientSecret() string
- func (x *OIDC) GetGroupsClaimNameOverride() string
- func (x *OIDC) GetIssuer() string
- func (x *OIDC) GetRedirectUrl() string
- func (x *OIDC) GetScopes() []string
- func (x *OIDC) GetSubjectClaimNameOverride() string
- func (*OIDC) ProtoMessage()
- func (x *OIDC) ProtoReflect() protoreflect.Message
- func (x *OIDC) Reset()
- func (x *OIDC) String() string
- func (m *OIDC) Validate() error
- func (m *OIDC) ValidateAll() error
- type OIDCMultiError
- type OIDCValidationError
- type StorageConfig
- func (*StorageConfig) Descriptor() ([]byte, []int)deprecated
- func (x *StorageConfig) GetEncryptionPassphrase() string
- func (*StorageConfig) ProtoMessage()
- func (x *StorageConfig) ProtoReflect() protoreflect.Message
- func (x *StorageConfig) Reset()
- func (x *StorageConfig) String() string
- func (m *StorageConfig) Validate() error
- func (m *StorageConfig) ValidateAll() error
- type StorageConfigMultiError
- type StorageConfigValidationError
- func (e StorageConfigValidationError) Cause() error
- func (e StorageConfigValidationError) Error() string
- func (e StorageConfigValidationError) ErrorName() string
- func (e StorageConfigValidationError) Field() string
- func (e StorageConfigValidationError) Key() bool
- func (e StorageConfigValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_config_service_authn_v1_authn_proto protoreflect.FileDescriptor
var File_config_service_authn_v1_storage_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Used to sign the nonce or any other JWT secrets. SessionSecret string `protobuf:"bytes,1,opt,name=session_secret,json=sessionSecret,proto3" json:"session_secret,omitempty"` // Types that are assignable to Type: // // *Config_Oidc Type isConfig_Type `protobuf_oneof:"type"` // Whether to permit service tokens to be issued. In addition to setting this flag // a token store must be configured. EnableServiceTokenCreation bool `` /* 144-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetEnableServiceTokenCreation ¶
func (*Config) GetSessionSecret ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
func (*Config) Validate ¶
Validate checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Config) ValidateAll ¶
ValidateAll checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigMultiError, or nil if none found.
type ConfigMultiError ¶
type ConfigMultiError []error
ConfigMultiError is an error wrapping multiple validation errors returned by Config.ValidateAll() if the designated constraints aren't met.
func (ConfigMultiError) AllErrors ¶
func (m ConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConfigMultiError) Error ¶
func (m ConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConfigValidationError ¶
type ConfigValidationError struct {
// contains filtered or unexported fields
}
ConfigValidationError is the validation error returned by Config.Validate if the designated constraints aren't met.
func (ConfigValidationError) Cause ¶
func (e ConfigValidationError) Cause() error
Cause function returns cause value.
func (ConfigValidationError) Error ¶
func (e ConfigValidationError) Error() string
Error satisfies the builtin error interface
func (ConfigValidationError) ErrorName ¶
func (e ConfigValidationError) ErrorName() string
ErrorName returns error name.
func (ConfigValidationError) Field ¶
func (e ConfigValidationError) Field() string
Field function returns field value.
func (ConfigValidationError) Key ¶
func (e ConfigValidationError) Key() bool
Key function returns key value.
func (ConfigValidationError) Reason ¶
func (e ConfigValidationError) Reason() string
Reason function returns reason value.
type Config_Oidc ¶
type Config_Oidc struct {
Oidc *OIDC `protobuf:"bytes,2,opt,name=oidc,proto3,oneof"`
}
type OIDC ¶
type OIDC struct { Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` ClientSecret string `protobuf:"bytes,3,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` RedirectUrl string `protobuf:"bytes,4,opt,name=redirect_url,json=redirectUrl,proto3" json:"redirect_url,omitempty"` Scopes []string `protobuf:"bytes,5,rep,name=scopes,proto3" json:"scopes,omitempty"` // The subject is mapped from the JWT token's email claim by default. // Set this field to the JWT token's claim name to override the subject. SubjectClaimNameOverride string `` /* 137-byte string literal not displayed */ // Groups are not mapped by default. // Set this field to the JWT token's group claim name to override the groups. GroupsClaimNameOverride string `` /* 134-byte string literal not displayed */ // contains filtered or unexported fields }
func (*OIDC) Descriptor
deprecated
func (*OIDC) GetClientId ¶
func (*OIDC) GetClientSecret ¶
func (*OIDC) GetGroupsClaimNameOverride ¶
func (*OIDC) GetRedirectUrl ¶
func (*OIDC) GetSubjectClaimNameOverride ¶
func (*OIDC) ProtoMessage ¶
func (*OIDC) ProtoMessage()
func (*OIDC) ProtoReflect ¶
func (x *OIDC) ProtoReflect() protoreflect.Message
func (*OIDC) Validate ¶
Validate checks the field values on OIDC with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*OIDC) ValidateAll ¶
ValidateAll checks the field values on OIDC with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OIDCMultiError, or nil if none found.
type OIDCMultiError ¶
type OIDCMultiError []error
OIDCMultiError is an error wrapping multiple validation errors returned by OIDC.ValidateAll() if the designated constraints aren't met.
func (OIDCMultiError) AllErrors ¶
func (m OIDCMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (OIDCMultiError) Error ¶
func (m OIDCMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type OIDCValidationError ¶
type OIDCValidationError struct {
// contains filtered or unexported fields
}
OIDCValidationError is the validation error returned by OIDC.Validate if the designated constraints aren't met.
func (OIDCValidationError) Cause ¶
func (e OIDCValidationError) Cause() error
Cause function returns cause value.
func (OIDCValidationError) Error ¶
func (e OIDCValidationError) Error() string
Error satisfies the builtin error interface
func (OIDCValidationError) ErrorName ¶
func (e OIDCValidationError) ErrorName() string
ErrorName returns error name.
func (OIDCValidationError) Field ¶
func (e OIDCValidationError) Field() string
Field function returns field value.
func (OIDCValidationError) Key ¶
func (e OIDCValidationError) Key() bool
Key function returns key value.
func (OIDCValidationError) Reason ¶
func (e OIDCValidationError) Reason() string
Reason function returns reason value.
type StorageConfig ¶
type StorageConfig struct { // Encryption passphrase for credentials stored in the database. EncryptionPassphrase string `protobuf:"bytes,1,opt,name=encryption_passphrase,json=encryptionPassphrase,proto3" json:"encryption_passphrase,omitempty"` // contains filtered or unexported fields }
func (*StorageConfig) Descriptor
deprecated
func (*StorageConfig) Descriptor() ([]byte, []int)
Deprecated: Use StorageConfig.ProtoReflect.Descriptor instead.
func (*StorageConfig) GetEncryptionPassphrase ¶
func (x *StorageConfig) GetEncryptionPassphrase() string
func (*StorageConfig) ProtoMessage ¶
func (*StorageConfig) ProtoMessage()
func (*StorageConfig) ProtoReflect ¶
func (x *StorageConfig) ProtoReflect() protoreflect.Message
func (*StorageConfig) Reset ¶
func (x *StorageConfig) Reset()
func (*StorageConfig) String ¶
func (x *StorageConfig) String() string
func (*StorageConfig) Validate ¶
func (m *StorageConfig) Validate() error
Validate checks the field values on StorageConfig with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*StorageConfig) ValidateAll ¶
func (m *StorageConfig) ValidateAll() error
ValidateAll checks the field values on StorageConfig with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StorageConfigMultiError, or nil if none found.
type StorageConfigMultiError ¶
type StorageConfigMultiError []error
StorageConfigMultiError is an error wrapping multiple validation errors returned by StorageConfig.ValidateAll() if the designated constraints aren't met.
func (StorageConfigMultiError) AllErrors ¶
func (m StorageConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StorageConfigMultiError) Error ¶
func (m StorageConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StorageConfigValidationError ¶
type StorageConfigValidationError struct {
// contains filtered or unexported fields
}
StorageConfigValidationError is the validation error returned by StorageConfig.Validate if the designated constraints aren't met.
func (StorageConfigValidationError) Cause ¶
func (e StorageConfigValidationError) Cause() error
Cause function returns cause value.
func (StorageConfigValidationError) Error ¶
func (e StorageConfigValidationError) Error() string
Error satisfies the builtin error interface
func (StorageConfigValidationError) ErrorName ¶
func (e StorageConfigValidationError) ErrorName() string
ErrorName returns error name.
func (StorageConfigValidationError) Field ¶
func (e StorageConfigValidationError) Field() string
Field function returns field value.
func (StorageConfigValidationError) Key ¶
func (e StorageConfigValidationError) Key() bool
Key function returns key value.
func (StorageConfigValidationError) Reason ¶
func (e StorageConfigValidationError) Reason() string
Reason function returns reason value.