1352 lines
59 KiB
Go
1352 lines
59 KiB
Go
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
// versions:
|
|
// - protoc-gen-go-grpc v1.6.2
|
|
// - protoc v7.34.1
|
|
// source: st-peter-auth.proto
|
|
|
|
package auth_service
|
|
|
|
import (
|
|
context "context"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
)
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
// Requires gRPC-Go v1.64.0 or later.
|
|
const _ = grpc.SupportPackageIsVersion9
|
|
|
|
const (
|
|
AuthService_RegisterUser_FullMethodName = "/st_peter.auth.AuthService/RegisterUser"
|
|
AuthService_VerifyRegisterUser_FullMethodName = "/st_peter.auth.AuthService/VerifyRegisterUser"
|
|
AuthService_Login_FullMethodName = "/st_peter.auth.AuthService/Login"
|
|
AuthService_Logout_FullMethodName = "/st_peter.auth.AuthService/Logout"
|
|
AuthService_VerifyToken_FullMethodName = "/st_peter.auth.AuthService/VerifyToken"
|
|
AuthService_VerifyAuthClaimToken_FullMethodName = "/st_peter.auth.AuthService/VerifyAuthClaimToken"
|
|
AuthService_InitiateTwoFactor_FullMethodName = "/st_peter.auth.AuthService/InitiateTwoFactor"
|
|
AuthService_VerifyTwoFactor_FullMethodName = "/st_peter.auth.AuthService/VerifyTwoFactor"
|
|
AuthService_InitiatePasswordReset_FullMethodName = "/st_peter.auth.AuthService/InitiatePasswordReset"
|
|
AuthService_VerifyPasswordResetToken_FullMethodName = "/st_peter.auth.AuthService/VerifyPasswordResetToken"
|
|
AuthService_ResetPassword_FullMethodName = "/st_peter.auth.AuthService/ResetPassword"
|
|
AuthService_ResendVerificationCode_FullMethodName = "/st_peter.auth.AuthService/ResendVerificationCode"
|
|
AuthService_UpdateUserInfo_FullMethodName = "/st_peter.auth.AuthService/UpdateUserInfo"
|
|
AuthService_ChangeIdentityField_FullMethodName = "/st_peter.auth.AuthService/ChangeIdentityField"
|
|
AuthService_VerifyIdentityField_FullMethodName = "/st_peter.auth.AuthService/VerifyIdentityField"
|
|
AuthService_ResendIdentifierChangeCode_FullMethodName = "/st_peter.auth.AuthService/ResendIdentifierChangeCode"
|
|
AuthService_UpdateUserPreference_FullMethodName = "/st_peter.auth.AuthService/UpdateUserPreference"
|
|
AuthService_GetUserPreferenceByCode_FullMethodName = "/st_peter.auth.AuthService/GetUserPreferenceByCode"
|
|
AuthService_GetUserSessions_FullMethodName = "/st_peter.auth.AuthService/GetUserSessions"
|
|
AuthService_ClearUserSessions_FullMethodName = "/st_peter.auth.AuthService/ClearUserSessions"
|
|
AuthService_SocialLogin_FullMethodName = "/st_peter.auth.AuthService/SocialLogin"
|
|
AuthService_InitiateOAuth_FullMethodName = "/st_peter.auth.AuthService/InitiateOAuth"
|
|
AuthService_CompleteOAuth_FullMethodName = "/st_peter.auth.AuthService/CompleteOAuth"
|
|
AuthService_LinkSocialAccount_FullMethodName = "/st_peter.auth.AuthService/LinkSocialAccount"
|
|
AuthService_UnlinkSocialAccount_FullMethodName = "/st_peter.auth.AuthService/UnlinkSocialAccount"
|
|
AuthService_GetLinkedAccounts_FullMethodName = "/st_peter.auth.AuthService/GetLinkedAccounts"
|
|
AuthService_CreateApiKey_FullMethodName = "/st_peter.auth.AuthService/CreateApiKey"
|
|
AuthService_ListApiKeys_FullMethodName = "/st_peter.auth.AuthService/ListApiKeys"
|
|
AuthService_RevokeApiKey_FullMethodName = "/st_peter.auth.AuthService/RevokeApiKey"
|
|
AuthService_VerifyApiKey_FullMethodName = "/st_peter.auth.AuthService/VerifyApiKey"
|
|
AuthService_GetPasswordPolicy_FullMethodName = "/st_peter.auth.AuthService/GetPasswordPolicy"
|
|
AuthService_GetMetrics_FullMethodName = "/st_peter.auth.AuthService/GetMetrics"
|
|
AuthService_LookupUser_FullMethodName = "/st_peter.auth.AuthService/LookupUser"
|
|
)
|
|
|
|
// AuthServiceClient is the client API for AuthService 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.
|
|
type AuthServiceClient interface {
|
|
RegisterUser(ctx context.Context, in *RegisterUserRequest, opts ...grpc.CallOption) (*RegisterUserResponse, error)
|
|
VerifyRegisterUser(ctx context.Context, in *VerifyRegisterUserRequest, opts ...grpc.CallOption) (*AuthenticationResponse, error)
|
|
Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*AuthenticationResponse, error)
|
|
Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*LogoutResponse, error)
|
|
VerifyToken(ctx context.Context, in *VerifyTokenRequest, opts ...grpc.CallOption) (*AuthenticationResponse, error)
|
|
VerifyAuthClaimToken(ctx context.Context, in *VerifyAuthClaimTokenRequest, opts ...grpc.CallOption) (*AuthenticationResponse, error)
|
|
InitiateTwoFactor(ctx context.Context, in *InitiateTwoFactorRequest, opts ...grpc.CallOption) (*InitiateTwoFactorResponse, error)
|
|
VerifyTwoFactor(ctx context.Context, in *VerifyTwoFactorRequest, opts ...grpc.CallOption) (*AuthenticationResponse, error)
|
|
InitiatePasswordReset(ctx context.Context, in *InitiatePasswordResetRequest, opts ...grpc.CallOption) (*PasswordResetTokenResponse, error)
|
|
VerifyPasswordResetToken(ctx context.Context, in *VerifyPasswordResetTokenRequest, opts ...grpc.CallOption) (*PasswordResetTokenResponse, error)
|
|
ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...grpc.CallOption) (*AuthenticationResponse, error)
|
|
ResendVerificationCode(ctx context.Context, in *ResendVerificationRequest, opts ...grpc.CallOption) (*ResendVerificationResponse, error)
|
|
UpdateUserInfo(ctx context.Context, in *UpdateUserInfoRequest, opts ...grpc.CallOption) (*UpdateUserInfoResponse, error)
|
|
ChangeIdentityField(ctx context.Context, in *ChangeIdentityFieldRequest, opts ...grpc.CallOption) (*ChangeIdentityFieldResponse, error)
|
|
VerifyIdentityField(ctx context.Context, in *VerifyIdentityFieldRequest, opts ...grpc.CallOption) (*VerifyIdentityFieldResponse, error)
|
|
ResendIdentifierChangeCode(ctx context.Context, in *ResendIdentityFieldRequest, opts ...grpc.CallOption) (*ChangeIdentityFieldResponse, error)
|
|
UpdateUserPreference(ctx context.Context, in *UpdateUserPreferenceRequest, opts ...grpc.CallOption) (*OperationResponse, error)
|
|
GetUserPreferenceByCode(ctx context.Context, in *GetUserPreferenceByCodeRequest, opts ...grpc.CallOption) (*GetUserPreferenceByCodeResponse, error)
|
|
GetUserSessions(ctx context.Context, in *GetUserSessionsRequest, opts ...grpc.CallOption) (*GetUserSessionsResponse, error)
|
|
ClearUserSessions(ctx context.Context, in *ClearUserSessionsRequest, opts ...grpc.CallOption) (*ClearUserSessionsResponse, error)
|
|
// Social login - Mobile flow (validates ID token from native SDK)
|
|
SocialLogin(ctx context.Context, in *SocialLoginRequest, opts ...grpc.CallOption) (*SocialLoginResponse, error)
|
|
// Social login - Web OAuth flow
|
|
InitiateOAuth(ctx context.Context, in *InitiateOAuthRequest, opts ...grpc.CallOption) (*InitiateOAuthResponse, error)
|
|
CompleteOAuth(ctx context.Context, in *OAuthCallbackRequest, opts ...grpc.CallOption) (*SocialLoginResponse, error)
|
|
// Account linking
|
|
LinkSocialAccount(ctx context.Context, in *LinkSocialAccountRequest, opts ...grpc.CallOption) (*OperationResponse, error)
|
|
UnlinkSocialAccount(ctx context.Context, in *UnlinkSocialAccountRequest, opts ...grpc.CallOption) (*OperationResponse, error)
|
|
GetLinkedAccounts(ctx context.Context, in *GetLinkedAccountsRequest, opts ...grpc.CallOption) (*GetLinkedAccountsResponse, error)
|
|
// API Keys
|
|
CreateApiKey(ctx context.Context, in *CreateApiKeyRequest, opts ...grpc.CallOption) (*CreateApiKeyResponse, error)
|
|
ListApiKeys(ctx context.Context, in *ListApiKeysRequest, opts ...grpc.CallOption) (*ListApiKeysResponse, error)
|
|
RevokeApiKey(ctx context.Context, in *RevokeApiKeyRequest, opts ...grpc.CallOption) (*OperationResponse, error)
|
|
VerifyApiKey(ctx context.Context, in *VerifyApiKeyRequest, opts ...grpc.CallOption) (*AuthenticationResponse, error)
|
|
// Password policy (public, no auth required)
|
|
GetPasswordPolicy(ctx context.Context, in *GetPasswordPolicyRequest, opts ...grpc.CallOption) (*GetPasswordPolicyResponse, error)
|
|
// Metrics
|
|
GetMetrics(ctx context.Context, in *GetMetricsRequest, opts ...grpc.CallOption) (*GetMetricsResponse, error)
|
|
// User lookup by identifier (email, phone, or handle) — any authenticated user
|
|
LookupUser(ctx context.Context, in *LookupUserRequest, opts ...grpc.CallOption) (*LookupUserResponse, error)
|
|
}
|
|
|
|
type authServiceClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient {
|
|
return &authServiceClient{cc}
|
|
}
|
|
|
|
func (c *authServiceClient) RegisterUser(ctx context.Context, in *RegisterUserRequest, opts ...grpc.CallOption) (*RegisterUserResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(RegisterUserResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_RegisterUser_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) VerifyRegisterUser(ctx context.Context, in *VerifyRegisterUserRequest, opts ...grpc.CallOption) (*AuthenticationResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(AuthenticationResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_VerifyRegisterUser_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*AuthenticationResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(AuthenticationResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_Login_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*LogoutResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(LogoutResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_Logout_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) VerifyToken(ctx context.Context, in *VerifyTokenRequest, opts ...grpc.CallOption) (*AuthenticationResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(AuthenticationResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_VerifyToken_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) VerifyAuthClaimToken(ctx context.Context, in *VerifyAuthClaimTokenRequest, opts ...grpc.CallOption) (*AuthenticationResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(AuthenticationResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_VerifyAuthClaimToken_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) InitiateTwoFactor(ctx context.Context, in *InitiateTwoFactorRequest, opts ...grpc.CallOption) (*InitiateTwoFactorResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(InitiateTwoFactorResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_InitiateTwoFactor_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) VerifyTwoFactor(ctx context.Context, in *VerifyTwoFactorRequest, opts ...grpc.CallOption) (*AuthenticationResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(AuthenticationResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_VerifyTwoFactor_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) InitiatePasswordReset(ctx context.Context, in *InitiatePasswordResetRequest, opts ...grpc.CallOption) (*PasswordResetTokenResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(PasswordResetTokenResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_InitiatePasswordReset_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) VerifyPasswordResetToken(ctx context.Context, in *VerifyPasswordResetTokenRequest, opts ...grpc.CallOption) (*PasswordResetTokenResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(PasswordResetTokenResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_VerifyPasswordResetToken_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...grpc.CallOption) (*AuthenticationResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(AuthenticationResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_ResetPassword_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) ResendVerificationCode(ctx context.Context, in *ResendVerificationRequest, opts ...grpc.CallOption) (*ResendVerificationResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(ResendVerificationResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_ResendVerificationCode_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) UpdateUserInfo(ctx context.Context, in *UpdateUserInfoRequest, opts ...grpc.CallOption) (*UpdateUserInfoResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(UpdateUserInfoResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_UpdateUserInfo_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) ChangeIdentityField(ctx context.Context, in *ChangeIdentityFieldRequest, opts ...grpc.CallOption) (*ChangeIdentityFieldResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(ChangeIdentityFieldResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_ChangeIdentityField_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) VerifyIdentityField(ctx context.Context, in *VerifyIdentityFieldRequest, opts ...grpc.CallOption) (*VerifyIdentityFieldResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(VerifyIdentityFieldResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_VerifyIdentityField_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) ResendIdentifierChangeCode(ctx context.Context, in *ResendIdentityFieldRequest, opts ...grpc.CallOption) (*ChangeIdentityFieldResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(ChangeIdentityFieldResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_ResendIdentifierChangeCode_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) UpdateUserPreference(ctx context.Context, in *UpdateUserPreferenceRequest, opts ...grpc.CallOption) (*OperationResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(OperationResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_UpdateUserPreference_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) GetUserPreferenceByCode(ctx context.Context, in *GetUserPreferenceByCodeRequest, opts ...grpc.CallOption) (*GetUserPreferenceByCodeResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(GetUserPreferenceByCodeResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_GetUserPreferenceByCode_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) GetUserSessions(ctx context.Context, in *GetUserSessionsRequest, opts ...grpc.CallOption) (*GetUserSessionsResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(GetUserSessionsResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_GetUserSessions_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) ClearUserSessions(ctx context.Context, in *ClearUserSessionsRequest, opts ...grpc.CallOption) (*ClearUserSessionsResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(ClearUserSessionsResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_ClearUserSessions_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) SocialLogin(ctx context.Context, in *SocialLoginRequest, opts ...grpc.CallOption) (*SocialLoginResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(SocialLoginResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_SocialLogin_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) InitiateOAuth(ctx context.Context, in *InitiateOAuthRequest, opts ...grpc.CallOption) (*InitiateOAuthResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(InitiateOAuthResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_InitiateOAuth_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) CompleteOAuth(ctx context.Context, in *OAuthCallbackRequest, opts ...grpc.CallOption) (*SocialLoginResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(SocialLoginResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_CompleteOAuth_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) LinkSocialAccount(ctx context.Context, in *LinkSocialAccountRequest, opts ...grpc.CallOption) (*OperationResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(OperationResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_LinkSocialAccount_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) UnlinkSocialAccount(ctx context.Context, in *UnlinkSocialAccountRequest, opts ...grpc.CallOption) (*OperationResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(OperationResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_UnlinkSocialAccount_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) GetLinkedAccounts(ctx context.Context, in *GetLinkedAccountsRequest, opts ...grpc.CallOption) (*GetLinkedAccountsResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(GetLinkedAccountsResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_GetLinkedAccounts_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) CreateApiKey(ctx context.Context, in *CreateApiKeyRequest, opts ...grpc.CallOption) (*CreateApiKeyResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(CreateApiKeyResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_CreateApiKey_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) ListApiKeys(ctx context.Context, in *ListApiKeysRequest, opts ...grpc.CallOption) (*ListApiKeysResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(ListApiKeysResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_ListApiKeys_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) RevokeApiKey(ctx context.Context, in *RevokeApiKeyRequest, opts ...grpc.CallOption) (*OperationResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(OperationResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_RevokeApiKey_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) VerifyApiKey(ctx context.Context, in *VerifyApiKeyRequest, opts ...grpc.CallOption) (*AuthenticationResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(AuthenticationResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_VerifyApiKey_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) GetPasswordPolicy(ctx context.Context, in *GetPasswordPolicyRequest, opts ...grpc.CallOption) (*GetPasswordPolicyResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(GetPasswordPolicyResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_GetPasswordPolicy_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) GetMetrics(ctx context.Context, in *GetMetricsRequest, opts ...grpc.CallOption) (*GetMetricsResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(GetMetricsResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_GetMetrics_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authServiceClient) LookupUser(ctx context.Context, in *LookupUserRequest, opts ...grpc.CallOption) (*LookupUserResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(LookupUserResponse)
|
|
err := c.cc.Invoke(ctx, AuthService_LookupUser_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// AuthServiceServer is the server API for AuthService service.
|
|
// All implementations must embed UnimplementedAuthServiceServer
|
|
// for forward compatibility.
|
|
type AuthServiceServer interface {
|
|
RegisterUser(context.Context, *RegisterUserRequest) (*RegisterUserResponse, error)
|
|
VerifyRegisterUser(context.Context, *VerifyRegisterUserRequest) (*AuthenticationResponse, error)
|
|
Login(context.Context, *LoginRequest) (*AuthenticationResponse, error)
|
|
Logout(context.Context, *LogoutRequest) (*LogoutResponse, error)
|
|
VerifyToken(context.Context, *VerifyTokenRequest) (*AuthenticationResponse, error)
|
|
VerifyAuthClaimToken(context.Context, *VerifyAuthClaimTokenRequest) (*AuthenticationResponse, error)
|
|
InitiateTwoFactor(context.Context, *InitiateTwoFactorRequest) (*InitiateTwoFactorResponse, error)
|
|
VerifyTwoFactor(context.Context, *VerifyTwoFactorRequest) (*AuthenticationResponse, error)
|
|
InitiatePasswordReset(context.Context, *InitiatePasswordResetRequest) (*PasswordResetTokenResponse, error)
|
|
VerifyPasswordResetToken(context.Context, *VerifyPasswordResetTokenRequest) (*PasswordResetTokenResponse, error)
|
|
ResetPassword(context.Context, *ResetPasswordRequest) (*AuthenticationResponse, error)
|
|
ResendVerificationCode(context.Context, *ResendVerificationRequest) (*ResendVerificationResponse, error)
|
|
UpdateUserInfo(context.Context, *UpdateUserInfoRequest) (*UpdateUserInfoResponse, error)
|
|
ChangeIdentityField(context.Context, *ChangeIdentityFieldRequest) (*ChangeIdentityFieldResponse, error)
|
|
VerifyIdentityField(context.Context, *VerifyIdentityFieldRequest) (*VerifyIdentityFieldResponse, error)
|
|
ResendIdentifierChangeCode(context.Context, *ResendIdentityFieldRequest) (*ChangeIdentityFieldResponse, error)
|
|
UpdateUserPreference(context.Context, *UpdateUserPreferenceRequest) (*OperationResponse, error)
|
|
GetUserPreferenceByCode(context.Context, *GetUserPreferenceByCodeRequest) (*GetUserPreferenceByCodeResponse, error)
|
|
GetUserSessions(context.Context, *GetUserSessionsRequest) (*GetUserSessionsResponse, error)
|
|
ClearUserSessions(context.Context, *ClearUserSessionsRequest) (*ClearUserSessionsResponse, error)
|
|
// Social login - Mobile flow (validates ID token from native SDK)
|
|
SocialLogin(context.Context, *SocialLoginRequest) (*SocialLoginResponse, error)
|
|
// Social login - Web OAuth flow
|
|
InitiateOAuth(context.Context, *InitiateOAuthRequest) (*InitiateOAuthResponse, error)
|
|
CompleteOAuth(context.Context, *OAuthCallbackRequest) (*SocialLoginResponse, error)
|
|
// Account linking
|
|
LinkSocialAccount(context.Context, *LinkSocialAccountRequest) (*OperationResponse, error)
|
|
UnlinkSocialAccount(context.Context, *UnlinkSocialAccountRequest) (*OperationResponse, error)
|
|
GetLinkedAccounts(context.Context, *GetLinkedAccountsRequest) (*GetLinkedAccountsResponse, error)
|
|
// API Keys
|
|
CreateApiKey(context.Context, *CreateApiKeyRequest) (*CreateApiKeyResponse, error)
|
|
ListApiKeys(context.Context, *ListApiKeysRequest) (*ListApiKeysResponse, error)
|
|
RevokeApiKey(context.Context, *RevokeApiKeyRequest) (*OperationResponse, error)
|
|
VerifyApiKey(context.Context, *VerifyApiKeyRequest) (*AuthenticationResponse, error)
|
|
// Password policy (public, no auth required)
|
|
GetPasswordPolicy(context.Context, *GetPasswordPolicyRequest) (*GetPasswordPolicyResponse, error)
|
|
// Metrics
|
|
GetMetrics(context.Context, *GetMetricsRequest) (*GetMetricsResponse, error)
|
|
// User lookup by identifier (email, phone, or handle) — any authenticated user
|
|
LookupUser(context.Context, *LookupUserRequest) (*LookupUserResponse, error)
|
|
mustEmbedUnimplementedAuthServiceServer()
|
|
}
|
|
|
|
// UnimplementedAuthServiceServer 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.
|
|
type UnimplementedAuthServiceServer struct{}
|
|
|
|
func (UnimplementedAuthServiceServer) RegisterUser(context.Context, *RegisterUserRequest) (*RegisterUserResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method RegisterUser not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) VerifyRegisterUser(context.Context, *VerifyRegisterUserRequest) (*AuthenticationResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method VerifyRegisterUser not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) Login(context.Context, *LoginRequest) (*AuthenticationResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method Login not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) Logout(context.Context, *LogoutRequest) (*LogoutResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method Logout not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) VerifyToken(context.Context, *VerifyTokenRequest) (*AuthenticationResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method VerifyToken not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) VerifyAuthClaimToken(context.Context, *VerifyAuthClaimTokenRequest) (*AuthenticationResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method VerifyAuthClaimToken not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) InitiateTwoFactor(context.Context, *InitiateTwoFactorRequest) (*InitiateTwoFactorResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method InitiateTwoFactor not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) VerifyTwoFactor(context.Context, *VerifyTwoFactorRequest) (*AuthenticationResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method VerifyTwoFactor not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) InitiatePasswordReset(context.Context, *InitiatePasswordResetRequest) (*PasswordResetTokenResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method InitiatePasswordReset not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) VerifyPasswordResetToken(context.Context, *VerifyPasswordResetTokenRequest) (*PasswordResetTokenResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method VerifyPasswordResetToken not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) ResetPassword(context.Context, *ResetPasswordRequest) (*AuthenticationResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method ResetPassword not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) ResendVerificationCode(context.Context, *ResendVerificationRequest) (*ResendVerificationResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method ResendVerificationCode not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) UpdateUserInfo(context.Context, *UpdateUserInfoRequest) (*UpdateUserInfoResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method UpdateUserInfo not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) ChangeIdentityField(context.Context, *ChangeIdentityFieldRequest) (*ChangeIdentityFieldResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method ChangeIdentityField not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) VerifyIdentityField(context.Context, *VerifyIdentityFieldRequest) (*VerifyIdentityFieldResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method VerifyIdentityField not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) ResendIdentifierChangeCode(context.Context, *ResendIdentityFieldRequest) (*ChangeIdentityFieldResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method ResendIdentifierChangeCode not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) UpdateUserPreference(context.Context, *UpdateUserPreferenceRequest) (*OperationResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method UpdateUserPreference not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) GetUserPreferenceByCode(context.Context, *GetUserPreferenceByCodeRequest) (*GetUserPreferenceByCodeResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method GetUserPreferenceByCode not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) GetUserSessions(context.Context, *GetUserSessionsRequest) (*GetUserSessionsResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method GetUserSessions not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) ClearUserSessions(context.Context, *ClearUserSessionsRequest) (*ClearUserSessionsResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method ClearUserSessions not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) SocialLogin(context.Context, *SocialLoginRequest) (*SocialLoginResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method SocialLogin not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) InitiateOAuth(context.Context, *InitiateOAuthRequest) (*InitiateOAuthResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method InitiateOAuth not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) CompleteOAuth(context.Context, *OAuthCallbackRequest) (*SocialLoginResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method CompleteOAuth not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) LinkSocialAccount(context.Context, *LinkSocialAccountRequest) (*OperationResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method LinkSocialAccount not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) UnlinkSocialAccount(context.Context, *UnlinkSocialAccountRequest) (*OperationResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method UnlinkSocialAccount not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) GetLinkedAccounts(context.Context, *GetLinkedAccountsRequest) (*GetLinkedAccountsResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method GetLinkedAccounts not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) CreateApiKey(context.Context, *CreateApiKeyRequest) (*CreateApiKeyResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method CreateApiKey not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) ListApiKeys(context.Context, *ListApiKeysRequest) (*ListApiKeysResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method ListApiKeys not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) RevokeApiKey(context.Context, *RevokeApiKeyRequest) (*OperationResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method RevokeApiKey not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) VerifyApiKey(context.Context, *VerifyApiKeyRequest) (*AuthenticationResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method VerifyApiKey not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) GetPasswordPolicy(context.Context, *GetPasswordPolicyRequest) (*GetPasswordPolicyResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method GetPasswordPolicy not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) GetMetrics(context.Context, *GetMetricsRequest) (*GetMetricsResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method GetMetrics not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) LookupUser(context.Context, *LookupUserRequest) (*LookupUserResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method LookupUser not implemented")
|
|
}
|
|
func (UnimplementedAuthServiceServer) mustEmbedUnimplementedAuthServiceServer() {}
|
|
func (UnimplementedAuthServiceServer) testEmbeddedByValue() {}
|
|
|
|
// UnsafeAuthServiceServer may be embedded to opt out of forward compatibility for this service.
|
|
// Use of this interface is not recommended, as added methods to AuthServiceServer will
|
|
// result in compilation errors.
|
|
type UnsafeAuthServiceServer interface {
|
|
mustEmbedUnimplementedAuthServiceServer()
|
|
}
|
|
|
|
func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer) {
|
|
// If the following call panics, it indicates UnimplementedAuthServiceServer was
|
|
// embedded by pointer and is nil. This will cause panics if an
|
|
// unimplemented method is ever invoked, so we test this at initialization
|
|
// time to prevent it from happening at runtime later due to I/O.
|
|
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
|
t.testEmbeddedByValue()
|
|
}
|
|
s.RegisterService(&AuthService_ServiceDesc, srv)
|
|
}
|
|
|
|
func _AuthService_RegisterUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(RegisterUserRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).RegisterUser(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_RegisterUser_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).RegisterUser(ctx, req.(*RegisterUserRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_VerifyRegisterUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(VerifyRegisterUserRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).VerifyRegisterUser(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_VerifyRegisterUser_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).VerifyRegisterUser(ctx, req.(*VerifyRegisterUserRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(LoginRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).Login(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_Login_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).Login(ctx, req.(*LoginRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_Logout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(LogoutRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).Logout(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_Logout_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).Logout(ctx, req.(*LogoutRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_VerifyToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(VerifyTokenRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).VerifyToken(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_VerifyToken_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).VerifyToken(ctx, req.(*VerifyTokenRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_VerifyAuthClaimToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(VerifyAuthClaimTokenRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).VerifyAuthClaimToken(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_VerifyAuthClaimToken_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).VerifyAuthClaimToken(ctx, req.(*VerifyAuthClaimTokenRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_InitiateTwoFactor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(InitiateTwoFactorRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).InitiateTwoFactor(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_InitiateTwoFactor_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).InitiateTwoFactor(ctx, req.(*InitiateTwoFactorRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_VerifyTwoFactor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(VerifyTwoFactorRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).VerifyTwoFactor(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_VerifyTwoFactor_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).VerifyTwoFactor(ctx, req.(*VerifyTwoFactorRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_InitiatePasswordReset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(InitiatePasswordResetRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).InitiatePasswordReset(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_InitiatePasswordReset_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).InitiatePasswordReset(ctx, req.(*InitiatePasswordResetRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_VerifyPasswordResetToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(VerifyPasswordResetTokenRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).VerifyPasswordResetToken(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_VerifyPasswordResetToken_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).VerifyPasswordResetToken(ctx, req.(*VerifyPasswordResetTokenRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_ResetPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ResetPasswordRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).ResetPassword(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_ResetPassword_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).ResetPassword(ctx, req.(*ResetPasswordRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_ResendVerificationCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ResendVerificationRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).ResendVerificationCode(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_ResendVerificationCode_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).ResendVerificationCode(ctx, req.(*ResendVerificationRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_UpdateUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UpdateUserInfoRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).UpdateUserInfo(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_UpdateUserInfo_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).UpdateUserInfo(ctx, req.(*UpdateUserInfoRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_ChangeIdentityField_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ChangeIdentityFieldRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).ChangeIdentityField(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_ChangeIdentityField_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).ChangeIdentityField(ctx, req.(*ChangeIdentityFieldRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_VerifyIdentityField_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(VerifyIdentityFieldRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).VerifyIdentityField(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_VerifyIdentityField_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).VerifyIdentityField(ctx, req.(*VerifyIdentityFieldRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_ResendIdentifierChangeCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ResendIdentityFieldRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).ResendIdentifierChangeCode(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_ResendIdentifierChangeCode_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).ResendIdentifierChangeCode(ctx, req.(*ResendIdentityFieldRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_UpdateUserPreference_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UpdateUserPreferenceRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).UpdateUserPreference(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_UpdateUserPreference_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).UpdateUserPreference(ctx, req.(*UpdateUserPreferenceRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_GetUserPreferenceByCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetUserPreferenceByCodeRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).GetUserPreferenceByCode(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_GetUserPreferenceByCode_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).GetUserPreferenceByCode(ctx, req.(*GetUserPreferenceByCodeRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_GetUserSessions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetUserSessionsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).GetUserSessions(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_GetUserSessions_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).GetUserSessions(ctx, req.(*GetUserSessionsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_ClearUserSessions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ClearUserSessionsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).ClearUserSessions(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_ClearUserSessions_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).ClearUserSessions(ctx, req.(*ClearUserSessionsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_SocialLogin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(SocialLoginRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).SocialLogin(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_SocialLogin_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).SocialLogin(ctx, req.(*SocialLoginRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_InitiateOAuth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(InitiateOAuthRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).InitiateOAuth(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_InitiateOAuth_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).InitiateOAuth(ctx, req.(*InitiateOAuthRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_CompleteOAuth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(OAuthCallbackRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).CompleteOAuth(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_CompleteOAuth_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).CompleteOAuth(ctx, req.(*OAuthCallbackRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_LinkSocialAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(LinkSocialAccountRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).LinkSocialAccount(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_LinkSocialAccount_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).LinkSocialAccount(ctx, req.(*LinkSocialAccountRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_UnlinkSocialAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UnlinkSocialAccountRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).UnlinkSocialAccount(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_UnlinkSocialAccount_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).UnlinkSocialAccount(ctx, req.(*UnlinkSocialAccountRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_GetLinkedAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetLinkedAccountsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).GetLinkedAccounts(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_GetLinkedAccounts_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).GetLinkedAccounts(ctx, req.(*GetLinkedAccountsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_CreateApiKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(CreateApiKeyRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).CreateApiKey(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_CreateApiKey_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).CreateApiKey(ctx, req.(*CreateApiKeyRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_ListApiKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ListApiKeysRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).ListApiKeys(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_ListApiKeys_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).ListApiKeys(ctx, req.(*ListApiKeysRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_RevokeApiKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(RevokeApiKeyRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).RevokeApiKey(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_RevokeApiKey_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).RevokeApiKey(ctx, req.(*RevokeApiKeyRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_VerifyApiKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(VerifyApiKeyRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).VerifyApiKey(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_VerifyApiKey_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).VerifyApiKey(ctx, req.(*VerifyApiKeyRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_GetPasswordPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetPasswordPolicyRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).GetPasswordPolicy(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_GetPasswordPolicy_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).GetPasswordPolicy(ctx, req.(*GetPasswordPolicyRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_GetMetrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetMetricsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).GetMetrics(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_GetMetrics_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).GetMetrics(ctx, req.(*GetMetricsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthService_LookupUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(LookupUserRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServiceServer).LookupUser(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: AuthService_LookupUser_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServiceServer).LookupUser(ctx, req.(*LookupUserRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
// AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService service.
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
// and not to be introspected or modified (even as a copy)
|
|
var AuthService_ServiceDesc = grpc.ServiceDesc{
|
|
ServiceName: "st_peter.auth.AuthService",
|
|
HandlerType: (*AuthServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "RegisterUser",
|
|
Handler: _AuthService_RegisterUser_Handler,
|
|
},
|
|
{
|
|
MethodName: "VerifyRegisterUser",
|
|
Handler: _AuthService_VerifyRegisterUser_Handler,
|
|
},
|
|
{
|
|
MethodName: "Login",
|
|
Handler: _AuthService_Login_Handler,
|
|
},
|
|
{
|
|
MethodName: "Logout",
|
|
Handler: _AuthService_Logout_Handler,
|
|
},
|
|
{
|
|
MethodName: "VerifyToken",
|
|
Handler: _AuthService_VerifyToken_Handler,
|
|
},
|
|
{
|
|
MethodName: "VerifyAuthClaimToken",
|
|
Handler: _AuthService_VerifyAuthClaimToken_Handler,
|
|
},
|
|
{
|
|
MethodName: "InitiateTwoFactor",
|
|
Handler: _AuthService_InitiateTwoFactor_Handler,
|
|
},
|
|
{
|
|
MethodName: "VerifyTwoFactor",
|
|
Handler: _AuthService_VerifyTwoFactor_Handler,
|
|
},
|
|
{
|
|
MethodName: "InitiatePasswordReset",
|
|
Handler: _AuthService_InitiatePasswordReset_Handler,
|
|
},
|
|
{
|
|
MethodName: "VerifyPasswordResetToken",
|
|
Handler: _AuthService_VerifyPasswordResetToken_Handler,
|
|
},
|
|
{
|
|
MethodName: "ResetPassword",
|
|
Handler: _AuthService_ResetPassword_Handler,
|
|
},
|
|
{
|
|
MethodName: "ResendVerificationCode",
|
|
Handler: _AuthService_ResendVerificationCode_Handler,
|
|
},
|
|
{
|
|
MethodName: "UpdateUserInfo",
|
|
Handler: _AuthService_UpdateUserInfo_Handler,
|
|
},
|
|
{
|
|
MethodName: "ChangeIdentityField",
|
|
Handler: _AuthService_ChangeIdentityField_Handler,
|
|
},
|
|
{
|
|
MethodName: "VerifyIdentityField",
|
|
Handler: _AuthService_VerifyIdentityField_Handler,
|
|
},
|
|
{
|
|
MethodName: "ResendIdentifierChangeCode",
|
|
Handler: _AuthService_ResendIdentifierChangeCode_Handler,
|
|
},
|
|
{
|
|
MethodName: "UpdateUserPreference",
|
|
Handler: _AuthService_UpdateUserPreference_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetUserPreferenceByCode",
|
|
Handler: _AuthService_GetUserPreferenceByCode_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetUserSessions",
|
|
Handler: _AuthService_GetUserSessions_Handler,
|
|
},
|
|
{
|
|
MethodName: "ClearUserSessions",
|
|
Handler: _AuthService_ClearUserSessions_Handler,
|
|
},
|
|
{
|
|
MethodName: "SocialLogin",
|
|
Handler: _AuthService_SocialLogin_Handler,
|
|
},
|
|
{
|
|
MethodName: "InitiateOAuth",
|
|
Handler: _AuthService_InitiateOAuth_Handler,
|
|
},
|
|
{
|
|
MethodName: "CompleteOAuth",
|
|
Handler: _AuthService_CompleteOAuth_Handler,
|
|
},
|
|
{
|
|
MethodName: "LinkSocialAccount",
|
|
Handler: _AuthService_LinkSocialAccount_Handler,
|
|
},
|
|
{
|
|
MethodName: "UnlinkSocialAccount",
|
|
Handler: _AuthService_UnlinkSocialAccount_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetLinkedAccounts",
|
|
Handler: _AuthService_GetLinkedAccounts_Handler,
|
|
},
|
|
{
|
|
MethodName: "CreateApiKey",
|
|
Handler: _AuthService_CreateApiKey_Handler,
|
|
},
|
|
{
|
|
MethodName: "ListApiKeys",
|
|
Handler: _AuthService_ListApiKeys_Handler,
|
|
},
|
|
{
|
|
MethodName: "RevokeApiKey",
|
|
Handler: _AuthService_RevokeApiKey_Handler,
|
|
},
|
|
{
|
|
MethodName: "VerifyApiKey",
|
|
Handler: _AuthService_VerifyApiKey_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetPasswordPolicy",
|
|
Handler: _AuthService_GetPasswordPolicy_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetMetrics",
|
|
Handler: _AuthService_GetMetrics_Handler,
|
|
},
|
|
{
|
|
MethodName: "LookupUser",
|
|
Handler: _AuthService_LookupUser_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "st-peter-auth.proto",
|
|
}
|