Documentation ¶
Overview ¶
Package authpb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func ContextWithToken(ctx context.Context, t *JWT) context.Context
- func ExtractJwtFromAccessToken(name, value string, codecs ...securecookie.Codec) (string, error)
- func JwtEmbeddedAccessToken(name, jwt string, codecs ...securecookie.Codec) (string, error)
- func NewTokenVerifier(key *ecdsa.PublicKey) *tokenVerifier
- func RegisterAuthenticationServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAuthenticationServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthenticationServiceClient) error
- func RegisterAuthenticationServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAuthenticationServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthenticationServiceServer) error
- func RegisterAuthenticationServiceServer(s grpc.ServiceRegistrar, srv AuthenticationServiceServer)
- func RegisterTokenStoreServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterTokenStoreServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TokenStoreServiceClient) error
- func RegisterTokenStoreServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterTokenStoreServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TokenStoreServiceServer) error
- func RegisterTokenStoreServiceServer(s grpc.ServiceRegistrar, srv TokenStoreServiceServer)
- func String(jwt *JWT) (string, error)
- type AuthenticateRequest
- func (*AuthenticateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateRequest) GetPassword() string
- func (x *AuthenticateRequest) GetSubject() string
- func (*AuthenticateRequest) ProtoMessage()
- func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message
- func (x *AuthenticateRequest) Reset()
- func (x *AuthenticateRequest) String() string
- func (this *AuthenticateRequest) Validate() error
- type AuthenticateResponse
- func (*AuthenticateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateResponse) GetSuccess() bool
- func (*AuthenticateResponse) ProtoMessage()
- func (x *AuthenticateResponse) ProtoReflect() protoreflect.Message
- func (x *AuthenticateResponse) Reset()
- func (x *AuthenticateResponse) String() string
- func (this *AuthenticateResponse) Validate() error
- type AuthenticationServiceClient
- type AuthenticationServiceServer
- type Claims
- func (*Claims) Descriptor() ([]byte, []int)deprecated
- func (x *Claims) GetAud() string
- func (x *Claims) GetEmail() string
- func (x *Claims) GetEmailVerified() bool
- func (x *Claims) GetExp() int64
- func (x *Claims) GetIat() int64
- func (x *Claims) GetIss() string
- func (x *Claims) GetJti() string
- func (x *Claims) GetKeyUrl() string
- func (x *Claims) GetName() string
- func (x *Claims) GetNbf() int64
- func (x *Claims) GetScope() string
- func (x *Claims) GetState() *State
- func (x *Claims) GetSub() string
- func (x *Claims) GetTokenIntrospection() *TokenIntrospection
- func (*Claims) ProtoMessage()
- func (x *Claims) ProtoReflect() protoreflect.Message
- func (x *Claims) Reset()
- func (x *Claims) String() string
- func (this *Claims) Validate() error
- type CookieJWTBearer
- type CreateCredentialsRequest
- func (*CreateCredentialsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCredentialsRequest) GetCredentials() *Credentials
- func (*CreateCredentialsRequest) ProtoMessage()
- func (x *CreateCredentialsRequest) ProtoReflect() protoreflect.Message
- func (x *CreateCredentialsRequest) Reset()
- func (x *CreateCredentialsRequest) String() string
- func (this *CreateCredentialsRequest) Validate() error
- type CreateCredentialsResponse
- func (*CreateCredentialsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCredentialsResponse) GetCode() string
- func (x *CreateCredentialsResponse) GetEmailTaken() bool
- func (x *CreateCredentialsResponse) GetUserTaken() bool
- func (*CreateCredentialsResponse) ProtoMessage()
- func (x *CreateCredentialsResponse) ProtoReflect() protoreflect.Message
- func (x *CreateCredentialsResponse) Reset()
- func (x *CreateCredentialsResponse) String() string
- func (this *CreateCredentialsResponse) Validate() error
- type CreateTokenRequest
- func (*CreateTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTokenRequest) GetAudience() string
- func (x *CreateTokenRequest) GetData() map[string]string
- func (x *CreateTokenRequest) GetScope() []string
- func (x *CreateTokenRequest) GetScopeValues() map[string]string
- func (x *CreateTokenRequest) GetSub() string
- func (*CreateTokenRequest) ProtoMessage()
- func (x *CreateTokenRequest) ProtoReflect() protoreflect.Message
- func (x *CreateTokenRequest) Reset()
- func (x *CreateTokenRequest) String() string
- func (this *CreateTokenRequest) Validate() error
- type CreateTokenResponse
- func (*CreateTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTokenResponse) GetJwt() *JWT
- func (*CreateTokenResponse) ProtoMessage()
- func (x *CreateTokenResponse) ProtoReflect() protoreflect.Message
- func (x *CreateTokenResponse) Reset()
- func (x *CreateTokenResponse) String() string
- func (this *CreateTokenResponse) Validate() error
- type Credentials
- func (*Credentials) Descriptor() ([]byte, []int)deprecated
- func (x *Credentials) GetEmail() string
- func (x *Credentials) GetPassword() string
- func (x *Credentials) GetSubject() string
- func (*Credentials) ProtoMessage()
- func (x *Credentials) ProtoReflect() protoreflect.Message
- func (x *Credentials) Reset()
- func (x *Credentials) String() string
- func (this *Credentials) Validate() error
- type DeleteJwtRequest
- func (*DeleteJwtRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteJwtRequest) GetJti() string
- func (*DeleteJwtRequest) ProtoMessage()
- func (x *DeleteJwtRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteJwtRequest) Reset()
- func (x *DeleteJwtRequest) String() string
- func (this *DeleteJwtRequest) Validate() error
- type DeleteJwtResponse
- type Email
- type EventAction
- func (EventAction) Descriptor() protoreflect.EnumDescriptor
- func (x EventAction) Enum() *EventAction
- func (EventAction) EnumDescriptor() ([]byte, []int)deprecated
- func (x EventAction) Number() protoreflect.EnumNumber
- func (x EventAction) String() string
- func (EventAction) Type() protoreflect.EnumType
- type GetJwtInfoRequest
- func (*GetJwtInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetJwtInfoRequest) GetJti() string
- func (x *GetJwtInfoRequest) GetSignature() string
- func (*GetJwtInfoRequest) ProtoMessage()
- func (x *GetJwtInfoRequest) ProtoReflect() protoreflect.Message
- func (x *GetJwtInfoRequest) Reset()
- func (x *GetJwtInfoRequest) String() string
- func (this *GetJwtInfoRequest) Validate() error
- type GetJwtInfoResponse
- func (*GetJwtInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetJwtInfoResponse) GetState() JWTState
- func (*GetJwtInfoResponse) ProtoMessage()
- func (x *GetJwtInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GetJwtInfoResponse) Reset()
- func (x *GetJwtInfoResponse) String() string
- func (this *GetJwtInfoResponse) Validate() error
- type JWT
- func (*JWT) Descriptor() ([]byte, []int)deprecated
- func (x *JWT) EcdsaBasedSignature(key *ecdsa.PrivateKey) (string, error)
- func (x *JWT) EcdsaBasedVerify(key *ecdsa.PublicKey) (bool, error)
- func (x *JWT) GetClaims() *Claims
- func (x *JWT) GetHeader() *JWTHeader
- func (x *JWT) GetSignature() string
- func (*JWT) ProtoMessage()
- func (x *JWT) ProtoReflect() protoreflect.Message
- func (x *JWT) Reset()
- func (x *JWT) SecretBasedSignature(secret string) (string, error)
- func (x *JWT) String() string
- func (this *JWT) Validate() error
- func (jwt *JWT) Verify(pemKey string) (JWTState, error)
- type JWTHeader
- func (*JWTHeader) Descriptor() ([]byte, []int)deprecated
- func (x *JWTHeader) GetAlg() string
- func (x *JWTHeader) GetKid() string
- func (x *JWTHeader) GetTyp() string
- func (*JWTHeader) ProtoMessage()
- func (x *JWTHeader) ProtoReflect() protoreflect.Message
- func (x *JWTHeader) Reset()
- func (x *JWTHeader) String() string
- func (this *JWTHeader) Validate() error
- type JWTPurpose
- type JWTState
- type JwtInfo
- func (*JwtInfo) Descriptor() ([]byte, []int)deprecated
- func (x *JwtInfo) GetAud() string
- func (x *JwtInfo) GetExp() int64
- func (x *JwtInfo) GetIss() string
- func (x *JwtInfo) GetJti() string
- func (x *JwtInfo) GetNbf() int64
- func (x *JwtInfo) GetState() JWTState
- func (*JwtInfo) ProtoMessage()
- func (x *JwtInfo) ProtoReflect() protoreflect.Message
- func (x *JwtInfo) Reset()
- func (x *JwtInfo) String() string
- func (this *JwtInfo) Validate() error
- type Profile
- func (*Profile) Descriptor() ([]byte, []int)deprecated
- func (x *Profile) GetFamilyName() string
- func (x *Profile) GetGivenName() string
- func (x *Profile) GetMiddleName() string
- func (x *Profile) GetName() string
- func (x *Profile) GetNickname() string
- func (x *Profile) GetPicture() string
- func (x *Profile) GetUpdatedAt() int64
- func (*Profile) ProtoMessage()
- func (x *Profile) ProtoReflect() protoreflect.Message
- func (x *Profile) Reset()
- func (x *Profile) String() string
- func (this *Profile) Validate() error
- type SaveJwtRequest
- func (*SaveJwtRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SaveJwtRequest) GetInfo() *JwtInfo
- func (*SaveJwtRequest) ProtoMessage()
- func (x *SaveJwtRequest) ProtoReflect() protoreflect.Message
- func (x *SaveJwtRequest) Reset()
- func (x *SaveJwtRequest) String() string
- func (this *SaveJwtRequest) Validate() error
- type SaveJwtResponse
- type SetPasswordRequest
- func (*SetPasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetPasswordRequest) GetEmail() string
- func (x *SetPasswordRequest) GetNewPassword() string
- func (x *SetPasswordRequest) GetOldPassword() string
- func (x *SetPasswordRequest) GetUser() string
- func (*SetPasswordRequest) ProtoMessage()
- func (x *SetPasswordRequest) ProtoReflect() protoreflect.Message
- func (x *SetPasswordRequest) Reset()
- func (x *SetPasswordRequest) String() string
- func (this *SetPasswordRequest) Validate() error
- type SetPasswordResponse
- func (*SetPasswordResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SetPasswordResponse) GetAlreadyUsed() bool
- func (*SetPasswordResponse) ProtoMessage()
- func (x *SetPasswordResponse) ProtoReflect() protoreflect.Message
- func (x *SetPasswordResponse) Reset()
- func (x *SetPasswordResponse) String() string
- func (this *SetPasswordResponse) Validate() error
- type State
- func (*State) Descriptor() ([]byte, []int)deprecated
- func (x *State) GetApiEndpoint() string
- func (x *State) GetService() string
- func (*State) ProtoMessage()
- func (x *State) ProtoReflect() protoreflect.Message
- func (x *State) Reset()
- func (x *State) String() string
- func (this *State) Validate() error
- type StringTokenVerifier
- type SyncMessage
- func (*SyncMessage) Descriptor() ([]byte, []int)deprecated
- func (x *SyncMessage) GetAction() EventAction
- func (x *SyncMessage) GetInfo() *JwtInfo
- func (x *SyncMessage) GetJti() string
- func (*SyncMessage) ProtoMessage()
- func (x *SyncMessage) ProtoReflect() protoreflect.Message
- func (x *SyncMessage) Reset()
- func (x *SyncMessage) String() string
- func (this *SyncMessage) Validate() error
- type TokenIntrospection
- func (*TokenIntrospection) Descriptor() ([]byte, []int)deprecated
- func (x *TokenIntrospection) GetActive() bool
- func (x *TokenIntrospection) GetAud() string
- func (x *TokenIntrospection) GetClientId() string
- func (x *TokenIntrospection) GetExp() int64
- func (x *TokenIntrospection) GetIat() int64
- func (x *TokenIntrospection) GetIss() string
- func (x *TokenIntrospection) GetJti() string
- func (x *TokenIntrospection) GetScope() string
- func (x *TokenIntrospection) GetSub() string
- func (*TokenIntrospection) ProtoMessage()
- func (x *TokenIntrospection) ProtoReflect() protoreflect.Message
- func (x *TokenIntrospection) Reset()
- func (x *TokenIntrospection) String() string
- func (this *TokenIntrospection) Validate() error
- type TokenStoreServiceClient
- type TokenStoreServiceServer
- type TokenStoreService_SyncClient
- type TokenStoreService_SyncServer
- type TokenVerifier
- type UnimplementedAuthenticationServiceServer
- func (UnimplementedAuthenticationServiceServer) Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
- func (UnimplementedAuthenticationServiceServer) CreateCredentials(context.Context, *CreateCredentialsRequest) (*CreateCredentialsResponse, error)
- func (UnimplementedAuthenticationServiceServer) SetPassword(context.Context, *SetPasswordRequest) (*SetPasswordResponse, error)
- func (UnimplementedAuthenticationServiceServer) UpdateEmail(context.Context, *UpdateEmailRequest) (*UpdateEmailResponse, error)
- type UnimplementedTokenStoreServiceServer
- func (UnimplementedTokenStoreServiceServer) DeleteJwt(context.Context, *DeleteJwtRequest) (*DeleteJwtResponse, error)
- func (UnimplementedTokenStoreServiceServer) GetJwtInfo(context.Context, *GetJwtInfoRequest) (*GetJwtInfoResponse, error)
- func (UnimplementedTokenStoreServiceServer) SaveJwt(context.Context, *SaveJwtRequest) (*SaveJwtResponse, error)
- func (UnimplementedTokenStoreServiceServer) Sync(TokenStoreService_SyncServer) error
- type UnsafeAuthenticationServiceServer
- type UnsafeTokenStoreServiceServer
- type UpdateEmailRequest
- func (*UpdateEmailRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateEmailRequest) GetNewEmail() string
- func (x *UpdateEmailRequest) GetOldEmail() string
- func (x *UpdateEmailRequest) GetUsername() string
- func (*UpdateEmailRequest) ProtoMessage()
- func (x *UpdateEmailRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateEmailRequest) Reset()
- func (x *UpdateEmailRequest) String() string
- func (this *UpdateEmailRequest) Validate() error
- type UpdateEmailResponse
- func (*UpdateEmailResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpdateEmailResponse) ProtoMessage()
- func (x *UpdateEmailResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateEmailResponse) Reset()
- func (x *UpdateEmailResponse) String() string
- func (this *UpdateEmailResponse) Validate() error
Constants ¶
This section is empty.
Variables ¶
var ( JWTPurpose_name = map[int32]string{ 0: "AUTHENTICATION", 1: "RESOURCES_ACCESS", 2: "VALIDATION", } JWTPurpose_value = map[string]int32{ "AUTHENTICATION": 0, "RESOURCES_ACCESS": 1, "VALIDATION": 2, } )
Enum value maps for JWTPurpose.
var ( JWTState_name = map[int32]string{ 0: "VALID", 1: "NOT_VALID", 2: "EXPIRED", 3: "REVOKED", 4: "NOT_SIGNED", 5: "NOT_EFFECTIVE", } JWTState_value = map[string]int32{ "VALID": 0, "NOT_VALID": 1, "EXPIRED": 2, "REVOKED": 3, "NOT_SIGNED": 4, "NOT_EFFECTIVE": 5, } )
Enum value maps for JWTState.
var ( EventAction_name = map[int32]string{ 0: "Delete", 1: "Save", } EventAction_value = map[string]int32{ "Delete": 0, "Save": 1, } )
Enum value maps for EventAction.
var File_auth_proto protoreflect.FileDescriptor
Functions ¶
func ExtractJwtFromAccessToken ¶
func ExtractJwtFromAccessToken(name, value string, codecs ...securecookie.Codec) (string, error)
func JwtEmbeddedAccessToken ¶
func JwtEmbeddedAccessToken(name, jwt string, codecs ...securecookie.Codec) (string, error)
func NewTokenVerifier ¶
func RegisterAuthenticationServiceHandler ¶
func RegisterAuthenticationServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterAuthenticationServiceHandler registers the http handlers for service AuthenticationService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAuthenticationServiceHandlerClient ¶
func RegisterAuthenticationServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthenticationServiceClient) error
RegisterAuthenticationServiceHandlerClient registers the http handlers for service AuthenticationService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthenticationServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthenticationServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AuthenticationServiceClient" to call the correct interceptors.
func RegisterAuthenticationServiceHandlerFromEndpoint ¶
func RegisterAuthenticationServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAuthenticationServiceHandlerFromEndpoint is same as RegisterAuthenticationServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAuthenticationServiceHandlerServer ¶
func RegisterAuthenticationServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthenticationServiceServer) error
RegisterAuthenticationServiceHandlerServer registers the http handlers for service AuthenticationService to "mux". UnaryRPC :call AuthenticationServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAuthenticationServiceHandlerFromEndpoint instead.
func RegisterAuthenticationServiceServer ¶
func RegisterAuthenticationServiceServer(s grpc.ServiceRegistrar, srv AuthenticationServiceServer)
func RegisterTokenStoreServiceHandler ¶
func RegisterTokenStoreServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterTokenStoreServiceHandler registers the http handlers for service TokenStoreService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterTokenStoreServiceHandlerClient ¶
func RegisterTokenStoreServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TokenStoreServiceClient) error
RegisterTokenStoreServiceHandlerClient registers the http handlers for service TokenStoreService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TokenStoreServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TokenStoreServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "TokenStoreServiceClient" to call the correct interceptors.
func RegisterTokenStoreServiceHandlerFromEndpoint ¶
func RegisterTokenStoreServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterTokenStoreServiceHandlerFromEndpoint is same as RegisterTokenStoreServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterTokenStoreServiceHandlerServer ¶
func RegisterTokenStoreServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TokenStoreServiceServer) error
RegisterTokenStoreServiceHandlerServer registers the http handlers for service TokenStoreService to "mux". UnaryRPC :call TokenStoreServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterTokenStoreServiceHandlerFromEndpoint instead.
func RegisterTokenStoreServiceServer ¶
func RegisterTokenStoreServiceServer(s grpc.ServiceRegistrar, srv TokenStoreServiceServer)
Types ¶
type AuthenticateRequest ¶
type AuthenticateRequest struct { Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*AuthenticateRequest) Descriptor
deprecated
func (*AuthenticateRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticateRequest.ProtoReflect.Descriptor instead.
func (*AuthenticateRequest) GetPassword ¶
func (x *AuthenticateRequest) GetPassword() string
func (*AuthenticateRequest) GetSubject ¶
func (x *AuthenticateRequest) GetSubject() string
func (*AuthenticateRequest) ProtoMessage ¶
func (*AuthenticateRequest) ProtoMessage()
func (*AuthenticateRequest) ProtoReflect ¶
func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message
func (*AuthenticateRequest) Reset ¶
func (x *AuthenticateRequest) Reset()
func (*AuthenticateRequest) String ¶
func (x *AuthenticateRequest) String() string
func (*AuthenticateRequest) Validate ¶
func (this *AuthenticateRequest) Validate() error
type AuthenticateResponse ¶
type AuthenticateResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*AuthenticateResponse) Descriptor
deprecated
func (*AuthenticateResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticateResponse.ProtoReflect.Descriptor instead.
func (*AuthenticateResponse) GetSuccess ¶
func (x *AuthenticateResponse) GetSuccess() bool
func (*AuthenticateResponse) ProtoMessage ¶
func (*AuthenticateResponse) ProtoMessage()
func (*AuthenticateResponse) ProtoReflect ¶
func (x *AuthenticateResponse) ProtoReflect() protoreflect.Message
func (*AuthenticateResponse) Reset ¶
func (x *AuthenticateResponse) Reset()
func (*AuthenticateResponse) String ¶
func (x *AuthenticateResponse) String() string
func (*AuthenticateResponse) Validate ¶
func (this *AuthenticateResponse) Validate() error
type AuthenticationServiceClient ¶
type AuthenticationServiceClient interface { CreateCredentials(ctx context.Context, in *CreateCredentialsRequest, opts ...grpc.CallOption) (*CreateCredentialsResponse, error) UpdateEmail(ctx context.Context, in *UpdateEmailRequest, opts ...grpc.CallOption) (*UpdateEmailResponse, error) Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) SetPassword(ctx context.Context, in *SetPasswordRequest, opts ...grpc.CallOption) (*SetPasswordResponse, error) }
AuthenticationServiceClient is the client API for AuthenticationService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAuthenticationServiceClient ¶
func NewAuthenticationServiceClient(cc grpc.ClientConnInterface) AuthenticationServiceClient
type AuthenticationServiceServer ¶
type AuthenticationServiceServer interface { CreateCredentials(context.Context, *CreateCredentialsRequest) (*CreateCredentialsResponse, error) UpdateEmail(context.Context, *UpdateEmailRequest) (*UpdateEmailResponse, error) Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error) SetPassword(context.Context, *SetPasswordRequest) (*SetPasswordResponse, error) // contains filtered or unexported methods }
AuthenticationServiceServer is the server API for AuthenticationService service. All implementations must embed UnimplementedAuthenticationServiceServer for forward compatibility
type Claims ¶
type Claims struct { Iss string `protobuf:"bytes,1,opt,name=iss,proto3" json:"iss,omitempty"` Sub string `protobuf:"bytes,2,opt,name=sub,proto3" json:"sub,omitempty"` Aud string `protobuf:"bytes,3,opt,name=aud,proto3" json:"aud,omitempty"` Exp int64 `protobuf:"varint,4,opt,name=exp,proto3" json:"exp,omitempty"` Nbf int64 `protobuf:"varint,5,opt,name=nbf,proto3" json:"nbf,omitempty"` Iat int64 `protobuf:"varint,6,opt,name=iat,proto3" json:"iat,omitempty"` Jti string `protobuf:"bytes,7,opt,name=jti,proto3" json:"jti,omitempty"` TokenIntrospection *TokenIntrospection `protobuf:"bytes,8,opt,name=token_introspection,json=tokenIntrospection,proto3" json:"token_introspection,omitempty"` Scope string `protobuf:"bytes,9,opt,name=scope,proto3" json:"scope,omitempty"` Name string `protobuf:"bytes,10,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,11,opt,name=email,proto3" json:"email,omitempty"` EmailVerified bool `protobuf:"varint,12,opt,name=email_verified,json=emailVerified,proto3" json:"email_verified,omitempty"` KeyUrl string `protobuf:"bytes,13,opt,name=key_url,json=keyUrl,proto3" json:"key_url,omitempty"` State *State `protobuf:"bytes,14,opt,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
func (*Claims) Descriptor
deprecated
func (*Claims) GetEmailVerified ¶
func (*Claims) GetTokenIntrospection ¶
func (x *Claims) GetTokenIntrospection() *TokenIntrospection
func (*Claims) ProtoMessage ¶
func (*Claims) ProtoMessage()
func (*Claims) ProtoReflect ¶
func (x *Claims) ProtoReflect() protoreflect.Message
type CookieJWTBearer ¶
type CookieJWTBearer struct{}
type CreateCredentialsRequest ¶
type CreateCredentialsRequest struct { Credentials *Credentials `protobuf:"bytes,1,opt,name=credentials,proto3" json:"credentials,omitempty"` // contains filtered or unexported fields }
func (*CreateCredentialsRequest) Descriptor
deprecated
func (*CreateCredentialsRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateCredentialsRequest.ProtoReflect.Descriptor instead.
func (*CreateCredentialsRequest) GetCredentials ¶
func (x *CreateCredentialsRequest) GetCredentials() *Credentials
func (*CreateCredentialsRequest) ProtoMessage ¶
func (*CreateCredentialsRequest) ProtoMessage()
func (*CreateCredentialsRequest) ProtoReflect ¶
func (x *CreateCredentialsRequest) ProtoReflect() protoreflect.Message
func (*CreateCredentialsRequest) Reset ¶
func (x *CreateCredentialsRequest) Reset()
func (*CreateCredentialsRequest) String ¶
func (x *CreateCredentialsRequest) String() string
func (*CreateCredentialsRequest) Validate ¶
func (this *CreateCredentialsRequest) Validate() error
type CreateCredentialsResponse ¶
type CreateCredentialsResponse struct { UserTaken bool `protobuf:"varint,1,opt,name=user_taken,json=userTaken,proto3" json:"user_taken,omitempty"` EmailTaken bool `protobuf:"varint,2,opt,name=email_taken,json=emailTaken,proto3" json:"email_taken,omitempty"` Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*CreateCredentialsResponse) Descriptor
deprecated
func (*CreateCredentialsResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateCredentialsResponse.ProtoReflect.Descriptor instead.
func (*CreateCredentialsResponse) GetCode ¶
func (x *CreateCredentialsResponse) GetCode() string
func (*CreateCredentialsResponse) GetEmailTaken ¶
func (x *CreateCredentialsResponse) GetEmailTaken() bool
func (*CreateCredentialsResponse) GetUserTaken ¶
func (x *CreateCredentialsResponse) GetUserTaken() bool
func (*CreateCredentialsResponse) ProtoMessage ¶
func (*CreateCredentialsResponse) ProtoMessage()
func (*CreateCredentialsResponse) ProtoReflect ¶
func (x *CreateCredentialsResponse) ProtoReflect() protoreflect.Message
func (*CreateCredentialsResponse) Reset ¶
func (x *CreateCredentialsResponse) Reset()
func (*CreateCredentialsResponse) String ¶
func (x *CreateCredentialsResponse) String() string
func (*CreateCredentialsResponse) Validate ¶
func (this *CreateCredentialsResponse) Validate() error
type CreateTokenRequest ¶
type CreateTokenRequest struct { Sub string `protobuf:"bytes,1,opt,name=sub,proto3" json:"sub,omitempty"` Audience string `protobuf:"bytes,2,opt,name=audience,proto3" json:"audience,omitempty"` Scope []string `protobuf:"bytes,3,rep,name=scope,proto3" json:"scope,omitempty"` ScopeValues map[string]string `` /* 182-byte string literal not displayed */ Data map[string]string `` /* 149-byte string literal not displayed */ // contains filtered or unexported fields }
func (*CreateTokenRequest) Descriptor
deprecated
func (*CreateTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateTokenRequest.ProtoReflect.Descriptor instead.
func (*CreateTokenRequest) GetAudience ¶
func (x *CreateTokenRequest) GetAudience() string
func (*CreateTokenRequest) GetData ¶
func (x *CreateTokenRequest) GetData() map[string]string
func (*CreateTokenRequest) GetScope ¶
func (x *CreateTokenRequest) GetScope() []string
func (*CreateTokenRequest) GetScopeValues ¶
func (x *CreateTokenRequest) GetScopeValues() map[string]string
func (*CreateTokenRequest) GetSub ¶
func (x *CreateTokenRequest) GetSub() string
func (*CreateTokenRequest) ProtoMessage ¶
func (*CreateTokenRequest) ProtoMessage()
func (*CreateTokenRequest) ProtoReflect ¶
func (x *CreateTokenRequest) ProtoReflect() protoreflect.Message
func (*CreateTokenRequest) Reset ¶
func (x *CreateTokenRequest) Reset()
func (*CreateTokenRequest) String ¶
func (x *CreateTokenRequest) String() string
func (*CreateTokenRequest) Validate ¶
func (this *CreateTokenRequest) Validate() error
type CreateTokenResponse ¶
type CreateTokenResponse struct { Jwt *JWT `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"` // contains filtered or unexported fields }
func (*CreateTokenResponse) Descriptor
deprecated
func (*CreateTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateTokenResponse.ProtoReflect.Descriptor instead.
func (*CreateTokenResponse) GetJwt ¶
func (x *CreateTokenResponse) GetJwt() *JWT
func (*CreateTokenResponse) ProtoMessage ¶
func (*CreateTokenResponse) ProtoMessage()
func (*CreateTokenResponse) ProtoReflect ¶
func (x *CreateTokenResponse) ProtoReflect() protoreflect.Message
func (*CreateTokenResponse) Reset ¶
func (x *CreateTokenResponse) Reset()
func (*CreateTokenResponse) String ¶
func (x *CreateTokenResponse) String() string
func (*CreateTokenResponse) Validate ¶
func (this *CreateTokenResponse) Validate() error
type Credentials ¶
type Credentials struct { Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*Credentials) Descriptor
deprecated
func (*Credentials) Descriptor() ([]byte, []int)
Deprecated: Use Credentials.ProtoReflect.Descriptor instead.
func (*Credentials) GetEmail ¶
func (x *Credentials) GetEmail() string
func (*Credentials) GetPassword ¶
func (x *Credentials) GetPassword() string
func (*Credentials) GetSubject ¶
func (x *Credentials) GetSubject() string
func (*Credentials) ProtoMessage ¶
func (*Credentials) ProtoMessage()
func (*Credentials) ProtoReflect ¶
func (x *Credentials) ProtoReflect() protoreflect.Message
func (*Credentials) Reset ¶
func (x *Credentials) Reset()
func (*Credentials) String ¶
func (x *Credentials) String() string
func (*Credentials) Validate ¶
func (this *Credentials) Validate() error
type DeleteJwtRequest ¶
type DeleteJwtRequest struct { Jti string `protobuf:"bytes,1,opt,name=jti,proto3" json:"jti,omitempty"` // contains filtered or unexported fields }
func (*DeleteJwtRequest) Descriptor
deprecated
func (*DeleteJwtRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteJwtRequest.ProtoReflect.Descriptor instead.
func (*DeleteJwtRequest) GetJti ¶
func (x *DeleteJwtRequest) GetJti() string
func (*DeleteJwtRequest) ProtoMessage ¶
func (*DeleteJwtRequest) ProtoMessage()
func (*DeleteJwtRequest) ProtoReflect ¶
func (x *DeleteJwtRequest) ProtoReflect() protoreflect.Message
func (*DeleteJwtRequest) Reset ¶
func (x *DeleteJwtRequest) Reset()
func (*DeleteJwtRequest) String ¶
func (x *DeleteJwtRequest) String() string
func (*DeleteJwtRequest) Validate ¶
func (this *DeleteJwtRequest) Validate() error
type DeleteJwtResponse ¶
type DeleteJwtResponse struct {
// contains filtered or unexported fields
}
func (*DeleteJwtResponse) Descriptor
deprecated
func (*DeleteJwtResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteJwtResponse.ProtoReflect.Descriptor instead.
func (*DeleteJwtResponse) ProtoMessage ¶
func (*DeleteJwtResponse) ProtoMessage()
func (*DeleteJwtResponse) ProtoReflect ¶
func (x *DeleteJwtResponse) ProtoReflect() protoreflect.Message
func (*DeleteJwtResponse) Reset ¶
func (x *DeleteJwtResponse) Reset()
func (*DeleteJwtResponse) String ¶
func (x *DeleteJwtResponse) String() string
func (*DeleteJwtResponse) Validate ¶
func (this *DeleteJwtResponse) Validate() error
type Email ¶
type Email struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` EmailVerified bool `protobuf:"varint,2,opt,name=email_verified,json=emailVerified,proto3" json:"email_verified,omitempty"` // contains filtered or unexported fields }
func (*Email) Descriptor
deprecated
func (*Email) GetEmailVerified ¶
func (*Email) ProtoMessage ¶
func (*Email) ProtoMessage()
func (*Email) ProtoReflect ¶
func (x *Email) ProtoReflect() protoreflect.Message
type EventAction ¶
type EventAction int32
const ( EventAction_Delete EventAction = 0 EventAction_Save EventAction = 1 )
func (EventAction) Descriptor ¶
func (EventAction) Descriptor() protoreflect.EnumDescriptor
func (EventAction) Enum ¶
func (x EventAction) Enum() *EventAction
func (EventAction) EnumDescriptor
deprecated
func (EventAction) EnumDescriptor() ([]byte, []int)
Deprecated: Use EventAction.Descriptor instead.
func (EventAction) Number ¶
func (x EventAction) Number() protoreflect.EnumNumber
func (EventAction) String ¶
func (x EventAction) String() string
func (EventAction) Type ¶
func (EventAction) Type() protoreflect.EnumType
type GetJwtInfoRequest ¶
type GetJwtInfoRequest struct { Jti string `protobuf:"bytes,1,opt,name=jti,proto3" json:"jti,omitempty"` Signature string `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*GetJwtInfoRequest) Descriptor
deprecated
func (*GetJwtInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetJwtInfoRequest.ProtoReflect.Descriptor instead.
func (*GetJwtInfoRequest) GetJti ¶
func (x *GetJwtInfoRequest) GetJti() string
func (*GetJwtInfoRequest) GetSignature ¶
func (x *GetJwtInfoRequest) GetSignature() string
func (*GetJwtInfoRequest) ProtoMessage ¶
func (*GetJwtInfoRequest) ProtoMessage()
func (*GetJwtInfoRequest) ProtoReflect ¶
func (x *GetJwtInfoRequest) ProtoReflect() protoreflect.Message
func (*GetJwtInfoRequest) Reset ¶
func (x *GetJwtInfoRequest) Reset()
func (*GetJwtInfoRequest) String ¶
func (x *GetJwtInfoRequest) String() string
func (*GetJwtInfoRequest) Validate ¶
func (this *GetJwtInfoRequest) Validate() error
type GetJwtInfoResponse ¶
type GetJwtInfoResponse struct { State JWTState `protobuf:"varint,1,opt,name=state,proto3,enum=JWTState" json:"state,omitempty"` // contains filtered or unexported fields }
func (*GetJwtInfoResponse) Descriptor
deprecated
func (*GetJwtInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetJwtInfoResponse.ProtoReflect.Descriptor instead.
func (*GetJwtInfoResponse) GetState ¶
func (x *GetJwtInfoResponse) GetState() JWTState
func (*GetJwtInfoResponse) ProtoMessage ¶
func (*GetJwtInfoResponse) ProtoMessage()
func (*GetJwtInfoResponse) ProtoReflect ¶
func (x *GetJwtInfoResponse) ProtoReflect() protoreflect.Message
func (*GetJwtInfoResponse) Reset ¶
func (x *GetJwtInfoResponse) Reset()
func (*GetJwtInfoResponse) String ¶
func (x *GetJwtInfoResponse) String() string
func (*GetJwtInfoResponse) Validate ¶
func (this *GetJwtInfoResponse) Validate() error
type JWT ¶
type JWT struct { Header *JWTHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Claims *Claims `protobuf:"bytes,2,opt,name=claims,proto3" json:"claims,omitempty"` Signature string `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func TokenFromContext ¶
func (*JWT) Descriptor
deprecated
func (*JWT) EcdsaBasedSignature ¶
func (x *JWT) EcdsaBasedSignature(key *ecdsa.PrivateKey) (string, error)
func (*JWT) GetSignature ¶
func (*JWT) ProtoMessage ¶
func (*JWT) ProtoMessage()
func (*JWT) ProtoReflect ¶
func (x *JWT) ProtoReflect() protoreflect.Message
func (*JWT) SecretBasedSignature ¶ added in v1.0.0
type JWTHeader ¶
type JWTHeader struct { Typ string `protobuf:"bytes,1,opt,name=typ,proto3" json:"typ,omitempty"` Alg string `protobuf:"bytes,2,opt,name=alg,proto3" json:"alg,omitempty"` Kid string `protobuf:"bytes,3,opt,name=kid,proto3" json:"kid,omitempty"` // contains filtered or unexported fields }
func (*JWTHeader) Descriptor
deprecated
func (*JWTHeader) ProtoMessage ¶
func (*JWTHeader) ProtoMessage()
func (*JWTHeader) ProtoReflect ¶
func (x *JWTHeader) ProtoReflect() protoreflect.Message
type JWTPurpose ¶
type JWTPurpose int32
const ( JWTPurpose_AUTHENTICATION JWTPurpose = 0 JWTPurpose_RESOURCES_ACCESS JWTPurpose = 1 JWTPurpose_VALIDATION JWTPurpose = 2 )
func (JWTPurpose) Descriptor ¶
func (JWTPurpose) Descriptor() protoreflect.EnumDescriptor
func (JWTPurpose) Enum ¶
func (x JWTPurpose) Enum() *JWTPurpose
func (JWTPurpose) EnumDescriptor
deprecated
func (JWTPurpose) EnumDescriptor() ([]byte, []int)
Deprecated: Use JWTPurpose.Descriptor instead.
func (JWTPurpose) Number ¶
func (x JWTPurpose) Number() protoreflect.EnumNumber
func (JWTPurpose) String ¶
func (x JWTPurpose) String() string
func (JWTPurpose) Type ¶
func (JWTPurpose) Type() protoreflect.EnumType
type JWTState ¶
type JWTState int32
func (JWTState) Descriptor ¶
func (JWTState) Descriptor() protoreflect.EnumDescriptor
func (JWTState) EnumDescriptor
deprecated
func (JWTState) Number ¶
func (x JWTState) Number() protoreflect.EnumNumber
func (JWTState) Type ¶
func (JWTState) Type() protoreflect.EnumType
type JwtInfo ¶
type JwtInfo struct { Iss string `protobuf:"bytes,1,opt,name=iss,proto3" json:"iss,omitempty"` Aud string `protobuf:"bytes,2,opt,name=aud,proto3" json:"aud,omitempty"` Jti string `protobuf:"bytes,3,opt,name=jti,proto3" json:"jti,omitempty"` Nbf int64 `protobuf:"varint,4,opt,name=nbf,proto3" json:"nbf,omitempty"` Exp int64 `protobuf:"varint,5,opt,name=exp,proto3" json:"exp,omitempty"` State JWTState `protobuf:"varint,6,opt,name=state,proto3,enum=JWTState" json:"state,omitempty"` // contains filtered or unexported fields }
func (*JwtInfo) Descriptor
deprecated
func (*JwtInfo) ProtoMessage ¶
func (*JwtInfo) ProtoMessage()
func (*JwtInfo) ProtoReflect ¶
func (x *JwtInfo) ProtoReflect() protoreflect.Message
type Profile ¶
type Profile struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` FamilyName string `protobuf:"bytes,2,opt,name=family_name,json=familyName,proto3" json:"family_name,omitempty"` GivenName string `protobuf:"bytes,3,opt,name=given_name,json=givenName,proto3" json:"given_name,omitempty"` MiddleName string `protobuf:"bytes,4,opt,name=middle_name,json=middleName,proto3" json:"middle_name,omitempty"` Nickname string `protobuf:"bytes,5,opt,name=nickname,proto3" json:"nickname,omitempty"` Picture string `protobuf:"bytes,6,opt,name=picture,proto3" json:"picture,omitempty"` UpdatedAt int64 `protobuf:"varint,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*Profile) Descriptor
deprecated
func (*Profile) GetFamilyName ¶
func (*Profile) GetGivenName ¶
func (*Profile) GetMiddleName ¶
func (*Profile) GetNickname ¶
func (*Profile) GetPicture ¶
func (*Profile) GetUpdatedAt ¶
func (*Profile) ProtoMessage ¶
func (*Profile) ProtoMessage()
func (*Profile) ProtoReflect ¶
func (x *Profile) ProtoReflect() protoreflect.Message
type SaveJwtRequest ¶
type SaveJwtRequest struct { Info *JwtInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` // contains filtered or unexported fields }
func (*SaveJwtRequest) Descriptor
deprecated
func (*SaveJwtRequest) Descriptor() ([]byte, []int)
Deprecated: Use SaveJwtRequest.ProtoReflect.Descriptor instead.
func (*SaveJwtRequest) GetInfo ¶
func (x *SaveJwtRequest) GetInfo() *JwtInfo
func (*SaveJwtRequest) ProtoMessage ¶
func (*SaveJwtRequest) ProtoMessage()
func (*SaveJwtRequest) ProtoReflect ¶
func (x *SaveJwtRequest) ProtoReflect() protoreflect.Message
func (*SaveJwtRequest) Reset ¶
func (x *SaveJwtRequest) Reset()
func (*SaveJwtRequest) String ¶
func (x *SaveJwtRequest) String() string
func (*SaveJwtRequest) Validate ¶
func (this *SaveJwtRequest) Validate() error
type SaveJwtResponse ¶
type SaveJwtResponse struct {
// contains filtered or unexported fields
}
func (*SaveJwtResponse) Descriptor
deprecated
func (*SaveJwtResponse) Descriptor() ([]byte, []int)
Deprecated: Use SaveJwtResponse.ProtoReflect.Descriptor instead.
func (*SaveJwtResponse) ProtoMessage ¶
func (*SaveJwtResponse) ProtoMessage()
func (*SaveJwtResponse) ProtoReflect ¶
func (x *SaveJwtResponse) ProtoReflect() protoreflect.Message
func (*SaveJwtResponse) Reset ¶
func (x *SaveJwtResponse) Reset()
func (*SaveJwtResponse) String ¶
func (x *SaveJwtResponse) String() string
func (*SaveJwtResponse) Validate ¶
func (this *SaveJwtResponse) Validate() error
type SetPasswordRequest ¶
type SetPasswordRequest struct { User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` OldPassword string `protobuf:"bytes,3,opt,name=old_password,json=oldPassword,proto3" json:"old_password,omitempty"` NewPassword string `protobuf:"bytes,4,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"` // contains filtered or unexported fields }
func (*SetPasswordRequest) Descriptor
deprecated
func (*SetPasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetPasswordRequest.ProtoReflect.Descriptor instead.
func (*SetPasswordRequest) GetEmail ¶
func (x *SetPasswordRequest) GetEmail() string
func (*SetPasswordRequest) GetNewPassword ¶
func (x *SetPasswordRequest) GetNewPassword() string
func (*SetPasswordRequest) GetOldPassword ¶
func (x *SetPasswordRequest) GetOldPassword() string
func (*SetPasswordRequest) GetUser ¶
func (x *SetPasswordRequest) GetUser() string
func (*SetPasswordRequest) ProtoMessage ¶
func (*SetPasswordRequest) ProtoMessage()
func (*SetPasswordRequest) ProtoReflect ¶
func (x *SetPasswordRequest) ProtoReflect() protoreflect.Message
func (*SetPasswordRequest) Reset ¶
func (x *SetPasswordRequest) Reset()
func (*SetPasswordRequest) String ¶
func (x *SetPasswordRequest) String() string
func (*SetPasswordRequest) Validate ¶
func (this *SetPasswordRequest) Validate() error
type SetPasswordResponse ¶
type SetPasswordResponse struct { AlreadyUsed bool `protobuf:"varint,1,opt,name=already_used,json=alreadyUsed,proto3" json:"already_used,omitempty"` // contains filtered or unexported fields }
func (*SetPasswordResponse) Descriptor
deprecated
func (*SetPasswordResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetPasswordResponse.ProtoReflect.Descriptor instead.
func (*SetPasswordResponse) GetAlreadyUsed ¶
func (x *SetPasswordResponse) GetAlreadyUsed() bool
func (*SetPasswordResponse) ProtoMessage ¶
func (*SetPasswordResponse) ProtoMessage()
func (*SetPasswordResponse) ProtoReflect ¶
func (x *SetPasswordResponse) ProtoReflect() protoreflect.Message
func (*SetPasswordResponse) Reset ¶
func (x *SetPasswordResponse) Reset()
func (*SetPasswordResponse) String ¶
func (x *SetPasswordResponse) String() string
func (*SetPasswordResponse) Validate ¶
func (this *SetPasswordResponse) Validate() error
type State ¶
type State struct { Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` ApiEndpoint string `protobuf:"bytes,2,opt,name=api_endpoint,json=apiEndpoint,proto3" json:"api_endpoint,omitempty"` // contains filtered or unexported fields }
func (*State) Descriptor
deprecated
func (*State) GetApiEndpoint ¶
func (*State) GetService ¶
func (*State) ProtoMessage ¶
func (*State) ProtoMessage()
func (*State) ProtoReflect ¶
func (x *State) ProtoReflect() protoreflect.Message
type StringTokenVerifier ¶
type StringTokenVerifier struct {
// contains filtered or unexported fields
}
func NewStringTokenVerifier ¶
func NewStringTokenVerifier(tv TokenVerifier) *StringTokenVerifier
type SyncMessage ¶
type SyncMessage struct { Action EventAction `protobuf:"varint,1,opt,name=action,proto3,enum=EventAction" json:"action,omitempty"` Jti string `protobuf:"bytes,2,opt,name=jti,proto3" json:"jti,omitempty"` Info *JwtInfo `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"` // contains filtered or unexported fields }
func (*SyncMessage) Descriptor
deprecated
func (*SyncMessage) Descriptor() ([]byte, []int)
Deprecated: Use SyncMessage.ProtoReflect.Descriptor instead.
func (*SyncMessage) GetAction ¶
func (x *SyncMessage) GetAction() EventAction
func (*SyncMessage) GetInfo ¶
func (x *SyncMessage) GetInfo() *JwtInfo
func (*SyncMessage) GetJti ¶
func (x *SyncMessage) GetJti() string
func (*SyncMessage) ProtoMessage ¶
func (*SyncMessage) ProtoMessage()
func (*SyncMessage) ProtoReflect ¶
func (x *SyncMessage) ProtoReflect() protoreflect.Message
func (*SyncMessage) Reset ¶
func (x *SyncMessage) Reset()
func (*SyncMessage) String ¶
func (x *SyncMessage) String() string
func (*SyncMessage) Validate ¶
func (this *SyncMessage) Validate() error
type TokenIntrospection ¶
type TokenIntrospection struct { Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"` Iss string `protobuf:"bytes,2,opt,name=iss,proto3" json:"iss,omitempty"` Aud string `protobuf:"bytes,3,opt,name=aud,proto3" json:"aud,omitempty"` Iat int64 `protobuf:"varint,4,opt,name=iat,proto3" json:"iat,omitempty"` Exp int64 `protobuf:"varint,5,opt,name=exp,proto3" json:"exp,omitempty"` ClientId string `protobuf:"bytes,6,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` Scope string `protobuf:"bytes,7,opt,name=scope,proto3" json:"scope,omitempty"` Sub string `protobuf:"bytes,8,opt,name=sub,proto3" json:"sub,omitempty"` Jti string `protobuf:"bytes,9,opt,name=jti,proto3" json:"jti,omitempty"` // contains filtered or unexported fields }
func (*TokenIntrospection) Descriptor
deprecated
func (*TokenIntrospection) Descriptor() ([]byte, []int)
Deprecated: Use TokenIntrospection.ProtoReflect.Descriptor instead.
func (*TokenIntrospection) GetActive ¶
func (x *TokenIntrospection) GetActive() bool
func (*TokenIntrospection) GetAud ¶
func (x *TokenIntrospection) GetAud() string
func (*TokenIntrospection) GetClientId ¶
func (x *TokenIntrospection) GetClientId() string
func (*TokenIntrospection) GetExp ¶
func (x *TokenIntrospection) GetExp() int64
func (*TokenIntrospection) GetIat ¶
func (x *TokenIntrospection) GetIat() int64
func (*TokenIntrospection) GetIss ¶
func (x *TokenIntrospection) GetIss() string
func (*TokenIntrospection) GetJti ¶
func (x *TokenIntrospection) GetJti() string
func (*TokenIntrospection) GetScope ¶
func (x *TokenIntrospection) GetScope() string
func (*TokenIntrospection) GetSub ¶
func (x *TokenIntrospection) GetSub() string
func (*TokenIntrospection) ProtoMessage ¶
func (*TokenIntrospection) ProtoMessage()
func (*TokenIntrospection) ProtoReflect ¶
func (x *TokenIntrospection) ProtoReflect() protoreflect.Message
func (*TokenIntrospection) Reset ¶
func (x *TokenIntrospection) Reset()
func (*TokenIntrospection) String ¶
func (x *TokenIntrospection) String() string
func (*TokenIntrospection) Validate ¶
func (this *TokenIntrospection) Validate() error
type TokenStoreServiceClient ¶
type TokenStoreServiceClient interface { Sync(ctx context.Context, opts ...grpc.CallOption) (TokenStoreService_SyncClient, error) SaveJwt(ctx context.Context, in *SaveJwtRequest, opts ...grpc.CallOption) (*SaveJwtResponse, error) DeleteJwt(ctx context.Context, in *DeleteJwtRequest, opts ...grpc.CallOption) (*DeleteJwtResponse, error) GetJwtInfo(ctx context.Context, in *GetJwtInfoRequest, opts ...grpc.CallOption) (*GetJwtInfoResponse, error) }
TokenStoreServiceClient is the client API for TokenStoreService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewTokenStoreServiceClient ¶
func NewTokenStoreServiceClient(cc grpc.ClientConnInterface) TokenStoreServiceClient
type TokenStoreServiceServer ¶
type TokenStoreServiceServer interface { Sync(TokenStoreService_SyncServer) error SaveJwt(context.Context, *SaveJwtRequest) (*SaveJwtResponse, error) DeleteJwt(context.Context, *DeleteJwtRequest) (*DeleteJwtResponse, error) GetJwtInfo(context.Context, *GetJwtInfoRequest) (*GetJwtInfoResponse, error) // contains filtered or unexported methods }
TokenStoreServiceServer is the server API for TokenStoreService service. All implementations must embed UnimplementedTokenStoreServiceServer for forward compatibility
type TokenStoreService_SyncClient ¶
type TokenStoreService_SyncClient interface { Send(*SyncMessage) error Recv() (*SyncMessage, error) grpc.ClientStream }
type TokenStoreService_SyncServer ¶
type TokenStoreService_SyncServer interface { Send(*SyncMessage) error Recv() (*SyncMessage, error) grpc.ServerStream }
type TokenVerifier ¶
type UnimplementedAuthenticationServiceServer ¶
type UnimplementedAuthenticationServiceServer struct { }
UnimplementedAuthenticationServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthenticationServiceServer) Authenticate ¶
func (UnimplementedAuthenticationServiceServer) Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
func (UnimplementedAuthenticationServiceServer) CreateCredentials ¶
func (UnimplementedAuthenticationServiceServer) CreateCredentials(context.Context, *CreateCredentialsRequest) (*CreateCredentialsResponse, error)
func (UnimplementedAuthenticationServiceServer) SetPassword ¶
func (UnimplementedAuthenticationServiceServer) SetPassword(context.Context, *SetPasswordRequest) (*SetPasswordResponse, error)
func (UnimplementedAuthenticationServiceServer) UpdateEmail ¶
func (UnimplementedAuthenticationServiceServer) UpdateEmail(context.Context, *UpdateEmailRequest) (*UpdateEmailResponse, error)
type UnimplementedTokenStoreServiceServer ¶
type UnimplementedTokenStoreServiceServer struct { }
UnimplementedTokenStoreServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedTokenStoreServiceServer) DeleteJwt ¶
func (UnimplementedTokenStoreServiceServer) DeleteJwt(context.Context, *DeleteJwtRequest) (*DeleteJwtResponse, error)
func (UnimplementedTokenStoreServiceServer) GetJwtInfo ¶
func (UnimplementedTokenStoreServiceServer) GetJwtInfo(context.Context, *GetJwtInfoRequest) (*GetJwtInfoResponse, error)
func (UnimplementedTokenStoreServiceServer) SaveJwt ¶
func (UnimplementedTokenStoreServiceServer) SaveJwt(context.Context, *SaveJwtRequest) (*SaveJwtResponse, error)
type UnsafeAuthenticationServiceServer ¶
type UnsafeAuthenticationServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAuthenticationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthenticationServiceServer will result in compilation errors.
type UnsafeTokenStoreServiceServer ¶
type UnsafeTokenStoreServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTokenStoreServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TokenStoreServiceServer will result in compilation errors.
type UpdateEmailRequest ¶
type UpdateEmailRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` OldEmail string `protobuf:"bytes,2,opt,name=old_email,json=oldEmail,proto3" json:"old_email,omitempty"` NewEmail string `protobuf:"bytes,3,opt,name=new_email,json=newEmail,proto3" json:"new_email,omitempty"` // contains filtered or unexported fields }
func (*UpdateEmailRequest) Descriptor
deprecated
func (*UpdateEmailRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateEmailRequest.ProtoReflect.Descriptor instead.
func (*UpdateEmailRequest) GetNewEmail ¶
func (x *UpdateEmailRequest) GetNewEmail() string
func (*UpdateEmailRequest) GetOldEmail ¶
func (x *UpdateEmailRequest) GetOldEmail() string
func (*UpdateEmailRequest) GetUsername ¶
func (x *UpdateEmailRequest) GetUsername() string
func (*UpdateEmailRequest) ProtoMessage ¶
func (*UpdateEmailRequest) ProtoMessage()
func (*UpdateEmailRequest) ProtoReflect ¶
func (x *UpdateEmailRequest) ProtoReflect() protoreflect.Message
func (*UpdateEmailRequest) Reset ¶
func (x *UpdateEmailRequest) Reset()
func (*UpdateEmailRequest) String ¶
func (x *UpdateEmailRequest) String() string
func (*UpdateEmailRequest) Validate ¶
func (this *UpdateEmailRequest) Validate() error
type UpdateEmailResponse ¶
type UpdateEmailResponse struct {
// contains filtered or unexported fields
}
func (*UpdateEmailResponse) Descriptor
deprecated
func (*UpdateEmailResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateEmailResponse.ProtoReflect.Descriptor instead.
func (*UpdateEmailResponse) ProtoMessage ¶
func (*UpdateEmailResponse) ProtoMessage()
func (*UpdateEmailResponse) ProtoReflect ¶
func (x *UpdateEmailResponse) ProtoReflect() protoreflect.Message
func (*UpdateEmailResponse) Reset ¶
func (x *UpdateEmailResponse) Reset()
func (*UpdateEmailResponse) String ¶
func (x *UpdateEmailResponse) String() string
func (*UpdateEmailResponse) Validate ¶
func (this *UpdateEmailResponse) Validate() error