Documentation ¶
Index ¶
- Variables
- func RegisterAuthenticationServiceServer(s grpc.ServiceRegistrar, srv AuthenticationServiceServer)
- type AuthenticationServiceClient
- type AuthenticationServiceServer
- type CreateLoginRequest
- func (*CreateLoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateLoginRequest) GetCredential() *session.Credential
- func (*CreateLoginRequest) ProtoMessage()
- func (x *CreateLoginRequest) ProtoReflect() protoreflect.Message
- func (x *CreateLoginRequest) Reset()
- func (x *CreateLoginRequest) String() string
- type CreateLoginResponse
- func (*CreateLoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateLoginResponse) GetError() *CreateLoginResponse_Error
- func (x *CreateLoginResponse) GetSuccess() *CreateLoginResponse_Success
- func (*CreateLoginResponse) ProtoMessage()
- func (x *CreateLoginResponse) ProtoReflect() protoreflect.Message
- func (x *CreateLoginResponse) Reset()
- func (x *CreateLoginResponse) String() string
- type CreateLoginResponse_Error
- func (*CreateLoginResponse_Error) Descriptor() ([]byte, []int)deprecated
- func (x *CreateLoginResponse_Error) GetCode() CreateLoginResponse_Error_ErrorCode
- func (x *CreateLoginResponse_Error) GetMessage() string
- func (*CreateLoginResponse_Error) ProtoMessage()
- func (x *CreateLoginResponse_Error) ProtoReflect() protoreflect.Message
- func (x *CreateLoginResponse_Error) Reset()
- func (x *CreateLoginResponse_Error) String() string
- type CreateLoginResponse_Error_ErrorCode
- func (CreateLoginResponse_Error_ErrorCode) Descriptor() protoreflect.EnumDescriptor
- func (x CreateLoginResponse_Error_ErrorCode) Enum() *CreateLoginResponse_Error_ErrorCode
- func (CreateLoginResponse_Error_ErrorCode) EnumDescriptor() ([]byte, []int)deprecated
- func (x CreateLoginResponse_Error_ErrorCode) Number() protoreflect.EnumNumber
- func (x CreateLoginResponse_Error_ErrorCode) String() string
- func (CreateLoginResponse_Error_ErrorCode) Type() protoreflect.EnumType
- type CreateLoginResponse_Success
- func (*CreateLoginResponse_Success) Descriptor() ([]byte, []int)deprecated
- func (x *CreateLoginResponse_Success) GetMessage() string
- func (*CreateLoginResponse_Success) ProtoMessage()
- func (x *CreateLoginResponse_Success) ProtoReflect() protoreflect.Message
- func (x *CreateLoginResponse_Success) Reset()
- func (x *CreateLoginResponse_Success) String() string
- type Geolocation
- type GetAuthorizationTokenRequest
- func (*GetAuthorizationTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAuthorizationTokenRequest) GetRoles() []string
- func (x *GetAuthorizationTokenRequest) GetSession() *session.Session
- func (*GetAuthorizationTokenRequest) ProtoMessage()
- func (x *GetAuthorizationTokenRequest) ProtoReflect() protoreflect.Message
- func (x *GetAuthorizationTokenRequest) Reset()
- func (x *GetAuthorizationTokenRequest) String() string
- type GetAuthorizationTokenResponse
- func (*GetAuthorizationTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAuthorizationTokenResponse) GetError() *GetAuthorizationTokenResponse_Error
- func (x *GetAuthorizationTokenResponse) GetSuccess() *GetAuthorizationTokenResponse_Success
- func (*GetAuthorizationTokenResponse) ProtoMessage()
- func (x *GetAuthorizationTokenResponse) ProtoReflect() protoreflect.Message
- func (x *GetAuthorizationTokenResponse) Reset()
- func (x *GetAuthorizationTokenResponse) String() string
- type GetAuthorizationTokenResponse_Error
- func (*GetAuthorizationTokenResponse_Error) Descriptor() ([]byte, []int)deprecated
- func (x *GetAuthorizationTokenResponse_Error) GetCode() GetAuthorizationTokenResponse_Error_ErrorCode
- func (x *GetAuthorizationTokenResponse_Error) GetMessage() string
- func (*GetAuthorizationTokenResponse_Error) ProtoMessage()
- func (x *GetAuthorizationTokenResponse_Error) ProtoReflect() protoreflect.Message
- func (x *GetAuthorizationTokenResponse_Error) Reset()
- func (x *GetAuthorizationTokenResponse_Error) String() string
- type GetAuthorizationTokenResponse_Error_ErrorCode
- func (GetAuthorizationTokenResponse_Error_ErrorCode) Descriptor() protoreflect.EnumDescriptor
- func (x GetAuthorizationTokenResponse_Error_ErrorCode) Enum() *GetAuthorizationTokenResponse_Error_ErrorCode
- func (GetAuthorizationTokenResponse_Error_ErrorCode) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetAuthorizationTokenResponse_Error_ErrorCode) Number() protoreflect.EnumNumber
- func (x GetAuthorizationTokenResponse_Error_ErrorCode) String() string
- func (GetAuthorizationTokenResponse_Error_ErrorCode) Type() protoreflect.EnumType
- type GetAuthorizationTokenResponse_Success
- func (*GetAuthorizationTokenResponse_Success) Descriptor() ([]byte, []int)deprecated
- func (x *GetAuthorizationTokenResponse_Success) GetMessage() string
- func (x *GetAuthorizationTokenResponse_Success) GetToken() map[string]string
- func (*GetAuthorizationTokenResponse_Success) ProtoMessage()
- func (x *GetAuthorizationTokenResponse_Success) ProtoReflect() protoreflect.Message
- func (x *GetAuthorizationTokenResponse_Success) Reset()
- func (x *GetAuthorizationTokenResponse_Success) String() string
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetIdToken() string
- func (x *LoginRequest) GetPassword() string
- func (x *LoginRequest) GetUsername() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse) GetError() *LoginResponse_Error
- func (x *LoginResponse) GetSuccess() *LoginResponse_Success
- func (*LoginResponse) ProtoMessage()
- func (x *LoginResponse) ProtoReflect() protoreflect.Message
- func (x *LoginResponse) Reset()
- func (x *LoginResponse) String() string
- type LoginResponse_Error
- func (*LoginResponse_Error) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse_Error) GetCode() LoginResponse_Error_ErrorCode
- func (x *LoginResponse_Error) GetMessage() string
- func (*LoginResponse_Error) ProtoMessage()
- func (x *LoginResponse_Error) ProtoReflect() protoreflect.Message
- func (x *LoginResponse_Error) Reset()
- func (x *LoginResponse_Error) String() string
- type LoginResponse_Error_ErrorCode
- func (LoginResponse_Error_ErrorCode) Descriptor() protoreflect.EnumDescriptor
- func (x LoginResponse_Error_ErrorCode) Enum() *LoginResponse_Error_ErrorCode
- func (LoginResponse_Error_ErrorCode) EnumDescriptor() ([]byte, []int)deprecated
- func (x LoginResponse_Error_ErrorCode) Number() protoreflect.EnumNumber
- func (x LoginResponse_Error_ErrorCode) String() string
- func (LoginResponse_Error_ErrorCode) Type() protoreflect.EnumType
- type LoginResponse_Success
- func (*LoginResponse_Success) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse_Success) GetSession() *session.Session
- func (*LoginResponse_Success) ProtoMessage()
- func (x *LoginResponse_Success) ProtoReflect() protoreflect.Message
- func (x *LoginResponse_Success) Reset()
- func (x *LoginResponse_Success) String() string
- type LogoutRequest
- func (*LogoutRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LogoutRequest) GetSession() *session.Session
- func (x *LogoutRequest) GetUserID() *session.OIDCClaim
- func (*LogoutRequest) ProtoMessage()
- func (x *LogoutRequest) ProtoReflect() protoreflect.Message
- func (x *LogoutRequest) Reset()
- func (x *LogoutRequest) String() string
- type LogoutResponse
- func (*LogoutResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LogoutResponse) GetError() *LogoutResponse_Error
- func (x *LogoutResponse) GetSuccess() *LogoutResponse_Success
- func (*LogoutResponse) ProtoMessage()
- func (x *LogoutResponse) ProtoReflect() protoreflect.Message
- func (x *LogoutResponse) Reset()
- func (x *LogoutResponse) String() string
- type LogoutResponse_Error
- func (*LogoutResponse_Error) Descriptor() ([]byte, []int)deprecated
- func (x *LogoutResponse_Error) GetCode() LogoutResponse_Error_ErrorCode
- func (x *LogoutResponse_Error) GetMessage() string
- func (*LogoutResponse_Error) ProtoMessage()
- func (x *LogoutResponse_Error) ProtoReflect() protoreflect.Message
- func (x *LogoutResponse_Error) Reset()
- func (x *LogoutResponse_Error) String() string
- type LogoutResponse_Error_ErrorCode
- func (LogoutResponse_Error_ErrorCode) Descriptor() protoreflect.EnumDescriptor
- func (x LogoutResponse_Error_ErrorCode) Enum() *LogoutResponse_Error_ErrorCode
- func (LogoutResponse_Error_ErrorCode) EnumDescriptor() ([]byte, []int)deprecated
- func (x LogoutResponse_Error_ErrorCode) Number() protoreflect.EnumNumber
- func (x LogoutResponse_Error_ErrorCode) String() string
- func (LogoutResponse_Error_ErrorCode) Type() protoreflect.EnumType
- type LogoutResponse_Success
- type SigningKeyRequest
- type SigningKeyResponse
- func (*SigningKeyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SigningKeyResponse) GetError() *SigningKeyResponse_Error
- func (x *SigningKeyResponse) GetSuccess() *SigningKeyResponse_Success
- func (*SigningKeyResponse) ProtoMessage()
- func (x *SigningKeyResponse) ProtoReflect() protoreflect.Message
- func (x *SigningKeyResponse) Reset()
- func (x *SigningKeyResponse) String() string
- type SigningKeyResponse_Error
- func (*SigningKeyResponse_Error) Descriptor() ([]byte, []int)deprecated
- func (x *SigningKeyResponse_Error) GetCode() SigningKeyResponse_Error_ErrorCode
- func (x *SigningKeyResponse_Error) GetMessage() string
- func (*SigningKeyResponse_Error) ProtoMessage()
- func (x *SigningKeyResponse_Error) ProtoReflect() protoreflect.Message
- func (x *SigningKeyResponse_Error) Reset()
- func (x *SigningKeyResponse_Error) String() string
- type SigningKeyResponse_Error_ErrorCode
- func (SigningKeyResponse_Error_ErrorCode) Descriptor() protoreflect.EnumDescriptor
- func (x SigningKeyResponse_Error_ErrorCode) Enum() *SigningKeyResponse_Error_ErrorCode
- func (SigningKeyResponse_Error_ErrorCode) EnumDescriptor() ([]byte, []int)deprecated
- func (x SigningKeyResponse_Error_ErrorCode) Number() protoreflect.EnumNumber
- func (x SigningKeyResponse_Error_ErrorCode) String() string
- func (SigningKeyResponse_Error_ErrorCode) Type() protoreflect.EnumType
- type SigningKeyResponse_Success
- func (*SigningKeyResponse_Success) Descriptor() ([]byte, []int)deprecated
- func (x *SigningKeyResponse_Success) GetKeyId() string
- func (x *SigningKeyResponse_Success) GetKeyPem() string
- func (*SigningKeyResponse_Success) ProtoMessage()
- func (x *SigningKeyResponse_Success) ProtoReflect() protoreflect.Message
- func (x *SigningKeyResponse_Success) Reset()
- func (x *SigningKeyResponse_Success) String() string
- type TrackLoginRequest
- func (*TrackLoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TrackLoginRequest) GetData() *TrackingData
- func (*TrackLoginRequest) ProtoMessage()
- func (x *TrackLoginRequest) ProtoReflect() protoreflect.Message
- func (x *TrackLoginRequest) Reset()
- func (x *TrackLoginRequest) String() string
- type TrackLoginResponse
- func (*TrackLoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TrackLoginResponse) GetError() *TrackLoginResponse_Error
- func (x *TrackLoginResponse) GetSuccess() *TrackLoginResponse_Success
- func (*TrackLoginResponse) ProtoMessage()
- func (x *TrackLoginResponse) ProtoReflect() protoreflect.Message
- func (x *TrackLoginResponse) Reset()
- func (x *TrackLoginResponse) String() string
- type TrackLoginResponse_Error
- func (*TrackLoginResponse_Error) Descriptor() ([]byte, []int)deprecated
- func (x *TrackLoginResponse_Error) GetCode() TrackLoginResponse_Error_ErrorCode
- func (x *TrackLoginResponse_Error) GetMessage() string
- func (*TrackLoginResponse_Error) ProtoMessage()
- func (x *TrackLoginResponse_Error) ProtoReflect() protoreflect.Message
- func (x *TrackLoginResponse_Error) Reset()
- func (x *TrackLoginResponse_Error) String() string
- type TrackLoginResponse_Error_ErrorCode
- func (TrackLoginResponse_Error_ErrorCode) Descriptor() protoreflect.EnumDescriptor
- func (x TrackLoginResponse_Error_ErrorCode) Enum() *TrackLoginResponse_Error_ErrorCode
- func (TrackLoginResponse_Error_ErrorCode) EnumDescriptor() ([]byte, []int)deprecated
- func (x TrackLoginResponse_Error_ErrorCode) Number() protoreflect.EnumNumber
- func (x TrackLoginResponse_Error_ErrorCode) String() string
- func (TrackLoginResponse_Error_ErrorCode) Type() protoreflect.EnumType
- type TrackLoginResponse_Success
- type TrackingData
- func (*TrackingData) Descriptor() ([]byte, []int)deprecated
- func (x *TrackingData) GetClientTime() *timestamppb.Timestamp
- func (x *TrackingData) GetDevice() string
- func (x *TrackingData) GetLocation() *Geolocation
- func (x *TrackingData) GetNonce() int64
- func (*TrackingData) ProtoMessage()
- func (x *TrackingData) ProtoReflect() protoreflect.Message
- func (x *TrackingData) Reset()
- func (x *TrackingData) String() string
- type UnimplementedAuthenticationServiceServer
- func (UnimplementedAuthenticationServiceServer) CreateLogin(context.Context, *CreateLoginRequest) (*CreateLoginResponse, error)
- func (UnimplementedAuthenticationServiceServer) GetAuthorizationToken(context.Context, *GetAuthorizationTokenRequest) (*GetAuthorizationTokenResponse, error)
- func (UnimplementedAuthenticationServiceServer) GetSigningKey(context.Context, *SigningKeyRequest) (*SigningKeyResponse, error)
- func (UnimplementedAuthenticationServiceServer) GoogleLogin(context.Context, *LoginRequest) (*LoginResponse, error)
- func (UnimplementedAuthenticationServiceServer) Logout(context.Context, *LogoutRequest) (*LogoutResponse, error)
- func (UnimplementedAuthenticationServiceServer) TrackLogin(context.Context, *TrackLoginRequest) (*TrackLoginResponse, error)
- func (UnimplementedAuthenticationServiceServer) UserPasswordLogin(context.Context, *LoginRequest) (*LoginResponse, error)
- type UnsafeAuthenticationServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( GetAuthorizationTokenResponse_Error_ErrorCode_name = map[int32]string{ 0: "ERROR_SERVER_ERROR", 1: "ERROR_ROLE_REJECTED", } GetAuthorizationTokenResponse_Error_ErrorCode_value = map[string]int32{ "ERROR_SERVER_ERROR": 0, "ERROR_ROLE_REJECTED": 1, } )
Enum value maps for GetAuthorizationTokenResponse_Error_ErrorCode.
var ( CreateLoginResponse_Error_ErrorCode_name = map[int32]string{ 0: "ERROR_INVALID_CREDENTIAL", 1: "ERROR_WEAK_PASSWORD", 2: "ERROR_SERVER_ERROR", } CreateLoginResponse_Error_ErrorCode_value = map[string]int32{ "ERROR_INVALID_CREDENTIAL": 0, "ERROR_WEAK_PASSWORD": 1, "ERROR_SERVER_ERROR": 2, } )
Enum value maps for CreateLoginResponse_Error_ErrorCode.
var ( LoginResponse_Error_ErrorCode_name = map[int32]string{ 0: "ERROR_UNSUPPORTED_LOGIN_TYPE", 1: "ERROR_INVALID_TOKEN", 2: "ERROR_SERVER_ERROR", 3: "ERROR_INVALID_CREDENTIAL", } LoginResponse_Error_ErrorCode_value = map[string]int32{ "ERROR_UNSUPPORTED_LOGIN_TYPE": 0, "ERROR_INVALID_TOKEN": 1, "ERROR_SERVER_ERROR": 2, "ERROR_INVALID_CREDENTIAL": 3, } )
Enum value maps for LoginResponse_Error_ErrorCode.
var ( LogoutResponse_Error_ErrorCode_name = map[int32]string{ 0: "ERROR_SERVER_ERROR", 1: "ERROR_AUTHORIZATION_ERROR", } LogoutResponse_Error_ErrorCode_value = map[string]int32{ "ERROR_SERVER_ERROR": 0, "ERROR_AUTHORIZATION_ERROR": 1, } )
Enum value maps for LogoutResponse_Error_ErrorCode.
var ( SigningKeyResponse_Error_ErrorCode_name = map[int32]string{ 0: "ERROR_SERVER_ERROR", } SigningKeyResponse_Error_ErrorCode_value = map[string]int32{ "ERROR_SERVER_ERROR": 0, } )
Enum value maps for SigningKeyResponse_Error_ErrorCode.
var ( TrackLoginResponse_Error_ErrorCode_name = map[int32]string{ 0: "ERROR_SERVER_ERROR", } TrackLoginResponse_Error_ErrorCode_value = map[string]int32{ "ERROR_SERVER_ERROR": 0, } )
Enum value maps for TrackLoginResponse_Error_ErrorCode.
var AuthenticationService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "authapi.AuthenticationService", HandlerType: (*AuthenticationServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GoogleLogin", Handler: _AuthenticationService_GoogleLogin_Handler, }, { MethodName: "UserPasswordLogin", Handler: _AuthenticationService_UserPasswordLogin_Handler, }, { MethodName: "Logout", Handler: _AuthenticationService_Logout_Handler, }, { MethodName: "GetSigningKey", Handler: _AuthenticationService_GetSigningKey_Handler, }, { MethodName: "CreateLogin", Handler: _AuthenticationService_CreateLogin_Handler, }, { MethodName: "GetAuthorizationToken", Handler: _AuthenticationService_GetAuthorizationToken_Handler, }, { MethodName: "TrackLogin", Handler: _AuthenticationService_TrackLogin_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service/auth-api/auth.proto", }
AuthenticationService_ServiceDesc is the grpc.ServiceDesc for AuthenticationService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_service_auth_api_auth_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthenticationServiceServer ¶
func RegisterAuthenticationServiceServer(s grpc.ServiceRegistrar, srv AuthenticationServiceServer)
Types ¶
type AuthenticationServiceClient ¶
type AuthenticationServiceClient interface { // Googlelogin is to authenticate with facebook OIDC provider GoogleLogin(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) // UserPasswordLogin is to authenticate without OIDC provider // But with user password login UserPasswordLogin(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) // Logout is used to expire authorization token // this will be used for important operations where the account API will keep // track of the session in the back end Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*LogoutResponse, error) // GetSigningKey is used to the public key used to validate this service token GetSigningKey(ctx context.Context, in *SigningKeyRequest, opts ...grpc.CallOption) (*SigningKeyResponse, error) // CreateLogin is used to create account with account API authentication // mechanism Why it is different than using OIDC ? Because we need to verify // email / phone number before we register them as user! Whereas if you use // 3rd party, the verification process can be deffered to later time. We will // not expose this in the front end UI. Instead, this will be very useful when // we do integration / functionality testing. // // the account will have very minimal permission (only able to do // REGISTRATION) CreateLogin(ctx context.Context, in *CreateLoginRequest, opts ...grpc.CallOption) (*CreateLoginResponse, error) // GetAuthorizationToken is the general case of 'login' // It is used to get authorization for operations in our service GetAuthorizationToken(ctx context.Context, in *GetAuthorizationTokenRequest, opts ...grpc.CallOption) (*GetAuthorizationTokenResponse, error) // TrackLogin tracks user login activity TrackLogin(ctx context.Context, in *TrackLoginRequest, opts ...grpc.CallOption) (*TrackLoginResponse, 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 { // Googlelogin is to authenticate with facebook OIDC provider GoogleLogin(context.Context, *LoginRequest) (*LoginResponse, error) // UserPasswordLogin is to authenticate without OIDC provider // But with user password login UserPasswordLogin(context.Context, *LoginRequest) (*LoginResponse, error) // Logout is used to expire authorization token // this will be used for important operations where the account API will keep // track of the session in the back end Logout(context.Context, *LogoutRequest) (*LogoutResponse, error) // GetSigningKey is used to the public key used to validate this service token GetSigningKey(context.Context, *SigningKeyRequest) (*SigningKeyResponse, error) // CreateLogin is used to create account with account API authentication // mechanism Why it is different than using OIDC ? Because we need to verify // email / phone number before we register them as user! Whereas if you use // 3rd party, the verification process can be deffered to later time. We will // not expose this in the front end UI. Instead, this will be very useful when // we do integration / functionality testing. // // the account will have very minimal permission (only able to do // REGISTRATION) CreateLogin(context.Context, *CreateLoginRequest) (*CreateLoginResponse, error) // GetAuthorizationToken is the general case of 'login' // It is used to get authorization for operations in our service GetAuthorizationToken(context.Context, *GetAuthorizationTokenRequest) (*GetAuthorizationTokenResponse, error) // TrackLogin tracks user login activity TrackLogin(context.Context, *TrackLoginRequest) (*TrackLoginResponse, error) // contains filtered or unexported methods }
AuthenticationServiceServer is the server API for AuthenticationService service. All implementations must embed UnimplementedAuthenticationServiceServer for forward compatibility
type CreateLoginRequest ¶
type CreateLoginRequest struct { Credential *session.Credential `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"` // contains filtered or unexported fields }
func (*CreateLoginRequest) Descriptor
deprecated
func (*CreateLoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateLoginRequest.ProtoReflect.Descriptor instead.
func (*CreateLoginRequest) GetCredential ¶
func (x *CreateLoginRequest) GetCredential() *session.Credential
func (*CreateLoginRequest) ProtoMessage ¶
func (*CreateLoginRequest) ProtoMessage()
func (*CreateLoginRequest) ProtoReflect ¶
func (x *CreateLoginRequest) ProtoReflect() protoreflect.Message
func (*CreateLoginRequest) Reset ¶
func (x *CreateLoginRequest) Reset()
func (*CreateLoginRequest) String ¶
func (x *CreateLoginRequest) String() string
type CreateLoginResponse ¶
type CreateLoginResponse struct { Success *CreateLoginResponse_Success `protobuf:"bytes,1,opt,name=success,proto3" json:"success,omitempty"` Error *CreateLoginResponse_Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*CreateLoginResponse) Descriptor
deprecated
func (*CreateLoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateLoginResponse.ProtoReflect.Descriptor instead.
func (*CreateLoginResponse) GetError ¶
func (x *CreateLoginResponse) GetError() *CreateLoginResponse_Error
func (*CreateLoginResponse) GetSuccess ¶
func (x *CreateLoginResponse) GetSuccess() *CreateLoginResponse_Success
func (*CreateLoginResponse) ProtoMessage ¶
func (*CreateLoginResponse) ProtoMessage()
func (*CreateLoginResponse) ProtoReflect ¶
func (x *CreateLoginResponse) ProtoReflect() protoreflect.Message
func (*CreateLoginResponse) Reset ¶
func (x *CreateLoginResponse) Reset()
func (*CreateLoginResponse) String ¶
func (x *CreateLoginResponse) String() string
type CreateLoginResponse_Error ¶
type CreateLoginResponse_Error struct { Code CreateLoginResponse_Error_ErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=authapi.CreateLoginResponse_Error_ErrorCode" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*CreateLoginResponse_Error) Descriptor
deprecated
func (*CreateLoginResponse_Error) Descriptor() ([]byte, []int)
Deprecated: Use CreateLoginResponse_Error.ProtoReflect.Descriptor instead.
func (*CreateLoginResponse_Error) GetCode ¶
func (x *CreateLoginResponse_Error) GetCode() CreateLoginResponse_Error_ErrorCode
func (*CreateLoginResponse_Error) GetMessage ¶
func (x *CreateLoginResponse_Error) GetMessage() string
func (*CreateLoginResponse_Error) ProtoMessage ¶
func (*CreateLoginResponse_Error) ProtoMessage()
func (*CreateLoginResponse_Error) ProtoReflect ¶
func (x *CreateLoginResponse_Error) ProtoReflect() protoreflect.Message
func (*CreateLoginResponse_Error) Reset ¶
func (x *CreateLoginResponse_Error) Reset()
func (*CreateLoginResponse_Error) String ¶
func (x *CreateLoginResponse_Error) String() string
type CreateLoginResponse_Error_ErrorCode ¶
type CreateLoginResponse_Error_ErrorCode int32
const ( CreateLoginResponse_Error_ERROR_INVALID_CREDENTIAL CreateLoginResponse_Error_ErrorCode = 0 CreateLoginResponse_Error_ERROR_WEAK_PASSWORD CreateLoginResponse_Error_ErrorCode = 1 CreateLoginResponse_Error_ERROR_SERVER_ERROR CreateLoginResponse_Error_ErrorCode = 2 )
func (CreateLoginResponse_Error_ErrorCode) Descriptor ¶
func (CreateLoginResponse_Error_ErrorCode) Descriptor() protoreflect.EnumDescriptor
func (CreateLoginResponse_Error_ErrorCode) Enum ¶
func (x CreateLoginResponse_Error_ErrorCode) Enum() *CreateLoginResponse_Error_ErrorCode
func (CreateLoginResponse_Error_ErrorCode) EnumDescriptor
deprecated
func (CreateLoginResponse_Error_ErrorCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use CreateLoginResponse_Error_ErrorCode.Descriptor instead.
func (CreateLoginResponse_Error_ErrorCode) Number ¶
func (x CreateLoginResponse_Error_ErrorCode) Number() protoreflect.EnumNumber
func (CreateLoginResponse_Error_ErrorCode) String ¶
func (x CreateLoginResponse_Error_ErrorCode) String() string
func (CreateLoginResponse_Error_ErrorCode) Type ¶
func (CreateLoginResponse_Error_ErrorCode) Type() protoreflect.EnumType
type CreateLoginResponse_Success ¶
type CreateLoginResponse_Success struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*CreateLoginResponse_Success) Descriptor
deprecated
func (*CreateLoginResponse_Success) Descriptor() ([]byte, []int)
Deprecated: Use CreateLoginResponse_Success.ProtoReflect.Descriptor instead.
func (*CreateLoginResponse_Success) GetMessage ¶
func (x *CreateLoginResponse_Success) GetMessage() string
func (*CreateLoginResponse_Success) ProtoMessage ¶
func (*CreateLoginResponse_Success) ProtoMessage()
func (*CreateLoginResponse_Success) ProtoReflect ¶
func (x *CreateLoginResponse_Success) ProtoReflect() protoreflect.Message
func (*CreateLoginResponse_Success) Reset ¶
func (x *CreateLoginResponse_Success) Reset()
func (*CreateLoginResponse_Success) String ¶
func (x *CreateLoginResponse_Success) String() string
type Geolocation ¶
type Geolocation struct { Lat float64 `protobuf:"fixed64,1,opt,name=lat,proto3" json:"lat,omitempty"` Lon float64 `protobuf:"fixed64,2,opt,name=lon,proto3" json:"lon,omitempty"` // contains filtered or unexported fields }
Geolocation contains WGS84 lat lon information
func (*Geolocation) Descriptor
deprecated
func (*Geolocation) Descriptor() ([]byte, []int)
Deprecated: Use Geolocation.ProtoReflect.Descriptor instead.
func (*Geolocation) GetLat ¶
func (x *Geolocation) GetLat() float64
func (*Geolocation) GetLon ¶
func (x *Geolocation) GetLon() float64
func (*Geolocation) ProtoMessage ¶
func (*Geolocation) ProtoMessage()
func (*Geolocation) ProtoReflect ¶
func (x *Geolocation) ProtoReflect() protoreflect.Message
func (*Geolocation) Reset ¶
func (x *Geolocation) Reset()
func (*Geolocation) String ¶
func (x *Geolocation) String() string
type GetAuthorizationTokenRequest ¶
type GetAuthorizationTokenRequest struct { Session *session.Session `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"` Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` // contains filtered or unexported fields }
func (*GetAuthorizationTokenRequest) Descriptor
deprecated
func (*GetAuthorizationTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAuthorizationTokenRequest.ProtoReflect.Descriptor instead.
func (*GetAuthorizationTokenRequest) GetRoles ¶
func (x *GetAuthorizationTokenRequest) GetRoles() []string
func (*GetAuthorizationTokenRequest) GetSession ¶
func (x *GetAuthorizationTokenRequest) GetSession() *session.Session
func (*GetAuthorizationTokenRequest) ProtoMessage ¶
func (*GetAuthorizationTokenRequest) ProtoMessage()
func (*GetAuthorizationTokenRequest) ProtoReflect ¶
func (x *GetAuthorizationTokenRequest) ProtoReflect() protoreflect.Message
func (*GetAuthorizationTokenRequest) Reset ¶
func (x *GetAuthorizationTokenRequest) Reset()
func (*GetAuthorizationTokenRequest) String ¶
func (x *GetAuthorizationTokenRequest) String() string
type GetAuthorizationTokenResponse ¶
type GetAuthorizationTokenResponse struct { Success *GetAuthorizationTokenResponse_Success `protobuf:"bytes,1,opt,name=success,proto3" json:"success,omitempty"` Error *GetAuthorizationTokenResponse_Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*GetAuthorizationTokenResponse) Descriptor
deprecated
func (*GetAuthorizationTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAuthorizationTokenResponse.ProtoReflect.Descriptor instead.
func (*GetAuthorizationTokenResponse) GetError ¶
func (x *GetAuthorizationTokenResponse) GetError() *GetAuthorizationTokenResponse_Error
func (*GetAuthorizationTokenResponse) GetSuccess ¶
func (x *GetAuthorizationTokenResponse) GetSuccess() *GetAuthorizationTokenResponse_Success
func (*GetAuthorizationTokenResponse) ProtoMessage ¶
func (*GetAuthorizationTokenResponse) ProtoMessage()
func (*GetAuthorizationTokenResponse) ProtoReflect ¶
func (x *GetAuthorizationTokenResponse) ProtoReflect() protoreflect.Message
func (*GetAuthorizationTokenResponse) Reset ¶
func (x *GetAuthorizationTokenResponse) Reset()
func (*GetAuthorizationTokenResponse) String ¶
func (x *GetAuthorizationTokenResponse) String() string
type GetAuthorizationTokenResponse_Error ¶
type GetAuthorizationTokenResponse_Error struct { Code GetAuthorizationTokenResponse_Error_ErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=authapi.GetAuthorizationTokenResponse_Error_ErrorCode" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*GetAuthorizationTokenResponse_Error) Descriptor
deprecated
func (*GetAuthorizationTokenResponse_Error) Descriptor() ([]byte, []int)
Deprecated: Use GetAuthorizationTokenResponse_Error.ProtoReflect.Descriptor instead.
func (*GetAuthorizationTokenResponse_Error) GetCode ¶
func (x *GetAuthorizationTokenResponse_Error) GetCode() GetAuthorizationTokenResponse_Error_ErrorCode
func (*GetAuthorizationTokenResponse_Error) GetMessage ¶
func (x *GetAuthorizationTokenResponse_Error) GetMessage() string
func (*GetAuthorizationTokenResponse_Error) ProtoMessage ¶
func (*GetAuthorizationTokenResponse_Error) ProtoMessage()
func (*GetAuthorizationTokenResponse_Error) ProtoReflect ¶
func (x *GetAuthorizationTokenResponse_Error) ProtoReflect() protoreflect.Message
func (*GetAuthorizationTokenResponse_Error) Reset ¶
func (x *GetAuthorizationTokenResponse_Error) Reset()
func (*GetAuthorizationTokenResponse_Error) String ¶
func (x *GetAuthorizationTokenResponse_Error) String() string
type GetAuthorizationTokenResponse_Error_ErrorCode ¶
type GetAuthorizationTokenResponse_Error_ErrorCode int32
const ( GetAuthorizationTokenResponse_Error_ERROR_SERVER_ERROR GetAuthorizationTokenResponse_Error_ErrorCode = 0 GetAuthorizationTokenResponse_Error_ERROR_ROLE_REJECTED GetAuthorizationTokenResponse_Error_ErrorCode = 1 )
func (GetAuthorizationTokenResponse_Error_ErrorCode) Descriptor ¶
func (GetAuthorizationTokenResponse_Error_ErrorCode) Descriptor() protoreflect.EnumDescriptor
func (GetAuthorizationTokenResponse_Error_ErrorCode) EnumDescriptor
deprecated
func (GetAuthorizationTokenResponse_Error_ErrorCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetAuthorizationTokenResponse_Error_ErrorCode.Descriptor instead.
func (GetAuthorizationTokenResponse_Error_ErrorCode) Number ¶
func (x GetAuthorizationTokenResponse_Error_ErrorCode) Number() protoreflect.EnumNumber
func (GetAuthorizationTokenResponse_Error_ErrorCode) String ¶
func (x GetAuthorizationTokenResponse_Error_ErrorCode) String() string
type GetAuthorizationTokenResponse_Success ¶
type GetAuthorizationTokenResponse_Success struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Token map[string]string `` /* 151-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetAuthorizationTokenResponse_Success) Descriptor
deprecated
func (*GetAuthorizationTokenResponse_Success) Descriptor() ([]byte, []int)
Deprecated: Use GetAuthorizationTokenResponse_Success.ProtoReflect.Descriptor instead.
func (*GetAuthorizationTokenResponse_Success) GetMessage ¶
func (x *GetAuthorizationTokenResponse_Success) GetMessage() string
func (*GetAuthorizationTokenResponse_Success) GetToken ¶
func (x *GetAuthorizationTokenResponse_Success) GetToken() map[string]string
func (*GetAuthorizationTokenResponse_Success) ProtoMessage ¶
func (*GetAuthorizationTokenResponse_Success) ProtoMessage()
func (*GetAuthorizationTokenResponse_Success) ProtoReflect ¶
func (x *GetAuthorizationTokenResponse_Success) ProtoReflect() protoreflect.Message
func (*GetAuthorizationTokenResponse_Success) Reset ¶
func (x *GetAuthorizationTokenResponse_Success) Reset()
func (*GetAuthorizationTokenResponse_Success) String ¶
func (x *GetAuthorizationTokenResponse_Success) String() string
type LoginRequest ¶
type LoginRequest struct { IdToken string `protobuf:"bytes,1,opt,name=id_token,json=idToken,proto3" json:"id_token,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
Login data is the OIDC auth token from provider such as Google or facebook
Google: https://developers.google.com/identity/sign-in/android/backend-auth Facebook: https://developers.facebook.com/docs/facebook-login/android
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetIdToken ¶
func (x *LoginRequest) GetIdToken() string
func (*LoginRequest) GetPassword ¶
func (x *LoginRequest) GetPassword() string
func (*LoginRequest) GetUsername ¶
func (x *LoginRequest) GetUsername() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
type LoginResponse ¶
type LoginResponse struct { Success *LoginResponse_Success `protobuf:"bytes,1,opt,name=success,proto3" json:"success,omitempty"` Error *LoginResponse_Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetError ¶
func (x *LoginResponse) GetError() *LoginResponse_Error
func (*LoginResponse) GetSuccess ¶
func (x *LoginResponse) GetSuccess() *LoginResponse_Success
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) ProtoReflect ¶
func (x *LoginResponse) ProtoReflect() protoreflect.Message
func (*LoginResponse) Reset ¶
func (x *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (x *LoginResponse) String() string
type LoginResponse_Error ¶
type LoginResponse_Error struct { Code LoginResponse_Error_ErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=authapi.LoginResponse_Error_ErrorCode" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*LoginResponse_Error) Descriptor
deprecated
func (*LoginResponse_Error) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse_Error.ProtoReflect.Descriptor instead.
func (*LoginResponse_Error) GetCode ¶
func (x *LoginResponse_Error) GetCode() LoginResponse_Error_ErrorCode
func (*LoginResponse_Error) GetMessage ¶
func (x *LoginResponse_Error) GetMessage() string
func (*LoginResponse_Error) ProtoMessage ¶
func (*LoginResponse_Error) ProtoMessage()
func (*LoginResponse_Error) ProtoReflect ¶
func (x *LoginResponse_Error) ProtoReflect() protoreflect.Message
func (*LoginResponse_Error) Reset ¶
func (x *LoginResponse_Error) Reset()
func (*LoginResponse_Error) String ¶
func (x *LoginResponse_Error) String() string
type LoginResponse_Error_ErrorCode ¶
type LoginResponse_Error_ErrorCode int32
const ( LoginResponse_Error_ERROR_UNSUPPORTED_LOGIN_TYPE LoginResponse_Error_ErrorCode = 0 LoginResponse_Error_ERROR_INVALID_TOKEN LoginResponse_Error_ErrorCode = 1 LoginResponse_Error_ERROR_SERVER_ERROR LoginResponse_Error_ErrorCode = 2 LoginResponse_Error_ERROR_INVALID_CREDENTIAL LoginResponse_Error_ErrorCode = 3 )
func (LoginResponse_Error_ErrorCode) Descriptor ¶
func (LoginResponse_Error_ErrorCode) Descriptor() protoreflect.EnumDescriptor
func (LoginResponse_Error_ErrorCode) Enum ¶
func (x LoginResponse_Error_ErrorCode) Enum() *LoginResponse_Error_ErrorCode
func (LoginResponse_Error_ErrorCode) EnumDescriptor
deprecated
func (LoginResponse_Error_ErrorCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use LoginResponse_Error_ErrorCode.Descriptor instead.
func (LoginResponse_Error_ErrorCode) Number ¶
func (x LoginResponse_Error_ErrorCode) Number() protoreflect.EnumNumber
func (LoginResponse_Error_ErrorCode) String ¶
func (x LoginResponse_Error_ErrorCode) String() string
func (LoginResponse_Error_ErrorCode) Type ¶
func (LoginResponse_Error_ErrorCode) Type() protoreflect.EnumType
type LoginResponse_Success ¶
type LoginResponse_Success struct { Session *session.Session `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"` // contains filtered or unexported fields }
func (*LoginResponse_Success) Descriptor
deprecated
func (*LoginResponse_Success) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse_Success.ProtoReflect.Descriptor instead.
func (*LoginResponse_Success) GetSession ¶
func (x *LoginResponse_Success) GetSession() *session.Session
func (*LoginResponse_Success) ProtoMessage ¶
func (*LoginResponse_Success) ProtoMessage()
func (*LoginResponse_Success) ProtoReflect ¶
func (x *LoginResponse_Success) ProtoReflect() protoreflect.Message
func (*LoginResponse_Success) Reset ¶
func (x *LoginResponse_Success) Reset()
func (*LoginResponse_Success) String ¶
func (x *LoginResponse_Success) String() string
type LogoutRequest ¶
type LogoutRequest struct { Session *session.Session `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"` // optional user ID if want to force other user UserID *session.OIDCClaim `protobuf:"bytes,2,opt,name=userID,proto3" json:"userID,omitempty"` // contains filtered or unexported fields }
func (*LogoutRequest) Descriptor
deprecated
func (*LogoutRequest) Descriptor() ([]byte, []int)
Deprecated: Use LogoutRequest.ProtoReflect.Descriptor instead.
func (*LogoutRequest) GetSession ¶
func (x *LogoutRequest) GetSession() *session.Session
func (*LogoutRequest) GetUserID ¶
func (x *LogoutRequest) GetUserID() *session.OIDCClaim
func (*LogoutRequest) ProtoMessage ¶
func (*LogoutRequest) ProtoMessage()
func (*LogoutRequest) ProtoReflect ¶
func (x *LogoutRequest) ProtoReflect() protoreflect.Message
func (*LogoutRequest) Reset ¶
func (x *LogoutRequest) Reset()
func (*LogoutRequest) String ¶
func (x *LogoutRequest) String() string
type LogoutResponse ¶
type LogoutResponse struct { Success *LogoutResponse_Success `protobuf:"bytes,1,opt,name=success,proto3,oneof" json:"success,omitempty"` Error *LogoutResponse_Error `protobuf:"bytes,2,opt,name=error,proto3,oneof" json:"error,omitempty"` // contains filtered or unexported fields }
func (*LogoutResponse) Descriptor
deprecated
func (*LogoutResponse) Descriptor() ([]byte, []int)
Deprecated: Use LogoutResponse.ProtoReflect.Descriptor instead.
func (*LogoutResponse) GetError ¶
func (x *LogoutResponse) GetError() *LogoutResponse_Error
func (*LogoutResponse) GetSuccess ¶
func (x *LogoutResponse) GetSuccess() *LogoutResponse_Success
func (*LogoutResponse) ProtoMessage ¶
func (*LogoutResponse) ProtoMessage()
func (*LogoutResponse) ProtoReflect ¶
func (x *LogoutResponse) ProtoReflect() protoreflect.Message
func (*LogoutResponse) Reset ¶
func (x *LogoutResponse) Reset()
func (*LogoutResponse) String ¶
func (x *LogoutResponse) String() string
type LogoutResponse_Error ¶
type LogoutResponse_Error struct { Code LogoutResponse_Error_ErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=authapi.LogoutResponse_Error_ErrorCode" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*LogoutResponse_Error) Descriptor
deprecated
func (*LogoutResponse_Error) Descriptor() ([]byte, []int)
Deprecated: Use LogoutResponse_Error.ProtoReflect.Descriptor instead.
func (*LogoutResponse_Error) GetCode ¶
func (x *LogoutResponse_Error) GetCode() LogoutResponse_Error_ErrorCode
func (*LogoutResponse_Error) GetMessage ¶
func (x *LogoutResponse_Error) GetMessage() string
func (*LogoutResponse_Error) ProtoMessage ¶
func (*LogoutResponse_Error) ProtoMessage()
func (*LogoutResponse_Error) ProtoReflect ¶
func (x *LogoutResponse_Error) ProtoReflect() protoreflect.Message
func (*LogoutResponse_Error) Reset ¶
func (x *LogoutResponse_Error) Reset()
func (*LogoutResponse_Error) String ¶
func (x *LogoutResponse_Error) String() string
type LogoutResponse_Error_ErrorCode ¶
type LogoutResponse_Error_ErrorCode int32
const ( LogoutResponse_Error_ERROR_SERVER_ERROR LogoutResponse_Error_ErrorCode = 0 LogoutResponse_Error_ERROR_AUTHORIZATION_ERROR LogoutResponse_Error_ErrorCode = 1 )
func (LogoutResponse_Error_ErrorCode) Descriptor ¶
func (LogoutResponse_Error_ErrorCode) Descriptor() protoreflect.EnumDescriptor
func (LogoutResponse_Error_ErrorCode) Enum ¶
func (x LogoutResponse_Error_ErrorCode) Enum() *LogoutResponse_Error_ErrorCode
func (LogoutResponse_Error_ErrorCode) EnumDescriptor
deprecated
func (LogoutResponse_Error_ErrorCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use LogoutResponse_Error_ErrorCode.Descriptor instead.
func (LogoutResponse_Error_ErrorCode) Number ¶
func (x LogoutResponse_Error_ErrorCode) Number() protoreflect.EnumNumber
func (LogoutResponse_Error_ErrorCode) String ¶
func (x LogoutResponse_Error_ErrorCode) String() string
func (LogoutResponse_Error_ErrorCode) Type ¶
func (LogoutResponse_Error_ErrorCode) Type() protoreflect.EnumType
type LogoutResponse_Success ¶
type LogoutResponse_Success struct {
// contains filtered or unexported fields
}
func (*LogoutResponse_Success) Descriptor
deprecated
func (*LogoutResponse_Success) Descriptor() ([]byte, []int)
Deprecated: Use LogoutResponse_Success.ProtoReflect.Descriptor instead.
func (*LogoutResponse_Success) ProtoMessage ¶
func (*LogoutResponse_Success) ProtoMessage()
func (*LogoutResponse_Success) ProtoReflect ¶
func (x *LogoutResponse_Success) ProtoReflect() protoreflect.Message
func (*LogoutResponse_Success) Reset ¶
func (x *LogoutResponse_Success) Reset()
func (*LogoutResponse_Success) String ¶
func (x *LogoutResponse_Success) String() string
type SigningKeyRequest ¶
type SigningKeyRequest struct { KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` // contains filtered or unexported fields }
func (*SigningKeyRequest) Descriptor
deprecated
func (*SigningKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use SigningKeyRequest.ProtoReflect.Descriptor instead.
func (*SigningKeyRequest) GetKeyId ¶
func (x *SigningKeyRequest) GetKeyId() string
func (*SigningKeyRequest) ProtoMessage ¶
func (*SigningKeyRequest) ProtoMessage()
func (*SigningKeyRequest) ProtoReflect ¶
func (x *SigningKeyRequest) ProtoReflect() protoreflect.Message
func (*SigningKeyRequest) Reset ¶
func (x *SigningKeyRequest) Reset()
func (*SigningKeyRequest) String ¶
func (x *SigningKeyRequest) String() string
type SigningKeyResponse ¶
type SigningKeyResponse struct { Success *SigningKeyResponse_Success `protobuf:"bytes,1,opt,name=success,proto3,oneof" json:"success,omitempty"` Error *SigningKeyResponse_Error `protobuf:"bytes,2,opt,name=error,proto3,oneof" json:"error,omitempty"` // contains filtered or unexported fields }
func (*SigningKeyResponse) Descriptor
deprecated
func (*SigningKeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use SigningKeyResponse.ProtoReflect.Descriptor instead.
func (*SigningKeyResponse) GetError ¶
func (x *SigningKeyResponse) GetError() *SigningKeyResponse_Error
func (*SigningKeyResponse) GetSuccess ¶
func (x *SigningKeyResponse) GetSuccess() *SigningKeyResponse_Success
func (*SigningKeyResponse) ProtoMessage ¶
func (*SigningKeyResponse) ProtoMessage()
func (*SigningKeyResponse) ProtoReflect ¶
func (x *SigningKeyResponse) ProtoReflect() protoreflect.Message
func (*SigningKeyResponse) Reset ¶
func (x *SigningKeyResponse) Reset()
func (*SigningKeyResponse) String ¶
func (x *SigningKeyResponse) String() string
type SigningKeyResponse_Error ¶
type SigningKeyResponse_Error struct { Code SigningKeyResponse_Error_ErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=authapi.SigningKeyResponse_Error_ErrorCode" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*SigningKeyResponse_Error) Descriptor
deprecated
func (*SigningKeyResponse_Error) Descriptor() ([]byte, []int)
Deprecated: Use SigningKeyResponse_Error.ProtoReflect.Descriptor instead.
func (*SigningKeyResponse_Error) GetCode ¶
func (x *SigningKeyResponse_Error) GetCode() SigningKeyResponse_Error_ErrorCode
func (*SigningKeyResponse_Error) GetMessage ¶
func (x *SigningKeyResponse_Error) GetMessage() string
func (*SigningKeyResponse_Error) ProtoMessage ¶
func (*SigningKeyResponse_Error) ProtoMessage()
func (*SigningKeyResponse_Error) ProtoReflect ¶
func (x *SigningKeyResponse_Error) ProtoReflect() protoreflect.Message
func (*SigningKeyResponse_Error) Reset ¶
func (x *SigningKeyResponse_Error) Reset()
func (*SigningKeyResponse_Error) String ¶
func (x *SigningKeyResponse_Error) String() string
type SigningKeyResponse_Error_ErrorCode ¶
type SigningKeyResponse_Error_ErrorCode int32
const (
SigningKeyResponse_Error_ERROR_SERVER_ERROR SigningKeyResponse_Error_ErrorCode = 0
)
func (SigningKeyResponse_Error_ErrorCode) Descriptor ¶
func (SigningKeyResponse_Error_ErrorCode) Descriptor() protoreflect.EnumDescriptor
func (SigningKeyResponse_Error_ErrorCode) Enum ¶
func (x SigningKeyResponse_Error_ErrorCode) Enum() *SigningKeyResponse_Error_ErrorCode
func (SigningKeyResponse_Error_ErrorCode) EnumDescriptor
deprecated
func (SigningKeyResponse_Error_ErrorCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use SigningKeyResponse_Error_ErrorCode.Descriptor instead.
func (SigningKeyResponse_Error_ErrorCode) Number ¶
func (x SigningKeyResponse_Error_ErrorCode) Number() protoreflect.EnumNumber
func (SigningKeyResponse_Error_ErrorCode) String ¶
func (x SigningKeyResponse_Error_ErrorCode) String() string
func (SigningKeyResponse_Error_ErrorCode) Type ¶
func (SigningKeyResponse_Error_ErrorCode) Type() protoreflect.EnumType
type SigningKeyResponse_Success ¶
type SigningKeyResponse_Success struct { KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` KeyPem string `protobuf:"bytes,2,opt,name=key_pem,json=keyPem,proto3" json:"key_pem,omitempty"` // contains filtered or unexported fields }
func (*SigningKeyResponse_Success) Descriptor
deprecated
func (*SigningKeyResponse_Success) Descriptor() ([]byte, []int)
Deprecated: Use SigningKeyResponse_Success.ProtoReflect.Descriptor instead.
func (*SigningKeyResponse_Success) GetKeyId ¶
func (x *SigningKeyResponse_Success) GetKeyId() string
func (*SigningKeyResponse_Success) GetKeyPem ¶
func (x *SigningKeyResponse_Success) GetKeyPem() string
func (*SigningKeyResponse_Success) ProtoMessage ¶
func (*SigningKeyResponse_Success) ProtoMessage()
func (*SigningKeyResponse_Success) ProtoReflect ¶
func (x *SigningKeyResponse_Success) ProtoReflect() protoreflect.Message
func (*SigningKeyResponse_Success) Reset ¶
func (x *SigningKeyResponse_Success) Reset()
func (*SigningKeyResponse_Success) String ¶
func (x *SigningKeyResponse_Success) String() string
type TrackLoginRequest ¶
type TrackLoginRequest struct { Data *TrackingData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
TrackLoginRequest for tracking and verifying user data
func (*TrackLoginRequest) Descriptor
deprecated
func (*TrackLoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use TrackLoginRequest.ProtoReflect.Descriptor instead.
func (*TrackLoginRequest) GetData ¶
func (x *TrackLoginRequest) GetData() *TrackingData
func (*TrackLoginRequest) ProtoMessage ¶
func (*TrackLoginRequest) ProtoMessage()
func (*TrackLoginRequest) ProtoReflect ¶
func (x *TrackLoginRequest) ProtoReflect() protoreflect.Message
func (*TrackLoginRequest) Reset ¶
func (x *TrackLoginRequest) Reset()
func (*TrackLoginRequest) String ¶
func (x *TrackLoginRequest) String() string
type TrackLoginResponse ¶
type TrackLoginResponse struct { Success *TrackLoginResponse_Success `protobuf:"bytes,1,opt,name=success,proto3,oneof" json:"success,omitempty"` Error *TrackLoginResponse_Error `protobuf:"bytes,2,opt,name=error,proto3,oneof" json:"error,omitempty"` // contains filtered or unexported fields }
TrackLoginResponse for acknowledgement of the tracking data
func (*TrackLoginResponse) Descriptor
deprecated
func (*TrackLoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use TrackLoginResponse.ProtoReflect.Descriptor instead.
func (*TrackLoginResponse) GetError ¶
func (x *TrackLoginResponse) GetError() *TrackLoginResponse_Error
func (*TrackLoginResponse) GetSuccess ¶
func (x *TrackLoginResponse) GetSuccess() *TrackLoginResponse_Success
func (*TrackLoginResponse) ProtoMessage ¶
func (*TrackLoginResponse) ProtoMessage()
func (*TrackLoginResponse) ProtoReflect ¶
func (x *TrackLoginResponse) ProtoReflect() protoreflect.Message
func (*TrackLoginResponse) Reset ¶
func (x *TrackLoginResponse) Reset()
func (*TrackLoginResponse) String ¶
func (x *TrackLoginResponse) String() string
type TrackLoginResponse_Error ¶
type TrackLoginResponse_Error struct { Code TrackLoginResponse_Error_ErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=authapi.TrackLoginResponse_Error_ErrorCode" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*TrackLoginResponse_Error) Descriptor
deprecated
func (*TrackLoginResponse_Error) Descriptor() ([]byte, []int)
Deprecated: Use TrackLoginResponse_Error.ProtoReflect.Descriptor instead.
func (*TrackLoginResponse_Error) GetCode ¶
func (x *TrackLoginResponse_Error) GetCode() TrackLoginResponse_Error_ErrorCode
func (*TrackLoginResponse_Error) GetMessage ¶
func (x *TrackLoginResponse_Error) GetMessage() string
func (*TrackLoginResponse_Error) ProtoMessage ¶
func (*TrackLoginResponse_Error) ProtoMessage()
func (*TrackLoginResponse_Error) ProtoReflect ¶
func (x *TrackLoginResponse_Error) ProtoReflect() protoreflect.Message
func (*TrackLoginResponse_Error) Reset ¶
func (x *TrackLoginResponse_Error) Reset()
func (*TrackLoginResponse_Error) String ¶
func (x *TrackLoginResponse_Error) String() string
type TrackLoginResponse_Error_ErrorCode ¶
type TrackLoginResponse_Error_ErrorCode int32
const (
TrackLoginResponse_Error_ERROR_SERVER_ERROR TrackLoginResponse_Error_ErrorCode = 0
)
func (TrackLoginResponse_Error_ErrorCode) Descriptor ¶
func (TrackLoginResponse_Error_ErrorCode) Descriptor() protoreflect.EnumDescriptor
func (TrackLoginResponse_Error_ErrorCode) Enum ¶
func (x TrackLoginResponse_Error_ErrorCode) Enum() *TrackLoginResponse_Error_ErrorCode
func (TrackLoginResponse_Error_ErrorCode) EnumDescriptor
deprecated
func (TrackLoginResponse_Error_ErrorCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use TrackLoginResponse_Error_ErrorCode.Descriptor instead.
func (TrackLoginResponse_Error_ErrorCode) Number ¶
func (x TrackLoginResponse_Error_ErrorCode) Number() protoreflect.EnumNumber
func (TrackLoginResponse_Error_ErrorCode) String ¶
func (x TrackLoginResponse_Error_ErrorCode) String() string
func (TrackLoginResponse_Error_ErrorCode) Type ¶
func (TrackLoginResponse_Error_ErrorCode) Type() protoreflect.EnumType
type TrackLoginResponse_Success ¶
type TrackLoginResponse_Success struct {
// contains filtered or unexported fields
}
func (*TrackLoginResponse_Success) Descriptor
deprecated
func (*TrackLoginResponse_Success) Descriptor() ([]byte, []int)
Deprecated: Use TrackLoginResponse_Success.ProtoReflect.Descriptor instead.
func (*TrackLoginResponse_Success) ProtoMessage ¶
func (*TrackLoginResponse_Success) ProtoMessage()
func (*TrackLoginResponse_Success) ProtoReflect ¶
func (x *TrackLoginResponse_Success) ProtoReflect() protoreflect.Message
func (*TrackLoginResponse_Success) Reset ¶
func (x *TrackLoginResponse_Success) Reset()
func (*TrackLoginResponse_Success) String ¶
func (x *TrackLoginResponse_Success) String() string
type TrackingData ¶
type TrackingData struct { Location *Geolocation `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"` Device string `protobuf:"bytes,2,opt,name=device,proto3" json:"device,omitempty"` // oneof device_info { // android.Data android = 3; // } Nonce int64 `protobuf:"varint,4,opt,name=nonce,proto3" json:"nonce,omitempty"` ClientTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=client_time,json=clientTime,proto3" json:"client_time,omitempty"` // should be with time zone // contains filtered or unexported fields }
Login related data
func (*TrackingData) Descriptor
deprecated
func (*TrackingData) Descriptor() ([]byte, []int)
Deprecated: Use TrackingData.ProtoReflect.Descriptor instead.
func (*TrackingData) GetClientTime ¶
func (x *TrackingData) GetClientTime() *timestamppb.Timestamp
func (*TrackingData) GetDevice ¶
func (x *TrackingData) GetDevice() string
func (*TrackingData) GetLocation ¶
func (x *TrackingData) GetLocation() *Geolocation
func (*TrackingData) GetNonce ¶
func (x *TrackingData) GetNonce() int64
func (*TrackingData) ProtoMessage ¶
func (*TrackingData) ProtoMessage()
func (*TrackingData) ProtoReflect ¶
func (x *TrackingData) ProtoReflect() protoreflect.Message
func (*TrackingData) Reset ¶
func (x *TrackingData) Reset()
func (*TrackingData) String ¶
func (x *TrackingData) String() string
type UnimplementedAuthenticationServiceServer ¶
type UnimplementedAuthenticationServiceServer struct { }
UnimplementedAuthenticationServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthenticationServiceServer) CreateLogin ¶
func (UnimplementedAuthenticationServiceServer) CreateLogin(context.Context, *CreateLoginRequest) (*CreateLoginResponse, error)
func (UnimplementedAuthenticationServiceServer) GetAuthorizationToken ¶
func (UnimplementedAuthenticationServiceServer) GetAuthorizationToken(context.Context, *GetAuthorizationTokenRequest) (*GetAuthorizationTokenResponse, error)
func (UnimplementedAuthenticationServiceServer) GetSigningKey ¶
func (UnimplementedAuthenticationServiceServer) GetSigningKey(context.Context, *SigningKeyRequest) (*SigningKeyResponse, error)
func (UnimplementedAuthenticationServiceServer) GoogleLogin ¶
func (UnimplementedAuthenticationServiceServer) GoogleLogin(context.Context, *LoginRequest) (*LoginResponse, error)
func (UnimplementedAuthenticationServiceServer) Logout ¶
func (UnimplementedAuthenticationServiceServer) Logout(context.Context, *LogoutRequest) (*LogoutResponse, error)
func (UnimplementedAuthenticationServiceServer) TrackLogin ¶
func (UnimplementedAuthenticationServiceServer) TrackLogin(context.Context, *TrackLoginRequest) (*TrackLoginResponse, error)
func (UnimplementedAuthenticationServiceServer) UserPasswordLogin ¶
func (UnimplementedAuthenticationServiceServer) UserPasswordLogin(context.Context, *LoginRequest) (*LoginResponse, 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.