Documentation ¶
Index ¶
- Variables
- func ErrorSecurityErrorReasonBearerTokenMissing(format string, args ...interface{}) *errors.Error
- func ErrorSecurityErrorReasonGetKeyFailed(format string, args ...interface{}) *errors.Error
- func ErrorSecurityErrorReasonInvalidAtHash(format string, args ...interface{}) *errors.Error
- func ErrorSecurityErrorReasonInvalidAudience(format string, args ...interface{}) *errors.Error
- func ErrorSecurityErrorReasonInvalidAuthentication(format string, args ...interface{}) *errors.Error
- func ErrorSecurityErrorReasonInvalidAuthorization(format string, args ...interface{}) *errors.Error
- func ErrorSecurityErrorReasonInvalidBearerToken(format string, args ...interface{}) *errors.Error
- func ErrorSecurityErrorReasonInvalidClaims(format string, args ...interface{}) *errors.Error
- func ErrorSecurityErrorReasonInvalidExpiration(format string, args ...interface{}) *errors.Error
- func ErrorSecurityErrorReasonInvalidIssuer(format string, args ...interface{}) *errors.Error
- func ErrorSecurityErrorReasonInvalidSubject(format string, args ...interface{}) *errors.Error
- func ErrorSecurityErrorReasonMissingKeyFunc(format string, args ...interface{}) *errors.Error
- func ErrorSecurityErrorReasonNoAtHash(format string, args ...interface{}) *errors.Error
- func ErrorSecurityErrorReasonSignTokenFailed(format string, args ...interface{}) *errors.Error
- func ErrorSecurityErrorReasonTokenExpired(format string, args ...interface{}) *errors.Error
- func ErrorSecurityErrorReasonTokenNotFound(format string, args ...interface{}) *errors.Error
- func ErrorSecurityErrorReasonUnsecurityEnticated(format string, args ...interface{}) *errors.Error
- func ErrorSecurityErrorReasonUnspecified(format string, args ...interface{}) *errors.Error
- func ErrorSecurityErrorReasonUnsupportedSigningMethod(format string, args ...interface{}) *errors.Error
- func IsSecurityErrorReasonBearerTokenMissing(err error) bool
- func IsSecurityErrorReasonGetKeyFailed(err error) bool
- func IsSecurityErrorReasonInvalidAtHash(err error) bool
- func IsSecurityErrorReasonInvalidAudience(err error) bool
- func IsSecurityErrorReasonInvalidAuthentication(err error) bool
- func IsSecurityErrorReasonInvalidAuthorization(err error) bool
- func IsSecurityErrorReasonInvalidBearerToken(err error) bool
- func IsSecurityErrorReasonInvalidClaims(err error) bool
- func IsSecurityErrorReasonInvalidExpiration(err error) bool
- func IsSecurityErrorReasonInvalidIssuer(err error) bool
- func IsSecurityErrorReasonInvalidSubject(err error) bool
- func IsSecurityErrorReasonMissingKeyFunc(err error) bool
- func IsSecurityErrorReasonNoAtHash(err error) bool
- func IsSecurityErrorReasonSignTokenFailed(err error) bool
- func IsSecurityErrorReasonTokenExpired(err error) bool
- func IsSecurityErrorReasonTokenNotFound(err error) bool
- func IsSecurityErrorReasonUnsecurityEnticated(err error) bool
- func IsSecurityErrorReasonUnspecified(err error) bool
- func IsSecurityErrorReasonUnsupportedSigningMethod(err error) bool
- type ApiKeyAuth
- func (*ApiKeyAuth) Descriptor() ([]byte, []int)deprecated
- func (x *ApiKeyAuth) GetApiKey() string
- func (*ApiKeyAuth) ProtoMessage()
- func (x *ApiKeyAuth) ProtoReflect() protoreflect.Message
- func (x *ApiKeyAuth) Reset()
- func (x *ApiKeyAuth) String() string
- func (m *ApiKeyAuth) Validate() error
- func (m *ApiKeyAuth) ValidateAll() error
- type ApiKeyAuthMultiError
- type ApiKeyAuthValidationError
- type AuthN
- func (*AuthN) Descriptor() ([]byte, []int)deprecated
- func (x *AuthN) GetAdditional() *anypb.Any
- func (x *AuthN) GetApiKey() *ApiKeyAuth
- func (x *AuthN) GetBasic() *BasicAuth
- func (x *AuthN) GetBearer() *BearerAuth
- func (x *AuthN) GetDigest() *DigestAuth
- func (x *AuthN) GetJwt() *JwtAuth
- func (x *AuthN) GetOauth2() *OAuth2Auth
- func (x *AuthN) GetType() AuthN_Type
- func (*AuthN) ProtoMessage()
- func (x *AuthN) ProtoReflect() protoreflect.Message
- func (x *AuthN) Reset()
- func (x *AuthN) String() string
- func (m *AuthN) Validate() error
- func (m *AuthN) ValidateAll() error
- type AuthNMultiError
- type AuthNValidationError
- type AuthN_Type
- type AuthZ
- func (*AuthZ) Descriptor() ([]byte, []int)deprecated
- func (x *AuthZ) GetCasbin() *CasbinAuth
- func (x *AuthZ) GetId() string
- func (x *AuthZ) GetRoles() []string
- func (x *AuthZ) GetRoot() bool
- func (x *AuthZ) GetTimestamp() int64
- func (x *AuthZ) GetUserType() string
- func (x *AuthZ) GetUsername() string
- func (*AuthZ) ProtoMessage()
- func (x *AuthZ) ProtoReflect() protoreflect.Message
- func (x *AuthZ) Reset()
- func (x *AuthZ) String() string
- func (m *AuthZ) Validate() error
- func (m *AuthZ) ValidateAll() error
- type AuthZMultiError
- type AuthZValidationError
- type BasicAuth
- func (*BasicAuth) Descriptor() ([]byte, []int)deprecated
- func (x *BasicAuth) GetPassword() string
- func (x *BasicAuth) GetUsername() string
- func (*BasicAuth) ProtoMessage()
- func (x *BasicAuth) ProtoReflect() protoreflect.Message
- func (x *BasicAuth) Reset()
- func (x *BasicAuth) String() string
- func (m *BasicAuth) Validate() error
- func (m *BasicAuth) ValidateAll() error
- type BasicAuthMultiError
- type BasicAuthValidationError
- type BearerAuth
- func (*BearerAuth) Descriptor() ([]byte, []int)deprecated
- func (x *BearerAuth) GetToken() string
- func (*BearerAuth) ProtoMessage()
- func (x *BearerAuth) ProtoReflect() protoreflect.Message
- func (x *BearerAuth) Reset()
- func (x *BearerAuth) String() string
- func (m *BearerAuth) Validate() error
- func (m *BearerAuth) ValidateAll() error
- type BearerAuthMultiError
- type BearerAuthValidationError
- type CasbinAuth
- func (*CasbinAuth) Descriptor() ([]byte, []int)deprecated
- func (x *CasbinAuth) GetClaims() *Claims
- func (x *CasbinAuth) GetPolicy() *v11.Policy
- func (*CasbinAuth) ProtoMessage()
- func (x *CasbinAuth) ProtoReflect() protoreflect.Message
- func (x *CasbinAuth) Reset()
- func (x *CasbinAuth) String() string
- func (m *CasbinAuth) Validate() error
- func (m *CasbinAuth) ValidateAll() error
- type CasbinAuthMultiError
- type CasbinAuthValidationError
- type Claims
- func (*Claims) Descriptor() ([]byte, []int)deprecated
- func (x *Claims) GetAud() []string
- func (x *Claims) GetExp() int64
- func (x *Claims) GetIat() int64
- func (x *Claims) GetIss() string
- func (x *Claims) GetJti() string
- func (x *Claims) GetNbf() int64
- func (x *Claims) GetScopes() map[string]bool
- func (x *Claims) GetSub() string
- func (*Claims) ProtoMessage()
- func (x *Claims) ProtoReflect() protoreflect.Message
- func (x *Claims) Reset()
- func (x *Claims) String() string
- func (m *Claims) Validate() error
- func (m *Claims) ValidateAll() error
- type ClaimsMultiError
- type ClaimsValidationError
- type DigestAuth
- func (*DigestAuth) Descriptor() ([]byte, []int)deprecated
- func (x *DigestAuth) GetAlgorithm() string
- func (x *DigestAuth) GetCnonce() string
- func (x *DigestAuth) GetNc() string
- func (x *DigestAuth) GetNonce() string
- func (x *DigestAuth) GetQop() string
- func (x *DigestAuth) GetRealm() string
- func (x *DigestAuth) GetResponse() string
- func (x *DigestAuth) GetUri() string
- func (x *DigestAuth) GetUsername() string
- func (*DigestAuth) ProtoMessage()
- func (x *DigestAuth) ProtoReflect() protoreflect.Message
- func (x *DigestAuth) Reset()
- func (x *DigestAuth) String() string
- func (m *DigestAuth) Validate() error
- func (m *DigestAuth) ValidateAll() error
- type DigestAuthMultiError
- type DigestAuthValidationError
- type JwtAuth
- func (*JwtAuth) Descriptor() ([]byte, []int)deprecated
- func (x *JwtAuth) GetClaims() *Claims
- func (x *JwtAuth) GetJwtToken() *v1.Token
- func (x *JwtAuth) GetToken() string
- func (*JwtAuth) ProtoMessage()
- func (x *JwtAuth) ProtoReflect() protoreflect.Message
- func (x *JwtAuth) Reset()
- func (x *JwtAuth) String() string
- func (m *JwtAuth) Validate() error
- func (m *JwtAuth) ValidateAll() error
- type JwtAuthMultiError
- type JwtAuthValidationError
- type OAuth2Auth
- func (*OAuth2Auth) Descriptor() ([]byte, []int)deprecated
- func (x *OAuth2Auth) GetAccessToken() string
- func (x *OAuth2Auth) GetExpiresIn() int32
- func (x *OAuth2Auth) GetRefreshToken() string
- func (x *OAuth2Auth) GetScope() []string
- func (x *OAuth2Auth) GetTokenType() string
- func (*OAuth2Auth) ProtoMessage()
- func (x *OAuth2Auth) ProtoReflect() protoreflect.Message
- func (x *OAuth2Auth) Reset()
- func (x *OAuth2Auth) String() string
- func (m *OAuth2Auth) Validate() error
- func (m *OAuth2Auth) ValidateAll() error
- type OAuth2AuthMultiError
- type OAuth2AuthValidationError
- type SecurityErrorReason
- func (SecurityErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x SecurityErrorReason) Enum() *SecurityErrorReason
- func (SecurityErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x SecurityErrorReason) Number() protoreflect.EnumNumber
- func (x SecurityErrorReason) String() string
- func (SecurityErrorReason) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
var ( AuthN_Type_name = map[int32]string{ 0: "TYPE_UNSPECIFIED", 1: "TYPE_BASIC", 2: "TYPE_BEARER", 3: "TYPE_DIGEST", 4: "TYPE_OAUTH2", 5: "TYPE_API_KEY", 6: "TYPE_JWT", 7: "TYPE_USER_ADDITIONAL", } AuthN_Type_value = map[string]int32{ "TYPE_UNSPECIFIED": 0, "TYPE_BASIC": 1, "TYPE_BEARER": 2, "TYPE_DIGEST": 3, "TYPE_OAUTH2": 4, "TYPE_API_KEY": 5, "TYPE_JWT": 6, "TYPE_USER_ADDITIONAL": 7, } )
Enum value maps for AuthN_Type.
var ( SecurityErrorReason_name = map[int32]string{ 0: "SECURITY_ERROR_REASON_UNSPECIFIED", 1000: "SECURITY_ERROR_REASON_INVALID_AUTHENTICATION", 1001: "SECURITY_ERROR_REASON_INVALID_CLAIMS", 1002: "SECURITY_ERROR_REASON_INVALID_BEARER_TOKEN", 1003: "SECURITY_ERROR_REASON_INVALID_SUBJECT", 1004: "SECURITY_ERROR_REASON_INVALID_AUDIENCE", 1005: "SECURITY_ERROR_REASON_INVALID_ISSUER", 1006: "SECURITY_ERROR_REASON_INVALID_EXPIRATION", 1007: "SECURITY_ERROR_REASON_TOKEN_NOT_FOUND", 1010: "SECURITY_ERROR_REASON_BEARER_TOKEN_MISSING", 1011: "SECURITY_ERROR_REASON_TOKEN_EXPIRED", 1012: "SECURITY_ERROR_REASON_UNSUPPORTED_SIGNING_METHOD", 1014: "SECURITY_ERROR_REASON_MISSING_KEY_FUNC", 1015: "SECURITY_ERROR_REASON_SIGN_TOKEN_FAILED", 1016: "SECURITY_ERROR_REASON_GET_KEY_FAILED", 2000: "SECURITY_ERROR_REASON_INVALID_AUTHORIZATION", 1050: "SECURITY_ERROR_REASON_NO_AT_HASH", 1051: "SECURITY_ERROR_REASON_INVALID_AT_HASH", 3000: "SECURITY_ERROR_REASON_UNSECURITY_ENTICATED", } SecurityErrorReason_value = map[string]int32{ "SECURITY_ERROR_REASON_UNSPECIFIED": 0, "SECURITY_ERROR_REASON_INVALID_AUTHENTICATION": 1000, "SECURITY_ERROR_REASON_INVALID_CLAIMS": 1001, "SECURITY_ERROR_REASON_INVALID_BEARER_TOKEN": 1002, "SECURITY_ERROR_REASON_INVALID_SUBJECT": 1003, "SECURITY_ERROR_REASON_INVALID_AUDIENCE": 1004, "SECURITY_ERROR_REASON_INVALID_ISSUER": 1005, "SECURITY_ERROR_REASON_INVALID_EXPIRATION": 1006, "SECURITY_ERROR_REASON_TOKEN_NOT_FOUND": 1007, "SECURITY_ERROR_REASON_BEARER_TOKEN_MISSING": 1010, "SECURITY_ERROR_REASON_TOKEN_EXPIRED": 1011, "SECURITY_ERROR_REASON_UNSUPPORTED_SIGNING_METHOD": 1012, "SECURITY_ERROR_REASON_MISSING_KEY_FUNC": 1014, "SECURITY_ERROR_REASON_SIGN_TOKEN_FAILED": 1015, "SECURITY_ERROR_REASON_GET_KEY_FAILED": 1016, "SECURITY_ERROR_REASON_INVALID_AUTHORIZATION": 2000, "SECURITY_ERROR_REASON_NO_AT_HASH": 1050, "SECURITY_ERROR_REASON_INVALID_AT_HASH": 1051, "SECURITY_ERROR_REASON_UNSECURITY_ENTICATED": 3000, } )
Enum value maps for SecurityErrorReason.
var File_security_v1_auth_proto protoreflect.FileDescriptor
var File_security_v1_error_proto protoreflect.FileDescriptor
Functions ¶
func ErrorSecurityErrorReasonBearerTokenMissing ¶ added in v0.1.15
func ErrorSecurityErrorReasonGetKeyFailed ¶ added in v0.1.15
func ErrorSecurityErrorReasonInvalidAtHash ¶ added in v0.1.15
func ErrorSecurityErrorReasonInvalidAudience ¶ added in v0.1.15
func ErrorSecurityErrorReasonInvalidAuthentication ¶ added in v0.1.15
func ErrorSecurityErrorReasonInvalidAuthentication(format string, args ...interface{}) *errors.Error
authentication starts at 1000, and ends at 1999
func ErrorSecurityErrorReasonInvalidAuthorization ¶ added in v0.1.15
authorization starts at 2000, and ends at 2999
func ErrorSecurityErrorReasonInvalidBearerToken ¶ added in v0.1.15
func ErrorSecurityErrorReasonInvalidClaims ¶ added in v0.1.15
func ErrorSecurityErrorReasonInvalidExpiration ¶ added in v0.1.15
func ErrorSecurityErrorReasonInvalidIssuer ¶ added in v0.1.15
func ErrorSecurityErrorReasonInvalidSubject ¶ added in v0.1.15
func ErrorSecurityErrorReasonMissingKeyFunc ¶ added in v0.1.15
func ErrorSecurityErrorReasonNoAtHash ¶ added in v0.1.15
func ErrorSecurityErrorReasonSignTokenFailed ¶ added in v0.1.15
func ErrorSecurityErrorReasonTokenExpired ¶ added in v0.1.15
func ErrorSecurityErrorReasonTokenNotFound ¶ added in v0.1.15
func ErrorSecurityErrorReasonUnsecurityEnticated ¶ added in v0.1.16
func ErrorSecurityErrorReasonUnspecified ¶ added in v0.1.15
func ErrorSecurityErrorReasonUnsupportedSigningMethod ¶ added in v0.1.15
func IsSecurityErrorReasonBearerTokenMissing ¶ added in v0.1.15
func IsSecurityErrorReasonGetKeyFailed ¶ added in v0.1.15
func IsSecurityErrorReasonInvalidAtHash ¶ added in v0.1.15
func IsSecurityErrorReasonInvalidAudience ¶ added in v0.1.15
func IsSecurityErrorReasonInvalidAuthentication ¶ added in v0.1.15
authentication starts at 1000, and ends at 1999
func IsSecurityErrorReasonInvalidAuthorization ¶ added in v0.1.15
authorization starts at 2000, and ends at 2999
func IsSecurityErrorReasonInvalidBearerToken ¶ added in v0.1.15
func IsSecurityErrorReasonInvalidClaims ¶ added in v0.1.15
func IsSecurityErrorReasonInvalidExpiration ¶ added in v0.1.15
func IsSecurityErrorReasonInvalidIssuer ¶ added in v0.1.15
func IsSecurityErrorReasonInvalidSubject ¶ added in v0.1.15
func IsSecurityErrorReasonMissingKeyFunc ¶ added in v0.1.15
func IsSecurityErrorReasonNoAtHash ¶ added in v0.1.15
func IsSecurityErrorReasonSignTokenFailed ¶ added in v0.1.15
func IsSecurityErrorReasonTokenExpired ¶ added in v0.1.15
func IsSecurityErrorReasonTokenNotFound ¶ added in v0.1.15
func IsSecurityErrorReasonUnsecurityEnticated ¶ added in v0.1.16
func IsSecurityErrorReasonUnspecified ¶ added in v0.1.15
func IsSecurityErrorReasonUnsupportedSigningMethod ¶ added in v0.1.15
Types ¶
type ApiKeyAuth ¶
type ApiKeyAuth struct { ApiKey string `protobuf:"bytes,1,opt,name=api_key,proto3" json:"api_key,omitempty"` // contains filtered or unexported fields }
func (*ApiKeyAuth) Descriptor
deprecated
func (*ApiKeyAuth) Descriptor() ([]byte, []int)
Deprecated: Use ApiKeyAuth.ProtoReflect.Descriptor instead.
func (*ApiKeyAuth) GetApiKey ¶
func (x *ApiKeyAuth) GetApiKey() string
func (*ApiKeyAuth) ProtoMessage ¶
func (*ApiKeyAuth) ProtoMessage()
func (*ApiKeyAuth) ProtoReflect ¶
func (x *ApiKeyAuth) ProtoReflect() protoreflect.Message
func (*ApiKeyAuth) Reset ¶
func (x *ApiKeyAuth) Reset()
func (*ApiKeyAuth) String ¶
func (x *ApiKeyAuth) String() string
func (*ApiKeyAuth) Validate ¶
func (m *ApiKeyAuth) Validate() error
Validate checks the field values on ApiKeyAuth 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 (*ApiKeyAuth) ValidateAll ¶
func (m *ApiKeyAuth) ValidateAll() error
ValidateAll checks the field values on ApiKeyAuth 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 ApiKeyAuthMultiError, or nil if none found.
type ApiKeyAuthMultiError ¶
type ApiKeyAuthMultiError []error
ApiKeyAuthMultiError is an error wrapping multiple validation errors returned by ApiKeyAuth.ValidateAll() if the designated constraints aren't met.
func (ApiKeyAuthMultiError) AllErrors ¶
func (m ApiKeyAuthMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ApiKeyAuthMultiError) Error ¶
func (m ApiKeyAuthMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ApiKeyAuthValidationError ¶
type ApiKeyAuthValidationError struct {
// contains filtered or unexported fields
}
ApiKeyAuthValidationError is the validation error returned by ApiKeyAuth.Validate if the designated constraints aren't met.
func (ApiKeyAuthValidationError) Cause ¶
func (e ApiKeyAuthValidationError) Cause() error
Cause function returns cause value.
func (ApiKeyAuthValidationError) Error ¶
func (e ApiKeyAuthValidationError) Error() string
Error satisfies the builtin error interface
func (ApiKeyAuthValidationError) ErrorName ¶
func (e ApiKeyAuthValidationError) ErrorName() string
ErrorName returns error name.
func (ApiKeyAuthValidationError) Field ¶
func (e ApiKeyAuthValidationError) Field() string
Field function returns field value.
func (ApiKeyAuthValidationError) Key ¶
func (e ApiKeyAuthValidationError) Key() bool
Key function returns key value.
func (ApiKeyAuthValidationError) Reason ¶
func (e ApiKeyAuthValidationError) Reason() string
Reason function returns reason value.
type AuthN ¶
type AuthN struct { Type AuthN_Type `protobuf:"varint,1,opt,name=type,proto3,enum=security.v1.AuthN_Type" json:"type,omitempty"` Basic *BasicAuth `protobuf:"bytes,10,opt,name=basic,proto3,oneof" json:"basic,omitempty"` Bearer *BearerAuth `protobuf:"bytes,11,opt,name=bearer,proto3,oneof" json:"bearer,omitempty"` Digest *DigestAuth `protobuf:"bytes,12,opt,name=digest,proto3,oneof" json:"digest,omitempty"` Oauth2 *OAuth2Auth `protobuf:"bytes,13,opt,name=oauth2,proto3,oneof" json:"oauth2,omitempty"` ApiKey *ApiKeyAuth `protobuf:"bytes,14,opt,name=api_key,proto3,oneof" json:"api_key,omitempty"` Jwt *JwtAuth `protobuf:"bytes,15,opt,name=jwt,proto3,oneof" json:"jwt,omitempty"` Additional *anypb.Any `protobuf:"bytes,16,opt,name=additional,proto3,oneof" json:"additional,omitempty"` // contains filtered or unexported fields }
func (*AuthN) Descriptor
deprecated
func (*AuthN) GetAdditional ¶ added in v0.1.0
func (*AuthN) GetApiKey ¶
func (x *AuthN) GetApiKey() *ApiKeyAuth
func (*AuthN) GetBearer ¶
func (x *AuthN) GetBearer() *BearerAuth
func (*AuthN) GetDigest ¶
func (x *AuthN) GetDigest() *DigestAuth
func (*AuthN) GetOauth2 ¶
func (x *AuthN) GetOauth2() *OAuth2Auth
func (*AuthN) GetType ¶
func (x *AuthN) GetType() AuthN_Type
func (*AuthN) ProtoMessage ¶
func (*AuthN) ProtoMessage()
func (*AuthN) ProtoReflect ¶
func (x *AuthN) ProtoReflect() protoreflect.Message
func (*AuthN) Validate ¶
Validate checks the field values on AuthN 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 (*AuthN) ValidateAll ¶
ValidateAll checks the field values on AuthN 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 AuthNMultiError, or nil if none found.
type AuthNMultiError ¶
type AuthNMultiError []error
AuthNMultiError is an error wrapping multiple validation errors returned by AuthN.ValidateAll() if the designated constraints aren't met.
func (AuthNMultiError) AllErrors ¶
func (m AuthNMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthNMultiError) Error ¶
func (m AuthNMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthNValidationError ¶
type AuthNValidationError struct {
// contains filtered or unexported fields
}
AuthNValidationError is the validation error returned by AuthN.Validate if the designated constraints aren't met.
func (AuthNValidationError) Cause ¶
func (e AuthNValidationError) Cause() error
Cause function returns cause value.
func (AuthNValidationError) Error ¶
func (e AuthNValidationError) Error() string
Error satisfies the builtin error interface
func (AuthNValidationError) ErrorName ¶
func (e AuthNValidationError) ErrorName() string
ErrorName returns error name.
func (AuthNValidationError) Field ¶
func (e AuthNValidationError) Field() string
Field function returns field value.
func (AuthNValidationError) Key ¶
func (e AuthNValidationError) Key() bool
Key function returns key value.
func (AuthNValidationError) Reason ¶
func (e AuthNValidationError) Reason() string
Reason function returns reason value.
type AuthN_Type ¶
type AuthN_Type int32
const ( AuthN_TYPE_UNSPECIFIED AuthN_Type = 0 // default value not specified AuthN_TYPE_BASIC AuthN_Type = 1 // Basic authentication AuthN_TYPE_BEARER AuthN_Type = 2 // Bearer authentication AuthN_TYPE_DIGEST AuthN_Type = 3 // Digest authentication AuthN_TYPE_OAUTH2 AuthN_Type = 4 // OAuth2 authentication AuthN_TYPE_API_KEY AuthN_Type = 5 // API Key authentication AuthN_TYPE_JWT AuthN_Type = 6 // JWT authentication // you can add more types as needed AuthN_TYPE_USER_ADDITIONAL AuthN_Type = 7 )
func (AuthN_Type) Descriptor ¶
func (AuthN_Type) Descriptor() protoreflect.EnumDescriptor
func (AuthN_Type) Enum ¶
func (x AuthN_Type) Enum() *AuthN_Type
func (AuthN_Type) EnumDescriptor
deprecated
func (AuthN_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use AuthN_Type.Descriptor instead.
func (AuthN_Type) Number ¶
func (x AuthN_Type) Number() protoreflect.EnumNumber
func (AuthN_Type) String ¶
func (x AuthN_Type) String() string
func (AuthN_Type) Type ¶
func (AuthN_Type) Type() protoreflect.EnumType
type AuthZ ¶
type AuthZ struct { Root bool `protobuf:"varint,1,opt,name=root,proto3" json:"root,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` UserType string `protobuf:"bytes,3,opt,name=user_type,proto3" json:"user_type,omitempty"` Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"` Roles []string `protobuf:"bytes,5,rep,name=roles,proto3" json:"roles,omitempty"` Timestamp int64 `protobuf:"varint,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Casbin *CasbinAuth `protobuf:"bytes,7,opt,name=casbin,proto3" json:"casbin,omitempty"` // contains filtered or unexported fields }
func (*AuthZ) Descriptor
deprecated
func (*AuthZ) GetCasbin ¶ added in v0.1.15
func (x *AuthZ) GetCasbin() *CasbinAuth
func (*AuthZ) GetTimestamp ¶
func (*AuthZ) GetUserType ¶
func (*AuthZ) GetUsername ¶
func (*AuthZ) ProtoMessage ¶
func (*AuthZ) ProtoMessage()
func (*AuthZ) ProtoReflect ¶
func (x *AuthZ) ProtoReflect() protoreflect.Message
func (*AuthZ) Validate ¶
Validate checks the field values on AuthZ 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 (*AuthZ) ValidateAll ¶
ValidateAll checks the field values on AuthZ 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 AuthZMultiError, or nil if none found.
type AuthZMultiError ¶
type AuthZMultiError []error
AuthZMultiError is an error wrapping multiple validation errors returned by AuthZ.ValidateAll() if the designated constraints aren't met.
func (AuthZMultiError) AllErrors ¶
func (m AuthZMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthZMultiError) Error ¶
func (m AuthZMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthZValidationError ¶
type AuthZValidationError struct {
// contains filtered or unexported fields
}
AuthZValidationError is the validation error returned by AuthZ.Validate if the designated constraints aren't met.
func (AuthZValidationError) Cause ¶
func (e AuthZValidationError) Cause() error
Cause function returns cause value.
func (AuthZValidationError) Error ¶
func (e AuthZValidationError) Error() string
Error satisfies the builtin error interface
func (AuthZValidationError) ErrorName ¶
func (e AuthZValidationError) ErrorName() string
ErrorName returns error name.
func (AuthZValidationError) Field ¶
func (e AuthZValidationError) Field() string
Field function returns field value.
func (AuthZValidationError) Key ¶
func (e AuthZValidationError) Key() bool
Key function returns key value.
func (AuthZValidationError) Reason ¶
func (e AuthZValidationError) Reason() string
Reason function returns reason value.
type BasicAuth ¶
type BasicAuth struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*BasicAuth) Descriptor
deprecated
func (*BasicAuth) GetPassword ¶
func (*BasicAuth) GetUsername ¶
func (*BasicAuth) ProtoMessage ¶
func (*BasicAuth) ProtoMessage()
func (*BasicAuth) ProtoReflect ¶
func (x *BasicAuth) ProtoReflect() protoreflect.Message
func (*BasicAuth) Validate ¶
Validate checks the field values on BasicAuth 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 (*BasicAuth) ValidateAll ¶
ValidateAll checks the field values on BasicAuth 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 BasicAuthMultiError, or nil if none found.
type BasicAuthMultiError ¶
type BasicAuthMultiError []error
BasicAuthMultiError is an error wrapping multiple validation errors returned by BasicAuth.ValidateAll() if the designated constraints aren't met.
func (BasicAuthMultiError) AllErrors ¶
func (m BasicAuthMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BasicAuthMultiError) Error ¶
func (m BasicAuthMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BasicAuthValidationError ¶
type BasicAuthValidationError struct {
// contains filtered or unexported fields
}
BasicAuthValidationError is the validation error returned by BasicAuth.Validate if the designated constraints aren't met.
func (BasicAuthValidationError) Cause ¶
func (e BasicAuthValidationError) Cause() error
Cause function returns cause value.
func (BasicAuthValidationError) Error ¶
func (e BasicAuthValidationError) Error() string
Error satisfies the builtin error interface
func (BasicAuthValidationError) ErrorName ¶
func (e BasicAuthValidationError) ErrorName() string
ErrorName returns error name.
func (BasicAuthValidationError) Field ¶
func (e BasicAuthValidationError) Field() string
Field function returns field value.
func (BasicAuthValidationError) Key ¶
func (e BasicAuthValidationError) Key() bool
Key function returns key value.
func (BasicAuthValidationError) Reason ¶
func (e BasicAuthValidationError) Reason() string
Reason function returns reason value.
type BearerAuth ¶
type BearerAuth struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*BearerAuth) Descriptor
deprecated
func (*BearerAuth) Descriptor() ([]byte, []int)
Deprecated: Use BearerAuth.ProtoReflect.Descriptor instead.
func (*BearerAuth) GetToken ¶
func (x *BearerAuth) GetToken() string
func (*BearerAuth) ProtoMessage ¶
func (*BearerAuth) ProtoMessage()
func (*BearerAuth) ProtoReflect ¶
func (x *BearerAuth) ProtoReflect() protoreflect.Message
func (*BearerAuth) Reset ¶
func (x *BearerAuth) Reset()
func (*BearerAuth) String ¶
func (x *BearerAuth) String() string
func (*BearerAuth) Validate ¶
func (m *BearerAuth) Validate() error
Validate checks the field values on BearerAuth 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 (*BearerAuth) ValidateAll ¶
func (m *BearerAuth) ValidateAll() error
ValidateAll checks the field values on BearerAuth 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 BearerAuthMultiError, or nil if none found.
type BearerAuthMultiError ¶
type BearerAuthMultiError []error
BearerAuthMultiError is an error wrapping multiple validation errors returned by BearerAuth.ValidateAll() if the designated constraints aren't met.
func (BearerAuthMultiError) AllErrors ¶
func (m BearerAuthMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BearerAuthMultiError) Error ¶
func (m BearerAuthMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BearerAuthValidationError ¶
type BearerAuthValidationError struct {
// contains filtered or unexported fields
}
BearerAuthValidationError is the validation error returned by BearerAuth.Validate if the designated constraints aren't met.
func (BearerAuthValidationError) Cause ¶
func (e BearerAuthValidationError) Cause() error
Cause function returns cause value.
func (BearerAuthValidationError) Error ¶
func (e BearerAuthValidationError) Error() string
Error satisfies the builtin error interface
func (BearerAuthValidationError) ErrorName ¶
func (e BearerAuthValidationError) ErrorName() string
ErrorName returns error name.
func (BearerAuthValidationError) Field ¶
func (e BearerAuthValidationError) Field() string
Field function returns field value.
func (BearerAuthValidationError) Key ¶
func (e BearerAuthValidationError) Key() bool
Key function returns key value.
func (BearerAuthValidationError) Reason ¶
func (e BearerAuthValidationError) Reason() string
Reason function returns reason value.
type CasbinAuth ¶ added in v0.1.15
type CasbinAuth struct { Policy *v11.Policy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` Claims *Claims `protobuf:"bytes,20,opt,name=claims,proto3" json:"claims,omitempty"` // Claims // contains filtered or unexported fields }
func (*CasbinAuth) Descriptor
deprecated
added in
v0.1.15
func (*CasbinAuth) Descriptor() ([]byte, []int)
Deprecated: Use CasbinAuth.ProtoReflect.Descriptor instead.
func (*CasbinAuth) GetClaims ¶ added in v0.1.15
func (x *CasbinAuth) GetClaims() *Claims
func (*CasbinAuth) GetPolicy ¶ added in v0.1.15
func (x *CasbinAuth) GetPolicy() *v11.Policy
func (*CasbinAuth) ProtoMessage ¶ added in v0.1.15
func (*CasbinAuth) ProtoMessage()
func (*CasbinAuth) ProtoReflect ¶ added in v0.1.15
func (x *CasbinAuth) ProtoReflect() protoreflect.Message
func (*CasbinAuth) Reset ¶ added in v0.1.15
func (x *CasbinAuth) Reset()
func (*CasbinAuth) String ¶ added in v0.1.15
func (x *CasbinAuth) String() string
func (*CasbinAuth) Validate ¶ added in v0.1.15
func (m *CasbinAuth) Validate() error
Validate checks the field values on CasbinAuth 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 (*CasbinAuth) ValidateAll ¶ added in v0.1.15
func (m *CasbinAuth) ValidateAll() error
ValidateAll checks the field values on CasbinAuth 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 CasbinAuthMultiError, or nil if none found.
type CasbinAuthMultiError ¶ added in v0.1.15
type CasbinAuthMultiError []error
CasbinAuthMultiError is an error wrapping multiple validation errors returned by CasbinAuth.ValidateAll() if the designated constraints aren't met.
func (CasbinAuthMultiError) AllErrors ¶ added in v0.1.15
func (m CasbinAuthMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CasbinAuthMultiError) Error ¶ added in v0.1.15
func (m CasbinAuthMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CasbinAuthValidationError ¶ added in v0.1.15
type CasbinAuthValidationError struct {
// contains filtered or unexported fields
}
CasbinAuthValidationError is the validation error returned by CasbinAuth.Validate if the designated constraints aren't met.
func (CasbinAuthValidationError) Cause ¶ added in v0.1.15
func (e CasbinAuthValidationError) Cause() error
Cause function returns cause value.
func (CasbinAuthValidationError) Error ¶ added in v0.1.15
func (e CasbinAuthValidationError) Error() string
Error satisfies the builtin error interface
func (CasbinAuthValidationError) ErrorName ¶ added in v0.1.15
func (e CasbinAuthValidationError) ErrorName() string
ErrorName returns error name.
func (CasbinAuthValidationError) Field ¶ added in v0.1.15
func (e CasbinAuthValidationError) Field() string
Field function returns field value.
func (CasbinAuthValidationError) Key ¶ added in v0.1.15
func (e CasbinAuthValidationError) Key() bool
Key function returns key value.
func (CasbinAuthValidationError) Reason ¶ added in v0.1.15
func (e CasbinAuthValidationError) Reason() string
Reason function returns reason value.
type Claims ¶ added in v0.1.0
type Claims struct { Sub string `protobuf:"bytes,1,opt,name=sub,proto3" json:"sub,omitempty"` // Subject Iss string `protobuf:"bytes,2,opt,name=iss,proto3" json:"iss,omitempty"` // Issuer Aud []string `protobuf:"bytes,3,rep,name=aud,proto3" json:"aud,omitempty"` // Audience Exp int64 `protobuf:"varint,4,opt,name=exp,proto3" json:"exp,omitempty"` // Expiration Time Nbf int64 `protobuf:"varint,5,opt,name=nbf,proto3" json:"nbf,omitempty"` // Not Before Iat int64 `protobuf:"varint,6,opt,name=iat,proto3" json:"iat,omitempty"` // Issued At Jti string `protobuf:"bytes,7,opt,name=jti,proto3" json:"jti,omitempty"` // JWT ID Scopes map[string]bool `` // Scopes /* 154-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Claims) Descriptor
deprecated
added in
v0.1.0
func (*Claims) ProtoMessage ¶ added in v0.1.0
func (*Claims) ProtoMessage()
func (*Claims) ProtoReflect ¶ added in v0.1.0
func (x *Claims) ProtoReflect() protoreflect.Message
func (*Claims) Validate ¶ added in v0.1.0
Validate checks the field values on Claims 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 (*Claims) ValidateAll ¶ added in v0.1.0
ValidateAll checks the field values on Claims 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 ClaimsMultiError, or nil if none found.
type ClaimsMultiError ¶ added in v0.1.0
type ClaimsMultiError []error
ClaimsMultiError is an error wrapping multiple validation errors returned by Claims.ValidateAll() if the designated constraints aren't met.
func (ClaimsMultiError) AllErrors ¶ added in v0.1.0
func (m ClaimsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ClaimsMultiError) Error ¶ added in v0.1.0
func (m ClaimsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ClaimsValidationError ¶ added in v0.1.0
type ClaimsValidationError struct {
// contains filtered or unexported fields
}
ClaimsValidationError is the validation error returned by Claims.Validate if the designated constraints aren't met.
func (ClaimsValidationError) Cause ¶ added in v0.1.0
func (e ClaimsValidationError) Cause() error
Cause function returns cause value.
func (ClaimsValidationError) Error ¶ added in v0.1.0
func (e ClaimsValidationError) Error() string
Error satisfies the builtin error interface
func (ClaimsValidationError) ErrorName ¶ added in v0.1.0
func (e ClaimsValidationError) ErrorName() string
ErrorName returns error name.
func (ClaimsValidationError) Field ¶ added in v0.1.0
func (e ClaimsValidationError) Field() string
Field function returns field value.
func (ClaimsValidationError) Key ¶ added in v0.1.0
func (e ClaimsValidationError) Key() bool
Key function returns key value.
func (ClaimsValidationError) Reason ¶ added in v0.1.0
func (e ClaimsValidationError) Reason() string
Reason function returns reason value.
type DigestAuth ¶
type DigestAuth struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Realm string `protobuf:"bytes,2,opt,name=realm,proto3" json:"realm,omitempty"` Nonce string `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"` Uri string `protobuf:"bytes,4,opt,name=uri,proto3" json:"uri,omitempty"` Response string `protobuf:"bytes,5,opt,name=response,proto3" json:"response,omitempty"` Algorithm string `protobuf:"bytes,6,opt,name=algorithm,proto3" json:"algorithm,omitempty"` Qop string `protobuf:"bytes,7,opt,name=qop,proto3" json:"qop,omitempty"` Nc string `protobuf:"bytes,8,opt,name=nc,proto3" json:"nc,omitempty"` Cnonce string `protobuf:"bytes,9,opt,name=cnonce,proto3" json:"cnonce,omitempty"` // contains filtered or unexported fields }
func (*DigestAuth) Descriptor
deprecated
func (*DigestAuth) Descriptor() ([]byte, []int)
Deprecated: Use DigestAuth.ProtoReflect.Descriptor instead.
func (*DigestAuth) GetAlgorithm ¶
func (x *DigestAuth) GetAlgorithm() string
func (*DigestAuth) GetCnonce ¶
func (x *DigestAuth) GetCnonce() string
func (*DigestAuth) GetNc ¶
func (x *DigestAuth) GetNc() string
func (*DigestAuth) GetNonce ¶
func (x *DigestAuth) GetNonce() string
func (*DigestAuth) GetQop ¶
func (x *DigestAuth) GetQop() string
func (*DigestAuth) GetRealm ¶
func (x *DigestAuth) GetRealm() string
func (*DigestAuth) GetResponse ¶
func (x *DigestAuth) GetResponse() string
func (*DigestAuth) GetUri ¶
func (x *DigestAuth) GetUri() string
func (*DigestAuth) GetUsername ¶
func (x *DigestAuth) GetUsername() string
func (*DigestAuth) ProtoMessage ¶
func (*DigestAuth) ProtoMessage()
func (*DigestAuth) ProtoReflect ¶
func (x *DigestAuth) ProtoReflect() protoreflect.Message
func (*DigestAuth) Reset ¶
func (x *DigestAuth) Reset()
func (*DigestAuth) String ¶
func (x *DigestAuth) String() string
func (*DigestAuth) Validate ¶
func (m *DigestAuth) Validate() error
Validate checks the field values on DigestAuth 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 (*DigestAuth) ValidateAll ¶
func (m *DigestAuth) ValidateAll() error
ValidateAll checks the field values on DigestAuth 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 DigestAuthMultiError, or nil if none found.
type DigestAuthMultiError ¶
type DigestAuthMultiError []error
DigestAuthMultiError is an error wrapping multiple validation errors returned by DigestAuth.ValidateAll() if the designated constraints aren't met.
func (DigestAuthMultiError) AllErrors ¶
func (m DigestAuthMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DigestAuthMultiError) Error ¶
func (m DigestAuthMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DigestAuthValidationError ¶
type DigestAuthValidationError struct {
// contains filtered or unexported fields
}
DigestAuthValidationError is the validation error returned by DigestAuth.Validate if the designated constraints aren't met.
func (DigestAuthValidationError) Cause ¶
func (e DigestAuthValidationError) Cause() error
Cause function returns cause value.
func (DigestAuthValidationError) Error ¶
func (e DigestAuthValidationError) Error() string
Error satisfies the builtin error interface
func (DigestAuthValidationError) ErrorName ¶
func (e DigestAuthValidationError) ErrorName() string
ErrorName returns error name.
func (DigestAuthValidationError) Field ¶
func (e DigestAuthValidationError) Field() string
Field function returns field value.
func (DigestAuthValidationError) Key ¶
func (e DigestAuthValidationError) Key() bool
Key function returns key value.
func (DigestAuthValidationError) Reason ¶
func (e DigestAuthValidationError) Reason() string
Reason function returns reason value.
type JwtAuth ¶
type JwtAuth struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` JwtToken *v1.Token `protobuf:"bytes,2,opt,name=jwt_token,proto3" json:"jwt_token,omitempty"` Claims *Claims `protobuf:"bytes,20,opt,name=claims,proto3" json:"claims,omitempty"` // Claims // contains filtered or unexported fields }
func (*JwtAuth) Descriptor
deprecated
func (*JwtAuth) GetJwtToken ¶ added in v0.1.15
func (*JwtAuth) ProtoMessage ¶
func (*JwtAuth) ProtoMessage()
func (*JwtAuth) ProtoReflect ¶
func (x *JwtAuth) ProtoReflect() protoreflect.Message
func (*JwtAuth) Validate ¶
Validate checks the field values on JwtAuth 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 (*JwtAuth) ValidateAll ¶
ValidateAll checks the field values on JwtAuth 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 JwtAuthMultiError, or nil if none found.
type JwtAuthMultiError ¶
type JwtAuthMultiError []error
JwtAuthMultiError is an error wrapping multiple validation errors returned by JwtAuth.ValidateAll() if the designated constraints aren't met.
func (JwtAuthMultiError) AllErrors ¶
func (m JwtAuthMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (JwtAuthMultiError) Error ¶
func (m JwtAuthMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type JwtAuthValidationError ¶
type JwtAuthValidationError struct {
// contains filtered or unexported fields
}
JwtAuthValidationError is the validation error returned by JwtAuth.Validate if the designated constraints aren't met.
func (JwtAuthValidationError) Cause ¶
func (e JwtAuthValidationError) Cause() error
Cause function returns cause value.
func (JwtAuthValidationError) Error ¶
func (e JwtAuthValidationError) Error() string
Error satisfies the builtin error interface
func (JwtAuthValidationError) ErrorName ¶
func (e JwtAuthValidationError) ErrorName() string
ErrorName returns error name.
func (JwtAuthValidationError) Field ¶
func (e JwtAuthValidationError) Field() string
Field function returns field value.
func (JwtAuthValidationError) Key ¶
func (e JwtAuthValidationError) Key() bool
Key function returns key value.
func (JwtAuthValidationError) Reason ¶
func (e JwtAuthValidationError) Reason() string
Reason function returns reason value.
type OAuth2Auth ¶
type OAuth2Auth struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,proto3" json:"access_token,omitempty"` TokenType string `protobuf:"bytes,2,opt,name=token_type,proto3" json:"token_type,omitempty"` ExpiresIn int32 `protobuf:"varint,3,opt,name=expires_in,proto3" json:"expires_in,omitempty"` RefreshToken string `protobuf:"bytes,4,opt,name=refresh_token,proto3" json:"refresh_token,omitempty"` Scope []string `protobuf:"bytes,5,rep,name=scope,proto3" json:"scope,omitempty"` // contains filtered or unexported fields }
func (*OAuth2Auth) Descriptor
deprecated
func (*OAuth2Auth) Descriptor() ([]byte, []int)
Deprecated: Use OAuth2Auth.ProtoReflect.Descriptor instead.
func (*OAuth2Auth) GetAccessToken ¶
func (x *OAuth2Auth) GetAccessToken() string
func (*OAuth2Auth) GetExpiresIn ¶
func (x *OAuth2Auth) GetExpiresIn() int32
func (*OAuth2Auth) GetRefreshToken ¶
func (x *OAuth2Auth) GetRefreshToken() string
func (*OAuth2Auth) GetScope ¶
func (x *OAuth2Auth) GetScope() []string
func (*OAuth2Auth) GetTokenType ¶
func (x *OAuth2Auth) GetTokenType() string
func (*OAuth2Auth) ProtoMessage ¶
func (*OAuth2Auth) ProtoMessage()
func (*OAuth2Auth) ProtoReflect ¶
func (x *OAuth2Auth) ProtoReflect() protoreflect.Message
func (*OAuth2Auth) Reset ¶
func (x *OAuth2Auth) Reset()
func (*OAuth2Auth) String ¶
func (x *OAuth2Auth) String() string
func (*OAuth2Auth) Validate ¶
func (m *OAuth2Auth) Validate() error
Validate checks the field values on OAuth2Auth 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 (*OAuth2Auth) ValidateAll ¶
func (m *OAuth2Auth) ValidateAll() error
ValidateAll checks the field values on OAuth2Auth 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 OAuth2AuthMultiError, or nil if none found.
type OAuth2AuthMultiError ¶
type OAuth2AuthMultiError []error
OAuth2AuthMultiError is an error wrapping multiple validation errors returned by OAuth2Auth.ValidateAll() if the designated constraints aren't met.
func (OAuth2AuthMultiError) AllErrors ¶
func (m OAuth2AuthMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (OAuth2AuthMultiError) Error ¶
func (m OAuth2AuthMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type OAuth2AuthValidationError ¶
type OAuth2AuthValidationError struct {
// contains filtered or unexported fields
}
OAuth2AuthValidationError is the validation error returned by OAuth2Auth.Validate if the designated constraints aren't met.
func (OAuth2AuthValidationError) Cause ¶
func (e OAuth2AuthValidationError) Cause() error
Cause function returns cause value.
func (OAuth2AuthValidationError) Error ¶
func (e OAuth2AuthValidationError) Error() string
Error satisfies the builtin error interface
func (OAuth2AuthValidationError) ErrorName ¶
func (e OAuth2AuthValidationError) ErrorName() string
ErrorName returns error name.
func (OAuth2AuthValidationError) Field ¶
func (e OAuth2AuthValidationError) Field() string
Field function returns field value.
func (OAuth2AuthValidationError) Key ¶
func (e OAuth2AuthValidationError) Key() bool
Key function returns key value.
func (OAuth2AuthValidationError) Reason ¶
func (e OAuth2AuthValidationError) Reason() string
Reason function returns reason value.
type SecurityErrorReason ¶ added in v0.1.15
type SecurityErrorReason int32
const ( SecurityErrorReason_SECURITY_ERROR_REASON_UNSPECIFIED SecurityErrorReason = 0 // authentication starts at 1000, and ends at 1999 SecurityErrorReason_SECURITY_ERROR_REASON_INVALID_AUTHENTICATION SecurityErrorReason = 1000 SecurityErrorReason_SECURITY_ERROR_REASON_INVALID_CLAIMS SecurityErrorReason = 1001 SecurityErrorReason_SECURITY_ERROR_REASON_INVALID_BEARER_TOKEN SecurityErrorReason = 1002 SecurityErrorReason_SECURITY_ERROR_REASON_INVALID_SUBJECT SecurityErrorReason = 1003 SecurityErrorReason_SECURITY_ERROR_REASON_INVALID_AUDIENCE SecurityErrorReason = 1004 SecurityErrorReason_SECURITY_ERROR_REASON_INVALID_ISSUER SecurityErrorReason = 1005 SecurityErrorReason_SECURITY_ERROR_REASON_INVALID_EXPIRATION SecurityErrorReason = 1006 SecurityErrorReason_SECURITY_ERROR_REASON_TOKEN_NOT_FOUND SecurityErrorReason = 1007 SecurityErrorReason_SECURITY_ERROR_REASON_BEARER_TOKEN_MISSING SecurityErrorReason = 1010 SecurityErrorReason_SECURITY_ERROR_REASON_TOKEN_EXPIRED SecurityErrorReason = 1011 SecurityErrorReason_SECURITY_ERROR_REASON_UNSUPPORTED_SIGNING_METHOD SecurityErrorReason = 1012 SecurityErrorReason_SECURITY_ERROR_REASON_MISSING_KEY_FUNC SecurityErrorReason = 1014 SecurityErrorReason_SECURITY_ERROR_REASON_SIGN_TOKEN_FAILED SecurityErrorReason = 1015 SecurityErrorReason_SECURITY_ERROR_REASON_GET_KEY_FAILED SecurityErrorReason = 1016 // authorization starts at 2000, and ends at 2999 SecurityErrorReason_SECURITY_ERROR_REASON_INVALID_AUTHORIZATION SecurityErrorReason = 2000 SecurityErrorReason_SECURITY_ERROR_REASON_NO_AT_HASH SecurityErrorReason = 1050 SecurityErrorReason_SECURITY_ERROR_REASON_INVALID_AT_HASH SecurityErrorReason = 1051 SecurityErrorReason_SECURITY_ERROR_REASON_UNSECURITY_ENTICATED SecurityErrorReason = 3000 )
func (SecurityErrorReason) Descriptor ¶ added in v0.1.15
func (SecurityErrorReason) Descriptor() protoreflect.EnumDescriptor
func (SecurityErrorReason) Enum ¶ added in v0.1.15
func (x SecurityErrorReason) Enum() *SecurityErrorReason
func (SecurityErrorReason) EnumDescriptor
deprecated
added in
v0.1.15
func (SecurityErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use SecurityErrorReason.Descriptor instead.
func (SecurityErrorReason) Number ¶ added in v0.1.15
func (x SecurityErrorReason) Number() protoreflect.EnumNumber
func (SecurityErrorReason) String ¶ added in v0.1.15
func (x SecurityErrorReason) String() string
func (SecurityErrorReason) Type ¶ added in v0.1.15
func (SecurityErrorReason) Type() protoreflect.EnumType