Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
- type AuthClient
- type AuthServer
- type ChangePasswordRequest
- func (*ChangePasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChangePasswordRequest) GetToken() string
- func (x *ChangePasswordRequest) GetUpdatedPassword() string
- func (*ChangePasswordRequest) ProtoMessage()
- func (x *ChangePasswordRequest) ProtoReflect() protoreflect.Message
- func (x *ChangePasswordRequest) Reset()
- func (x *ChangePasswordRequest) String() string
- type ChangePasswordResponse
- type DeleteUserRequest
- type DeleteUserResponse
- type GetJWKSRequest
- type GetJWKSResponse
- type GetUserRequest
- type GetUserResponse
- func (*GetUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserResponse) GetEmail() string
- func (x *GetUserResponse) GetUpdatedAt() *timestamppb.Timestamp
- func (x *GetUserResponse) GetVerified() bool
- func (*GetUserResponse) ProtoMessage()
- func (x *GetUserResponse) ProtoReflect() protoreflect.Message
- func (x *GetUserResponse) Reset()
- func (x *GetUserResponse) String() string
- type JWK
- func (*JWK) Descriptor() ([]byte, []int)deprecated
- func (x *JWK) GetAlg() string
- func (x *JWK) GetE() string
- func (x *JWK) GetKid() string
- func (x *JWK) GetKty() string
- func (x *JWK) GetN() string
- func (x *JWK) GetUse() string
- func (*JWK) ProtoMessage()
- func (x *JWK) ProtoReflect() protoreflect.Message
- func (x *JWK) Reset()
- func (x *JWK) String() string
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetEmail() string
- func (x *LoginRequest) GetPassword() string
- func (x *LoginRequest) GetUserDeviceData() *UserDeviceData
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- type LoginResponse
- type LogoutRequest
- type LogoutResponse
- type RefreshRequest
- func (*RefreshRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshRequest) GetRefreshToken() string
- func (x *RefreshRequest) GetUserDeviceData() *UserDeviceData
- func (*RefreshRequest) ProtoMessage()
- func (x *RefreshRequest) ProtoReflect() protoreflect.Message
- func (x *RefreshRequest) Reset()
- func (x *RefreshRequest) String() string
- type RefreshResponse
- type RegisterAppRequest
- func (*RegisterAppRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterAppRequest) GetAppName() string
- func (*RegisterAppRequest) ProtoMessage()
- func (x *RegisterAppRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterAppRequest) Reset()
- func (x *RegisterAppRequest) String() string
- type RegisterAppResponse
- type RegisterUserRequest
- func (*RegisterUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterUserRequest) GetEmail() string
- func (x *RegisterUserRequest) GetPassword() string
- func (x *RegisterUserRequest) GetUserDeviceData() *UserDeviceData
- func (x *RegisterUserRequest) GetVerificationUrl() string
- func (*RegisterUserRequest) ProtoMessage()
- func (x *RegisterUserRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterUserRequest) Reset()
- func (x *RegisterUserRequest) String() string
- type RegisterUserResponse
- func (*RegisterUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterUserResponse) GetTokenData() *TokenData
- func (*RegisterUserResponse) ProtoMessage()
- func (x *RegisterUserResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterUserResponse) Reset()
- func (x *RegisterUserResponse) String() string
- type ResetPasswordRequest
- func (*ResetPasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ResetPasswordRequest) GetConfirmUrl() string
- func (x *ResetPasswordRequest) GetEmail() string
- func (*ResetPasswordRequest) ProtoMessage()
- func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message
- func (x *ResetPasswordRequest) Reset()
- func (x *ResetPasswordRequest) String() string
- type ResetPasswordResponse
- type TokenData
- func (*TokenData) Descriptor() ([]byte, []int)deprecated
- func (x *TokenData) GetAccessToken() string
- func (x *TokenData) GetAdditionalFields() map[string]string
- func (x *TokenData) GetDomain() string
- func (x *TokenData) GetExpiresAt() *timestamppb.Timestamp
- func (x *TokenData) GetHttpOnly() bool
- func (x *TokenData) GetPath() string
- func (x *TokenData) GetRefreshToken() string
- func (*TokenData) ProtoMessage()
- func (x *TokenData) ProtoReflect() protoreflect.Message
- func (x *TokenData) Reset()
- func (x *TokenData) String() string
- type UnimplementedAuthServer
- func (UnimplementedAuthServer) ChangePassword(context.Context, *ChangePasswordRequest) (*ChangePasswordResponse, error)
- func (UnimplementedAuthServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
- func (UnimplementedAuthServer) GetJWKS(context.Context, *GetJWKSRequest) (*GetJWKSResponse, error)
- func (UnimplementedAuthServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
- func (UnimplementedAuthServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
- func (UnimplementedAuthServer) Logout(context.Context, *LogoutRequest) (*LogoutResponse, error)
- func (UnimplementedAuthServer) Refresh(context.Context, *RefreshRequest) (*RefreshResponse, error)
- func (UnimplementedAuthServer) RegisterApp(context.Context, *RegisterAppRequest) (*RegisterAppResponse, error)
- func (UnimplementedAuthServer) RegisterUser(context.Context, *RegisterUserRequest) (*RegisterUserResponse, error)
- func (UnimplementedAuthServer) ResetPassword(context.Context, *ResetPasswordRequest) (*ResetPasswordResponse, error)
- func (UnimplementedAuthServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error)
- func (UnimplementedAuthServer) VerifyEmail(context.Context, *VerifyEmailRequest) (*VerifyEmailResponse, error)
- type UnsafeAuthServer
- type UpdateUserRequest
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserRequest) GetCurrentPassword() string
- func (x *UpdateUserRequest) GetEmail() string
- func (x *UpdateUserRequest) GetUpdatedPassword() string
- func (*UpdateUserRequest) ProtoMessage()
- func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRequest) Reset()
- func (x *UpdateUserRequest) String() string
- type UpdateUserResponse
- type UserDeviceData
- func (*UserDeviceData) Descriptor() ([]byte, []int)deprecated
- func (x *UserDeviceData) GetIp() string
- func (x *UserDeviceData) GetUserAgent() string
- func (*UserDeviceData) ProtoMessage()
- func (x *UserDeviceData) ProtoReflect() protoreflect.Message
- func (x *UserDeviceData) Reset()
- func (x *UserDeviceData) String() string
- type VerifyEmailRequest
- func (*VerifyEmailRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyEmailRequest) GetToken() string
- func (*VerifyEmailRequest) ProtoMessage()
- func (x *VerifyEmailRequest) ProtoReflect() protoreflect.Message
- func (x *VerifyEmailRequest) Reset()
- func (x *VerifyEmailRequest) String() string
- type VerifyEmailResponse
Constants ¶
const ( Auth_RegisterApp_FullMethodName = "/auth.Auth/RegisterApp" Auth_RegisterUser_FullMethodName = "/auth.Auth/RegisterUser" Auth_VerifyEmail_FullMethodName = "/auth.Auth/VerifyEmail" Auth_Login_FullMethodName = "/auth.Auth/Login" Auth_ResetPassword_FullMethodName = "/auth.Auth/ResetPassword" Auth_ChangePassword_FullMethodName = "/auth.Auth/ChangePassword" Auth_Logout_FullMethodName = "/auth.Auth/Logout" Auth_Refresh_FullMethodName = "/auth.Auth/Refresh" Auth_GetJWKS_FullMethodName = "/auth.Auth/GetJWKS" Auth_GetUser_FullMethodName = "/auth.Auth/GetUser" Auth_UpdateUser_FullMethodName = "/auth.Auth/UpdateUser" Auth_DeleteUser_FullMethodName = "/auth.Auth/DeleteUser" )
Variables ¶
var Auth_ServiceDesc = grpc.ServiceDesc{ ServiceName: "auth.Auth", HandlerType: (*AuthServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RegisterApp", Handler: _Auth_RegisterApp_Handler, }, { MethodName: "RegisterUser", Handler: _Auth_RegisterUser_Handler, }, { MethodName: "VerifyEmail", Handler: _Auth_VerifyEmail_Handler, }, { MethodName: "Login", Handler: _Auth_Login_Handler, }, { MethodName: "ResetPassword", Handler: _Auth_ResetPassword_Handler, }, { MethodName: "ChangePassword", Handler: _Auth_ChangePassword_Handler, }, { MethodName: "Logout", Handler: _Auth_Logout_Handler, }, { MethodName: "Refresh", Handler: _Auth_Refresh_Handler, }, { MethodName: "GetJWKS", Handler: _Auth_GetJWKS_Handler, }, { MethodName: "GetUser", Handler: _Auth_GetUser_Handler, }, { MethodName: "UpdateUser", Handler: _Auth_UpdateUser_Handler, }, { MethodName: "DeleteUser", Handler: _Auth_DeleteUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "sso/sso.proto", }
Auth_ServiceDesc is the grpc.ServiceDesc for Auth service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_sso_sso_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthServer ¶
func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
Types ¶
type AuthClient ¶
type AuthClient interface { RegisterApp(ctx context.Context, in *RegisterAppRequest, opts ...grpc.CallOption) (*RegisterAppResponse, error) RegisterUser(ctx context.Context, in *RegisterUserRequest, opts ...grpc.CallOption) (*RegisterUserResponse, error) VerifyEmail(ctx context.Context, in *VerifyEmailRequest, opts ...grpc.CallOption) (*VerifyEmailResponse, error) Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...grpc.CallOption) (*ResetPasswordResponse, error) ChangePassword(ctx context.Context, in *ChangePasswordRequest, opts ...grpc.CallOption) (*ChangePasswordResponse, error) Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*LogoutResponse, error) Refresh(ctx context.Context, in *RefreshRequest, opts ...grpc.CallOption) (*RefreshResponse, error) GetJWKS(ctx context.Context, in *GetJWKSRequest, opts ...grpc.CallOption) (*GetJWKSResponse, error) GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserResponse, error) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error) }
AuthClient is the client API for Auth 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 NewAuthClient ¶
func NewAuthClient(cc grpc.ClientConnInterface) AuthClient
type AuthServer ¶
type AuthServer interface { RegisterApp(context.Context, *RegisterAppRequest) (*RegisterAppResponse, error) RegisterUser(context.Context, *RegisterUserRequest) (*RegisterUserResponse, error) VerifyEmail(context.Context, *VerifyEmailRequest) (*VerifyEmailResponse, error) Login(context.Context, *LoginRequest) (*LoginResponse, error) ResetPassword(context.Context, *ResetPasswordRequest) (*ResetPasswordResponse, error) ChangePassword(context.Context, *ChangePasswordRequest) (*ChangePasswordResponse, error) Logout(context.Context, *LogoutRequest) (*LogoutResponse, error) Refresh(context.Context, *RefreshRequest) (*RefreshResponse, error) GetJWKS(context.Context, *GetJWKSRequest) (*GetJWKSResponse, error) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error) // contains filtered or unexported methods }
AuthServer is the server API for Auth service. All implementations must embed UnimplementedAuthServer for forward compatibility.
type ChangePasswordRequest ¶
type ChangePasswordRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` UpdatedPassword string `protobuf:"bytes,2,opt,name=updated_password,json=updatedPassword,proto3" json:"updated_password,omitempty"` // contains filtered or unexported fields }
Change password method
func (*ChangePasswordRequest) Descriptor
deprecated
func (*ChangePasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChangePasswordRequest.ProtoReflect.Descriptor instead.
func (*ChangePasswordRequest) GetToken ¶
func (x *ChangePasswordRequest) GetToken() string
func (*ChangePasswordRequest) GetUpdatedPassword ¶
func (x *ChangePasswordRequest) GetUpdatedPassword() string
func (*ChangePasswordRequest) ProtoMessage ¶
func (*ChangePasswordRequest) ProtoMessage()
func (*ChangePasswordRequest) ProtoReflect ¶
func (x *ChangePasswordRequest) ProtoReflect() protoreflect.Message
func (*ChangePasswordRequest) Reset ¶
func (x *ChangePasswordRequest) Reset()
func (*ChangePasswordRequest) String ¶
func (x *ChangePasswordRequest) String() string
type ChangePasswordResponse ¶
type ChangePasswordResponse struct {
// contains filtered or unexported fields
}
func (*ChangePasswordResponse) Descriptor
deprecated
func (*ChangePasswordResponse) Descriptor() ([]byte, []int)
Deprecated: Use ChangePasswordResponse.ProtoReflect.Descriptor instead.
func (*ChangePasswordResponse) ProtoMessage ¶
func (*ChangePasswordResponse) ProtoMessage()
func (*ChangePasswordResponse) ProtoReflect ¶
func (x *ChangePasswordResponse) ProtoReflect() protoreflect.Message
func (*ChangePasswordResponse) Reset ¶
func (x *ChangePasswordResponse) Reset()
func (*ChangePasswordResponse) String ¶
func (x *ChangePasswordResponse) String() string
type DeleteUserRequest ¶
type DeleteUserRequest struct {
// contains filtered or unexported fields
}
Delete user method
func (*DeleteUserRequest) Descriptor
deprecated
func (*DeleteUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserRequest) ProtoMessage ¶
func (*DeleteUserRequest) ProtoMessage()
func (*DeleteUserRequest) ProtoReflect ¶
func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message
func (*DeleteUserRequest) Reset ¶
func (x *DeleteUserRequest) Reset()
func (*DeleteUserRequest) String ¶
func (x *DeleteUserRequest) String() string
type DeleteUserResponse ¶
type DeleteUserResponse struct {
// contains filtered or unexported fields
}
func (*DeleteUserResponse) Descriptor
deprecated
func (*DeleteUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserResponse.ProtoReflect.Descriptor instead.
func (*DeleteUserResponse) ProtoMessage ¶
func (*DeleteUserResponse) ProtoMessage()
func (*DeleteUserResponse) ProtoReflect ¶
func (x *DeleteUserResponse) ProtoReflect() protoreflect.Message
func (*DeleteUserResponse) Reset ¶
func (x *DeleteUserResponse) Reset()
func (*DeleteUserResponse) String ¶
func (x *DeleteUserResponse) String() string
type GetJWKSRequest ¶
type GetJWKSRequest struct {
// contains filtered or unexported fields
}
Get JWK method
func (*GetJWKSRequest) Descriptor
deprecated
func (*GetJWKSRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetJWKSRequest.ProtoReflect.Descriptor instead.
func (*GetJWKSRequest) ProtoMessage ¶
func (*GetJWKSRequest) ProtoMessage()
func (*GetJWKSRequest) ProtoReflect ¶
func (x *GetJWKSRequest) ProtoReflect() protoreflect.Message
func (*GetJWKSRequest) Reset ¶
func (x *GetJWKSRequest) Reset()
func (*GetJWKSRequest) String ¶
func (x *GetJWKSRequest) String() string
type GetJWKSResponse ¶
type GetJWKSResponse struct { Jwks []*JWK `protobuf:"bytes,1,rep,name=jwks,proto3" json:"jwks,omitempty"` // contains filtered or unexported fields }
func (*GetJWKSResponse) Descriptor
deprecated
func (*GetJWKSResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetJWKSResponse.ProtoReflect.Descriptor instead.
func (*GetJWKSResponse) GetJwks ¶
func (x *GetJWKSResponse) GetJwks() []*JWK
func (*GetJWKSResponse) ProtoMessage ¶
func (*GetJWKSResponse) ProtoMessage()
func (*GetJWKSResponse) ProtoReflect ¶
func (x *GetJWKSResponse) ProtoReflect() protoreflect.Message
func (*GetJWKSResponse) Reset ¶
func (x *GetJWKSResponse) Reset()
func (*GetJWKSResponse) String ¶
func (x *GetJWKSResponse) String() string
type GetUserRequest ¶
type GetUserRequest struct {
// contains filtered or unexported fields
}
Get user method
func (*GetUserRequest) Descriptor
deprecated
func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) ProtoMessage ¶
func (*GetUserRequest) ProtoMessage()
func (*GetUserRequest) ProtoReflect ¶
func (x *GetUserRequest) ProtoReflect() protoreflect.Message
func (*GetUserRequest) Reset ¶
func (x *GetUserRequest) Reset()
func (*GetUserRequest) String ¶
func (x *GetUserRequest) String() string
type GetUserResponse ¶
type GetUserResponse struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Verified bool `protobuf:"varint,2,opt,name=verified,proto3" json:"verified,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (*GetUserResponse) Descriptor
deprecated
func (*GetUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.
func (*GetUserResponse) GetEmail ¶
func (x *GetUserResponse) GetEmail() string
func (*GetUserResponse) GetUpdatedAt ¶
func (x *GetUserResponse) GetUpdatedAt() *timestamppb.Timestamp
func (*GetUserResponse) GetVerified ¶
func (x *GetUserResponse) GetVerified() bool
func (*GetUserResponse) ProtoMessage ¶
func (*GetUserResponse) ProtoMessage()
func (*GetUserResponse) ProtoReflect ¶
func (x *GetUserResponse) ProtoReflect() protoreflect.Message
func (*GetUserResponse) Reset ¶
func (x *GetUserResponse) Reset()
func (*GetUserResponse) String ¶
func (x *GetUserResponse) String() string
type JWK ¶
type JWK struct { Alg string `protobuf:"bytes,1,opt,name=alg,proto3" json:"alg,omitempty"` Kty string `protobuf:"bytes,2,opt,name=kty,proto3" json:"kty,omitempty"` Use string `protobuf:"bytes,3,opt,name=use,proto3" json:"use,omitempty"` Kid string `protobuf:"bytes,4,opt,name=kid,proto3" json:"kid,omitempty"` N string `protobuf:"bytes,5,opt,name=n,proto3" json:"n,omitempty"` E string `protobuf:"bytes,6,opt,name=e,proto3" json:"e,omitempty"` // contains filtered or unexported fields }
func (*JWK) Descriptor
deprecated
func (*JWK) ProtoMessage ¶
func (*JWK) ProtoMessage()
func (*JWK) ProtoReflect ¶
func (x *JWK) ProtoReflect() protoreflect.Message
type LoginRequest ¶
type LoginRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` UserDeviceData *UserDeviceData `protobuf:"bytes,3,opt,name=user_device_data,json=userDeviceData,proto3" json:"user_device_data,omitempty"` // contains filtered or unexported fields }
Login method
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetEmail ¶
func (x *LoginRequest) GetEmail() string
func (*LoginRequest) GetPassword ¶
func (x *LoginRequest) GetPassword() string
func (*LoginRequest) GetUserDeviceData ¶
func (x *LoginRequest) GetUserDeviceData() *UserDeviceData
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 { TokenData *TokenData `protobuf:"bytes,1,opt,name=token_data,json=tokenData,proto3" json:"token_data,omitempty"` // contains filtered or unexported fields }
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetTokenData ¶
func (x *LoginResponse) GetTokenData() *TokenData
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 LogoutRequest ¶
type LogoutRequest struct { UserDeviceData *UserDeviceData `protobuf:"bytes,1,opt,name=user_device_data,json=userDeviceData,proto3" json:"user_device_data,omitempty"` // contains filtered or unexported fields }
Logout user method
func (*LogoutRequest) Descriptor
deprecated
func (*LogoutRequest) Descriptor() ([]byte, []int)
Deprecated: Use LogoutRequest.ProtoReflect.Descriptor instead.
func (*LogoutRequest) GetUserDeviceData ¶
func (x *LogoutRequest) GetUserDeviceData() *UserDeviceData
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 {
// contains filtered or unexported fields
}
func (*LogoutResponse) Descriptor
deprecated
func (*LogoutResponse) Descriptor() ([]byte, []int)
Deprecated: Use LogoutResponse.ProtoReflect.Descriptor instead.
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 RefreshRequest ¶
type RefreshRequest struct { RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` UserDeviceData *UserDeviceData `protobuf:"bytes,2,opt,name=user_device_data,json=userDeviceData,proto3" json:"user_device_data,omitempty"` // contains filtered or unexported fields }
Refresh tokens method
func (*RefreshRequest) Descriptor
deprecated
func (*RefreshRequest) Descriptor() ([]byte, []int)
Deprecated: Use RefreshRequest.ProtoReflect.Descriptor instead.
func (*RefreshRequest) GetRefreshToken ¶
func (x *RefreshRequest) GetRefreshToken() string
func (*RefreshRequest) GetUserDeviceData ¶
func (x *RefreshRequest) GetUserDeviceData() *UserDeviceData
func (*RefreshRequest) ProtoMessage ¶
func (*RefreshRequest) ProtoMessage()
func (*RefreshRequest) ProtoReflect ¶
func (x *RefreshRequest) ProtoReflect() protoreflect.Message
func (*RefreshRequest) Reset ¶
func (x *RefreshRequest) Reset()
func (*RefreshRequest) String ¶
func (x *RefreshRequest) String() string
type RefreshResponse ¶
type RefreshResponse struct { TokenData *TokenData `protobuf:"bytes,1,opt,name=token_data,json=tokenData,proto3" json:"token_data,omitempty"` // contains filtered or unexported fields }
func (*RefreshResponse) Descriptor
deprecated
func (*RefreshResponse) Descriptor() ([]byte, []int)
Deprecated: Use RefreshResponse.ProtoReflect.Descriptor instead.
func (*RefreshResponse) GetTokenData ¶
func (x *RefreshResponse) GetTokenData() *TokenData
func (*RefreshResponse) ProtoMessage ¶
func (*RefreshResponse) ProtoMessage()
func (*RefreshResponse) ProtoReflect ¶
func (x *RefreshResponse) ProtoReflect() protoreflect.Message
func (*RefreshResponse) Reset ¶
func (x *RefreshResponse) Reset()
func (*RefreshResponse) String ¶
func (x *RefreshResponse) String() string
type RegisterAppRequest ¶
type RegisterAppRequest struct { AppName string `protobuf:"bytes,1,opt,name=app_name,json=appName,proto3" json:"app_name,omitempty"` // contains filtered or unexported fields }
Register app method
func (*RegisterAppRequest) Descriptor
deprecated
func (*RegisterAppRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterAppRequest.ProtoReflect.Descriptor instead.
func (*RegisterAppRequest) GetAppName ¶
func (x *RegisterAppRequest) GetAppName() string
func (*RegisterAppRequest) ProtoMessage ¶
func (*RegisterAppRequest) ProtoMessage()
func (*RegisterAppRequest) ProtoReflect ¶
func (x *RegisterAppRequest) ProtoReflect() protoreflect.Message
func (*RegisterAppRequest) Reset ¶
func (x *RegisterAppRequest) Reset()
func (*RegisterAppRequest) String ¶
func (x *RegisterAppRequest) String() string
type RegisterAppResponse ¶
type RegisterAppResponse struct {
// contains filtered or unexported fields
}
func (*RegisterAppResponse) Descriptor
deprecated
func (*RegisterAppResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterAppResponse.ProtoReflect.Descriptor instead.
func (*RegisterAppResponse) ProtoMessage ¶
func (*RegisterAppResponse) ProtoMessage()
func (*RegisterAppResponse) ProtoReflect ¶
func (x *RegisterAppResponse) ProtoReflect() protoreflect.Message
func (*RegisterAppResponse) Reset ¶
func (x *RegisterAppResponse) Reset()
func (*RegisterAppResponse) String ¶
func (x *RegisterAppResponse) String() string
type RegisterUserRequest ¶
type RegisterUserRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` VerificationUrl string `protobuf:"bytes,3,opt,name=verification_url,json=verificationUrl,proto3" json:"verification_url,omitempty"` UserDeviceData *UserDeviceData `protobuf:"bytes,4,opt,name=user_device_data,json=userDeviceData,proto3" json:"user_device_data,omitempty"` // contains filtered or unexported fields }
Register method
func (*RegisterUserRequest) Descriptor
deprecated
func (*RegisterUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterUserRequest.ProtoReflect.Descriptor instead.
func (*RegisterUserRequest) GetEmail ¶
func (x *RegisterUserRequest) GetEmail() string
func (*RegisterUserRequest) GetPassword ¶
func (x *RegisterUserRequest) GetPassword() string
func (*RegisterUserRequest) GetUserDeviceData ¶
func (x *RegisterUserRequest) GetUserDeviceData() *UserDeviceData
func (*RegisterUserRequest) GetVerificationUrl ¶
func (x *RegisterUserRequest) GetVerificationUrl() string
func (*RegisterUserRequest) ProtoMessage ¶
func (*RegisterUserRequest) ProtoMessage()
func (*RegisterUserRequest) ProtoReflect ¶
func (x *RegisterUserRequest) ProtoReflect() protoreflect.Message
func (*RegisterUserRequest) Reset ¶
func (x *RegisterUserRequest) Reset()
func (*RegisterUserRequest) String ¶
func (x *RegisterUserRequest) String() string
type RegisterUserResponse ¶
type RegisterUserResponse struct { TokenData *TokenData `protobuf:"bytes,1,opt,name=token_data,json=tokenData,proto3" json:"token_data,omitempty"` // contains filtered or unexported fields }
func (*RegisterUserResponse) Descriptor
deprecated
func (*RegisterUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterUserResponse.ProtoReflect.Descriptor instead.
func (*RegisterUserResponse) GetTokenData ¶
func (x *RegisterUserResponse) GetTokenData() *TokenData
func (*RegisterUserResponse) ProtoMessage ¶
func (*RegisterUserResponse) ProtoMessage()
func (*RegisterUserResponse) ProtoReflect ¶
func (x *RegisterUserResponse) ProtoReflect() protoreflect.Message
func (*RegisterUserResponse) Reset ¶
func (x *RegisterUserResponse) Reset()
func (*RegisterUserResponse) String ¶
func (x *RegisterUserResponse) String() string
type ResetPasswordRequest ¶
type ResetPasswordRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` ConfirmUrl string `protobuf:"bytes,2,opt,name=confirm_url,json=confirmUrl,proto3" json:"confirm_url,omitempty"` // contains filtered or unexported fields }
Reset password method
func (*ResetPasswordRequest) Descriptor
deprecated
func (*ResetPasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResetPasswordRequest.ProtoReflect.Descriptor instead.
func (*ResetPasswordRequest) GetConfirmUrl ¶
func (x *ResetPasswordRequest) GetConfirmUrl() string
func (*ResetPasswordRequest) GetEmail ¶
func (x *ResetPasswordRequest) GetEmail() string
func (*ResetPasswordRequest) ProtoMessage ¶
func (*ResetPasswordRequest) ProtoMessage()
func (*ResetPasswordRequest) ProtoReflect ¶
func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message
func (*ResetPasswordRequest) Reset ¶
func (x *ResetPasswordRequest) Reset()
func (*ResetPasswordRequest) String ¶
func (x *ResetPasswordRequest) String() string
type ResetPasswordResponse ¶
type ResetPasswordResponse struct {
// contains filtered or unexported fields
}
func (*ResetPasswordResponse) Descriptor
deprecated
func (*ResetPasswordResponse) Descriptor() ([]byte, []int)
Deprecated: Use ResetPasswordResponse.ProtoReflect.Descriptor instead.
func (*ResetPasswordResponse) ProtoMessage ¶
func (*ResetPasswordResponse) ProtoMessage()
func (*ResetPasswordResponse) ProtoReflect ¶
func (x *ResetPasswordResponse) ProtoReflect() protoreflect.Message
func (*ResetPasswordResponse) Reset ¶
func (x *ResetPasswordResponse) Reset()
func (*ResetPasswordResponse) String ¶
func (x *ResetPasswordResponse) String() string
type TokenData ¶
type TokenData struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` HttpOnly bool `protobuf:"varint,6,opt,name=http_only,json=httpOnly,proto3" json:"http_only,omitempty"` AdditionalFields map[string]string `` /* 197-byte string literal not displayed */ // contains filtered or unexported fields }
func (*TokenData) Descriptor
deprecated
func (*TokenData) GetAccessToken ¶
func (*TokenData) GetAdditionalFields ¶
func (*TokenData) GetExpiresAt ¶
func (x *TokenData) GetExpiresAt() *timestamppb.Timestamp
func (*TokenData) GetHttpOnly ¶
func (*TokenData) GetRefreshToken ¶
func (*TokenData) ProtoMessage ¶
func (*TokenData) ProtoMessage()
func (*TokenData) ProtoReflect ¶
func (x *TokenData) ProtoReflect() protoreflect.Message
type UnimplementedAuthServer ¶
type UnimplementedAuthServer struct{}
UnimplementedAuthServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedAuthServer) ChangePassword ¶
func (UnimplementedAuthServer) ChangePassword(context.Context, *ChangePasswordRequest) (*ChangePasswordResponse, error)
func (UnimplementedAuthServer) DeleteUser ¶
func (UnimplementedAuthServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
func (UnimplementedAuthServer) GetJWKS ¶
func (UnimplementedAuthServer) GetJWKS(context.Context, *GetJWKSRequest) (*GetJWKSResponse, error)
func (UnimplementedAuthServer) GetUser ¶
func (UnimplementedAuthServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
func (UnimplementedAuthServer) Login ¶
func (UnimplementedAuthServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
func (UnimplementedAuthServer) Logout ¶
func (UnimplementedAuthServer) Logout(context.Context, *LogoutRequest) (*LogoutResponse, error)
func (UnimplementedAuthServer) Refresh ¶
func (UnimplementedAuthServer) Refresh(context.Context, *RefreshRequest) (*RefreshResponse, error)
func (UnimplementedAuthServer) RegisterApp ¶
func (UnimplementedAuthServer) RegisterApp(context.Context, *RegisterAppRequest) (*RegisterAppResponse, error)
func (UnimplementedAuthServer) RegisterUser ¶
func (UnimplementedAuthServer) RegisterUser(context.Context, *RegisterUserRequest) (*RegisterUserResponse, error)
func (UnimplementedAuthServer) ResetPassword ¶
func (UnimplementedAuthServer) ResetPassword(context.Context, *ResetPasswordRequest) (*ResetPasswordResponse, error)
func (UnimplementedAuthServer) UpdateUser ¶
func (UnimplementedAuthServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error)
func (UnimplementedAuthServer) VerifyEmail ¶
func (UnimplementedAuthServer) VerifyEmail(context.Context, *VerifyEmailRequest) (*VerifyEmailResponse, error)
type UnsafeAuthServer ¶
type UnsafeAuthServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServer will result in compilation errors.
type UpdateUserRequest ¶
type UpdateUserRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` CurrentPassword string `protobuf:"bytes,2,opt,name=current_password,json=currentPassword,proto3" json:"current_password,omitempty"` UpdatedPassword string `protobuf:"bytes,3,opt,name=updated_password,json=updatedPassword,proto3" json:"updated_password,omitempty"` // contains filtered or unexported fields }
Update user method
func (*UpdateUserRequest) Descriptor
deprecated
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserRequest) GetCurrentPassword ¶
func (x *UpdateUserRequest) GetCurrentPassword() string
func (*UpdateUserRequest) GetEmail ¶
func (x *UpdateUserRequest) GetEmail() string
func (*UpdateUserRequest) GetUpdatedPassword ¶
func (x *UpdateUserRequest) GetUpdatedPassword() string
func (*UpdateUserRequest) ProtoMessage ¶
func (*UpdateUserRequest) ProtoMessage()
func (*UpdateUserRequest) ProtoReflect ¶
func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserRequest) Reset ¶
func (x *UpdateUserRequest) Reset()
func (*UpdateUserRequest) String ¶
func (x *UpdateUserRequest) String() string
type UpdateUserResponse ¶
type UpdateUserResponse struct {
// contains filtered or unexported fields
}
func (*UpdateUserResponse) Descriptor
deprecated
func (*UpdateUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserResponse.ProtoReflect.Descriptor instead.
func (*UpdateUserResponse) ProtoMessage ¶
func (*UpdateUserResponse) ProtoMessage()
func (*UpdateUserResponse) ProtoReflect ¶
func (x *UpdateUserResponse) ProtoReflect() protoreflect.Message
func (*UpdateUserResponse) Reset ¶
func (x *UpdateUserResponse) Reset()
func (*UpdateUserResponse) String ¶
func (x *UpdateUserResponse) String() string
type UserDeviceData ¶
type UserDeviceData struct { UserAgent string `protobuf:"bytes,1,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"` Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"` // contains filtered or unexported fields }
Custom types
func (*UserDeviceData) Descriptor
deprecated
func (*UserDeviceData) Descriptor() ([]byte, []int)
Deprecated: Use UserDeviceData.ProtoReflect.Descriptor instead.
func (*UserDeviceData) GetIp ¶
func (x *UserDeviceData) GetIp() string
func (*UserDeviceData) GetUserAgent ¶
func (x *UserDeviceData) GetUserAgent() string
func (*UserDeviceData) ProtoMessage ¶
func (*UserDeviceData) ProtoMessage()
func (*UserDeviceData) ProtoReflect ¶
func (x *UserDeviceData) ProtoReflect() protoreflect.Message
func (*UserDeviceData) Reset ¶
func (x *UserDeviceData) Reset()
func (*UserDeviceData) String ¶
func (x *UserDeviceData) String() string
type VerifyEmailRequest ¶
type VerifyEmailRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
Verify email method
func (*VerifyEmailRequest) Descriptor
deprecated
func (*VerifyEmailRequest) Descriptor() ([]byte, []int)
Deprecated: Use VerifyEmailRequest.ProtoReflect.Descriptor instead.
func (*VerifyEmailRequest) GetToken ¶
func (x *VerifyEmailRequest) GetToken() string
func (*VerifyEmailRequest) ProtoMessage ¶
func (*VerifyEmailRequest) ProtoMessage()
func (*VerifyEmailRequest) ProtoReflect ¶
func (x *VerifyEmailRequest) ProtoReflect() protoreflect.Message
func (*VerifyEmailRequest) Reset ¶
func (x *VerifyEmailRequest) Reset()
func (*VerifyEmailRequest) String ¶
func (x *VerifyEmailRequest) String() string
type VerifyEmailResponse ¶
type VerifyEmailResponse struct {
// contains filtered or unexported fields
}
func (*VerifyEmailResponse) Descriptor
deprecated
func (*VerifyEmailResponse) Descriptor() ([]byte, []int)
Deprecated: Use VerifyEmailResponse.ProtoReflect.Descriptor instead.
func (*VerifyEmailResponse) ProtoMessage ¶
func (*VerifyEmailResponse) ProtoMessage()
func (*VerifyEmailResponse) ProtoReflect ¶
func (x *VerifyEmailResponse) ProtoReflect() protoreflect.Message
func (*VerifyEmailResponse) Reset ¶
func (x *VerifyEmailResponse) Reset()
func (*VerifyEmailResponse) String ¶
func (x *VerifyEmailResponse) String() string