authnv1

package
v0.0.0-...-9a5b211 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2023 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_config_service_authn_v1_authn_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetEnableServiceTokenCreation

func (x *Config) GetEnableServiceTokenCreation() bool

func (*Config) GetOidc

func (x *Config) GetOidc() *OIDC

func (*Config) GetSessionSecret

func (x *Config) GetSessionSecret() string

func (*Config) GetType

func (m *Config) GetType() isConfig_Type

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

func (*Config) Validate

func (m *Config) Validate() error

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

func (m *Config) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use OIDC.ProtoReflect.Descriptor instead.

func (*OIDC) GetClientId

func (x *OIDC) GetClientId() string

func (*OIDC) GetClientSecret

func (x *OIDC) GetClientSecret() string

func (*OIDC) GetGroupsClaimNameOverride

func (x *OIDC) GetGroupsClaimNameOverride() string

func (*OIDC) GetIssuer

func (x *OIDC) GetIssuer() string

func (*OIDC) GetRedirectUrl

func (x *OIDC) GetRedirectUrl() string

func (*OIDC) GetScopes

func (x *OIDC) GetScopes() []string

func (*OIDC) GetSubjectClaimNameOverride

func (x *OIDC) GetSubjectClaimNameOverride() string

func (*OIDC) ProtoMessage

func (*OIDC) ProtoMessage()

func (*OIDC) ProtoReflect

func (x *OIDC) ProtoReflect() protoreflect.Message

func (*OIDC) Reset

func (x *OIDC) Reset()

func (*OIDC) String

func (x *OIDC) String() string

func (*OIDC) Validate

func (m *OIDC) Validate() error

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

func (m *OIDC) ValidateAll() error

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

Cause function returns cause value.

func (StorageConfigValidationError) Error

Error satisfies the builtin error interface

func (StorageConfigValidationError) ErrorName

func (e StorageConfigValidationError) ErrorName() string

ErrorName returns error name.

func (StorageConfigValidationError) Field

Field function returns field value.

func (StorageConfigValidationError) Key

Key function returns key value.

func (StorageConfigValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL