Documentation
¶
Overview ¶
Package evntsrc_passport is a generated protocol buffer package. It is generated from these files: passport.proto It has these top-level messages: Timestamp Tokens VerifyTokenRequest VerifyTokenResponse UserCreds OAuthClientSecretCreds OAuthCodeCreds AuthRequest AuthResponse MFAResponse RefreshRequest SocialRequest Revoke Empty
Package evntsrc_passport is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterAuthSeviceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAuthSeviceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthSeviceClient) error
- func RegisterAuthSeviceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAuthSeviceServer(s *grpc.Server, srv AuthSeviceServer)
- type AuthRequest
- func (*AuthRequest) Descriptor() ([]byte, []int)
- func (m *AuthRequest) GetCreds() isAuthRequest_Creds
- func (m *AuthRequest) GetOAuthCodeCreds() *OAuthCodeCreds
- func (m *AuthRequest) GetOauthClientSecretCreds() *OAuthClientSecretCreds
- func (m *AuthRequest) GetUserCreds() *UserCreds
- func (m *AuthRequest) Marshal() (dAtA []byte, err error)
- func (m *AuthRequest) MarshalTo(dAtA []byte) (int, error)
- func (*AuthRequest) ProtoMessage()
- func (m *AuthRequest) Reset()
- func (m *AuthRequest) Size() (n int)
- func (m *AuthRequest) String() string
- func (m *AuthRequest) Unmarshal(dAtA []byte) error
- func (*AuthRequest) XXX_MessageName() string
- func (*AuthRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type AuthRequest_OAuthCodeCreds
- type AuthRequest_OauthClientSecretCreds
- type AuthRequest_UserCreds
- type AuthResponse
- func (*AuthResponse) Descriptor() ([]byte, []int)
- func (m *AuthResponse) GetMFAResponse() *MFAResponse
- func (m *AuthResponse) GetSuccess() bool
- func (m *AuthResponse) GetTokens() *Tokens
- func (m *AuthResponse) Marshal() (dAtA []byte, err error)
- func (m *AuthResponse) MarshalTo(dAtA []byte) (int, error)
- func (*AuthResponse) ProtoMessage()
- func (m *AuthResponse) Reset()
- func (m *AuthResponse) Size() (n int)
- func (m *AuthResponse) String() string
- func (m *AuthResponse) Unmarshal(dAtA []byte) error
- func (*AuthResponse) XXX_MessageName() string
- type AuthSeviceClient
- type AuthSeviceServer
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (m *Empty) Marshal() (dAtA []byte, err error)
- func (m *Empty) MarshalTo(dAtA []byte) (int, error)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) Size() (n int)
- func (m *Empty) String() string
- func (m *Empty) Unmarshal(dAtA []byte) error
- func (*Empty) XXX_MessageName() string
- type MFAResponse
- func (*MFAResponse) Descriptor() ([]byte, []int)
- func (m *MFAResponse) GetChallenge() string
- func (m *MFAResponse) GetType() string
- func (m *MFAResponse) Marshal() (dAtA []byte, err error)
- func (m *MFAResponse) MarshalTo(dAtA []byte) (int, error)
- func (*MFAResponse) ProtoMessage()
- func (m *MFAResponse) Reset()
- func (m *MFAResponse) Size() (n int)
- func (m *MFAResponse) String() string
- func (m *MFAResponse) Unmarshal(dAtA []byte) error
- func (*MFAResponse) XXX_MessageName() string
- type OAuthClientSecretCreds
- func (*OAuthClientSecretCreds) Descriptor() ([]byte, []int)
- func (m *OAuthClientSecretCreds) GetKey() string
- func (m *OAuthClientSecretCreds) GetScopes() []string
- func (m *OAuthClientSecretCreds) GetSecret() string
- func (m *OAuthClientSecretCreds) Marshal() (dAtA []byte, err error)
- func (m *OAuthClientSecretCreds) MarshalTo(dAtA []byte) (int, error)
- func (*OAuthClientSecretCreds) ProtoMessage()
- func (m *OAuthClientSecretCreds) Reset()
- func (m *OAuthClientSecretCreds) Size() (n int)
- func (m *OAuthClientSecretCreds) String() string
- func (m *OAuthClientSecretCreds) Unmarshal(dAtA []byte) error
- func (*OAuthClientSecretCreds) XXX_MessageName() string
- type OAuthCodeCreds
- func (*OAuthCodeCreds) Descriptor() ([]byte, []int)
- func (m *OAuthCodeCreds) GetCode() string
- func (m *OAuthCodeCreds) Marshal() (dAtA []byte, err error)
- func (m *OAuthCodeCreds) MarshalTo(dAtA []byte) (int, error)
- func (*OAuthCodeCreds) ProtoMessage()
- func (m *OAuthCodeCreds) Reset()
- func (m *OAuthCodeCreds) Size() (n int)
- func (m *OAuthCodeCreds) String() string
- func (m *OAuthCodeCreds) Unmarshal(dAtA []byte) error
- func (*OAuthCodeCreds) XXX_MessageName() string
- type RefreshRequest
- func (*RefreshRequest) Descriptor() ([]byte, []int)
- func (m *RefreshRequest) GetRefreshToken() string
- func (m *RefreshRequest) Marshal() (dAtA []byte, err error)
- func (m *RefreshRequest) MarshalTo(dAtA []byte) (int, error)
- func (*RefreshRequest) ProtoMessage()
- func (m *RefreshRequest) Reset()
- func (m *RefreshRequest) Size() (n int)
- func (m *RefreshRequest) String() string
- func (m *RefreshRequest) Unmarshal(dAtA []byte) error
- func (*RefreshRequest) XXX_MessageName() string
- type Revoke
- func (*Revoke) Descriptor() ([]byte, []int)
- func (m *Revoke) GetId() string
- func (m *Revoke) GetJti() string
- func (m *Revoke) GetReason() string
- func (m *Revoke) Marshal() (dAtA []byte, err error)
- func (m *Revoke) MarshalTo(dAtA []byte) (int, error)
- func (*Revoke) ProtoMessage()
- func (m *Revoke) Reset()
- func (m *Revoke) Size() (n int)
- func (m *Revoke) String() string
- func (m *Revoke) Unmarshal(dAtA []byte) error
- func (*Revoke) XXX_MessageName() string
- type SocialRequest
- func (*SocialRequest) Descriptor() ([]byte, []int)
- func (m *SocialRequest) GetIdpTokens() *Tokens
- func (m *SocialRequest) GetProvider() string
- func (m *SocialRequest) Marshal() (dAtA []byte, err error)
- func (m *SocialRequest) MarshalTo(dAtA []byte) (int, error)
- func (*SocialRequest) ProtoMessage()
- func (m *SocialRequest) Reset()
- func (m *SocialRequest) Size() (n int)
- func (m *SocialRequest) String() string
- func (m *SocialRequest) Unmarshal(dAtA []byte) error
- func (*SocialRequest) XXX_MessageName() string
- type Timestamp
- func (*Timestamp) Descriptor() ([]byte, []int)
- func (m *Timestamp) GetNanos() int32
- func (m *Timestamp) GetSeconds() int64
- func (m *Timestamp) Marshal() (dAtA []byte, err error)
- func (m *Timestamp) MarshalTo(dAtA []byte) (int, error)
- func (*Timestamp) ProtoMessage()
- func (m *Timestamp) Reset()
- func (m *Timestamp) Size() (n int)
- func (m *Timestamp) String() string
- func (m *Timestamp) Unmarshal(dAtA []byte) error
- func (*Timestamp) XXX_MessageName() string
- type Tokens
- func (*Tokens) Descriptor() ([]byte, []int)
- func (m *Tokens) GetRefreshExpire() *Timestamp
- func (m *Tokens) GetRefreshToken() string
- func (m *Tokens) GetToken() string
- func (m *Tokens) GetTokenExpire() *Timestamp
- func (m *Tokens) Marshal() (dAtA []byte, err error)
- func (m *Tokens) MarshalTo(dAtA []byte) (int, error)
- func (*Tokens) ProtoMessage()
- func (m *Tokens) Reset()
- func (m *Tokens) Size() (n int)
- func (m *Tokens) String() string
- func (m *Tokens) Unmarshal(dAtA []byte) error
- func (*Tokens) XXX_MessageName() string
- type UserCreds
- func (*UserCreds) Descriptor() ([]byte, []int)
- func (m *UserCreds) GetMFA() string
- func (m *UserCreds) GetPassword() string
- func (m *UserCreds) GetUsername() string
- func (m *UserCreds) Marshal() (dAtA []byte, err error)
- func (m *UserCreds) MarshalTo(dAtA []byte) (int, error)
- func (*UserCreds) ProtoMessage()
- func (m *UserCreds) Reset()
- func (m *UserCreds) Size() (n int)
- func (m *UserCreds) String() string
- func (m *UserCreds) Unmarshal(dAtA []byte) error
- func (*UserCreds) XXX_MessageName() string
- type VerifyTokenRequest
- func (*VerifyTokenRequest) Descriptor() ([]byte, []int)
- func (m *VerifyTokenRequest) GetToken() string
- func (m *VerifyTokenRequest) Marshal() (dAtA []byte, err error)
- func (m *VerifyTokenRequest) MarshalTo(dAtA []byte) (int, error)
- func (*VerifyTokenRequest) ProtoMessage()
- func (m *VerifyTokenRequest) Reset()
- func (m *VerifyTokenRequest) Size() (n int)
- func (m *VerifyTokenRequest) String() string
- func (m *VerifyTokenRequest) Unmarshal(dAtA []byte) error
- func (*VerifyTokenRequest) XXX_MessageName() string
- type VerifyTokenResponse
- func (*VerifyTokenResponse) Descriptor() ([]byte, []int)
- func (m *VerifyTokenResponse) GetRefreshExpire() *Timestamp
- func (m *VerifyTokenResponse) GetRevoked() bool
- func (m *VerifyTokenResponse) GetTokenExpire() *Timestamp
- func (m *VerifyTokenResponse) GetValid() bool
- func (m *VerifyTokenResponse) Marshal() (dAtA []byte, err error)
- func (m *VerifyTokenResponse) MarshalTo(dAtA []byte) (int, error)
- func (*VerifyTokenResponse) ProtoMessage()
- func (m *VerifyTokenResponse) Reset()
- func (m *VerifyTokenResponse) Size() (n int)
- func (m *VerifyTokenResponse) String() string
- func (m *VerifyTokenResponse) Unmarshal(dAtA []byte) error
- func (*VerifyTokenResponse) XXX_MessageName() string
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthPassport = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPassport = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterAuthSeviceHandler ¶
func RegisterAuthSeviceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterAuthSeviceHandler registers the http handlers for service AuthSevice to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAuthSeviceHandlerClient ¶
func RegisterAuthSeviceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthSeviceClient) error
RegisterAuthSeviceHandlerClient registers the http handlers for service AuthSevice to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthSeviceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthSeviceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AuthSeviceClient" to call the correct interceptors.
func RegisterAuthSeviceHandlerFromEndpoint ¶
func RegisterAuthSeviceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAuthSeviceHandlerFromEndpoint is same as RegisterAuthSeviceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAuthSeviceServer ¶
func RegisterAuthSeviceServer(s *grpc.Server, srv AuthSeviceServer)
Types ¶
type AuthRequest ¶
type AuthRequest struct { // Types that are valid to be assigned to Creds: // *AuthRequest_UserCreds // *AuthRequest_OauthClientSecretCreds // *AuthRequest_OAuthCodeCreds Creds isAuthRequest_Creds `protobuf_oneof:"creds"` }
func (*AuthRequest) Descriptor ¶
func (*AuthRequest) Descriptor() ([]byte, []int)
func (*AuthRequest) GetCreds ¶
func (m *AuthRequest) GetCreds() isAuthRequest_Creds
func (*AuthRequest) GetOAuthCodeCreds ¶
func (m *AuthRequest) GetOAuthCodeCreds() *OAuthCodeCreds
func (*AuthRequest) GetOauthClientSecretCreds ¶
func (m *AuthRequest) GetOauthClientSecretCreds() *OAuthClientSecretCreds
func (*AuthRequest) GetUserCreds ¶
func (m *AuthRequest) GetUserCreds() *UserCreds
func (*AuthRequest) Marshal ¶
func (m *AuthRequest) Marshal() (dAtA []byte, err error)
func (*AuthRequest) ProtoMessage ¶
func (*AuthRequest) ProtoMessage()
func (*AuthRequest) Reset ¶
func (m *AuthRequest) Reset()
func (*AuthRequest) Size ¶
func (m *AuthRequest) Size() (n int)
func (*AuthRequest) String ¶
func (m *AuthRequest) String() string
func (*AuthRequest) Unmarshal ¶
func (m *AuthRequest) Unmarshal(dAtA []byte) error
func (*AuthRequest) XXX_MessageName ¶
func (*AuthRequest) XXX_MessageName() string
func (*AuthRequest) XXX_OneofFuncs ¶
func (*AuthRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
type AuthRequest_OAuthCodeCreds ¶
type AuthRequest_OAuthCodeCreds struct {
OAuthCodeCreds *OAuthCodeCreds `protobuf:"bytes,3,opt,name=OAuthCodeCreds,oneof"`
}
func (*AuthRequest_OAuthCodeCreds) MarshalTo ¶
func (m *AuthRequest_OAuthCodeCreds) MarshalTo(dAtA []byte) (int, error)
func (*AuthRequest_OAuthCodeCreds) Size ¶
func (m *AuthRequest_OAuthCodeCreds) Size() (n int)
type AuthRequest_OauthClientSecretCreds ¶
type AuthRequest_OauthClientSecretCreds struct {
OauthClientSecretCreds *OAuthClientSecretCreds `protobuf:"bytes,2,opt,name=oauthClientSecretCreds,oneof"`
}
func (*AuthRequest_OauthClientSecretCreds) MarshalTo ¶
func (m *AuthRequest_OauthClientSecretCreds) MarshalTo(dAtA []byte) (int, error)
func (*AuthRequest_OauthClientSecretCreds) Size ¶
func (m *AuthRequest_OauthClientSecretCreds) Size() (n int)
type AuthRequest_UserCreds ¶
type AuthRequest_UserCreds struct {
UserCreds *UserCreds `protobuf:"bytes,1,opt,name=userCreds,oneof"`
}
func (*AuthRequest_UserCreds) MarshalTo ¶
func (m *AuthRequest_UserCreds) MarshalTo(dAtA []byte) (int, error)
func (*AuthRequest_UserCreds) Size ¶
func (m *AuthRequest_UserCreds) Size() (n int)
type AuthResponse ¶
type AuthResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Tokens *Tokens `protobuf:"bytes,2,opt,name=tokens" json:"tokens,omitempty"` MFAResponse *MFAResponse `protobuf:"bytes,3,opt,name=MFAResponse" json:"MFAResponse,omitempty"` }
func (*AuthResponse) Descriptor ¶
func (*AuthResponse) Descriptor() ([]byte, []int)
func (*AuthResponse) GetMFAResponse ¶
func (m *AuthResponse) GetMFAResponse() *MFAResponse
func (*AuthResponse) GetSuccess ¶
func (m *AuthResponse) GetSuccess() bool
func (*AuthResponse) GetTokens ¶
func (m *AuthResponse) GetTokens() *Tokens
func (*AuthResponse) Marshal ¶
func (m *AuthResponse) Marshal() (dAtA []byte, err error)
func (*AuthResponse) ProtoMessage ¶
func (*AuthResponse) ProtoMessage()
func (*AuthResponse) Reset ¶
func (m *AuthResponse) Reset()
func (*AuthResponse) Size ¶
func (m *AuthResponse) Size() (n int)
func (*AuthResponse) String ¶
func (m *AuthResponse) String() string
func (*AuthResponse) Unmarshal ¶
func (m *AuthResponse) Unmarshal(dAtA []byte) error
func (*AuthResponse) XXX_MessageName ¶
func (*AuthResponse) XXX_MessageName() string
type AuthSeviceClient ¶
type AuthSeviceClient interface { VerifyToken(ctx context.Context, in *VerifyTokenRequest, opts ...grpc.CallOption) (*VerifyTokenResponse, error) Authenticate(ctx context.Context, in *AuthRequest, opts ...grpc.CallOption) (*AuthResponse, error) Refresh(ctx context.Context, in *RefreshRequest, opts ...grpc.CallOption) (*AuthResponse, error) SocialLogin(ctx context.Context, in *SocialRequest, opts ...grpc.CallOption) (*AuthResponse, error) RevokeToken(ctx context.Context, in *Revoke, opts ...grpc.CallOption) (*Empty, error) }
func NewAuthSeviceClient ¶
func NewAuthSeviceClient(cc *grpc.ClientConn) AuthSeviceClient
type AuthSeviceServer ¶
type AuthSeviceServer interface { VerifyToken(context.Context, *VerifyTokenRequest) (*VerifyTokenResponse, error) Authenticate(context.Context, *AuthRequest) (*AuthResponse, error) Refresh(context.Context, *RefreshRequest) (*AuthResponse, error) SocialLogin(context.Context, *SocialRequest) (*AuthResponse, error) RevokeToken(context.Context, *Revoke) (*Empty, error) }
type Empty ¶
type Empty struct { }
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_MessageName ¶
type MFAResponse ¶
type MFAResponse struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Challenge string `protobuf:"bytes,2,opt,name=challenge,proto3" json:"challenge,omitempty"` }
func (*MFAResponse) Descriptor ¶
func (*MFAResponse) Descriptor() ([]byte, []int)
func (*MFAResponse) GetChallenge ¶
func (m *MFAResponse) GetChallenge() string
func (*MFAResponse) GetType ¶
func (m *MFAResponse) GetType() string
func (*MFAResponse) Marshal ¶
func (m *MFAResponse) Marshal() (dAtA []byte, err error)
func (*MFAResponse) ProtoMessage ¶
func (*MFAResponse) ProtoMessage()
func (*MFAResponse) Reset ¶
func (m *MFAResponse) Reset()
func (*MFAResponse) Size ¶
func (m *MFAResponse) Size() (n int)
func (*MFAResponse) String ¶
func (m *MFAResponse) String() string
func (*MFAResponse) Unmarshal ¶
func (m *MFAResponse) Unmarshal(dAtA []byte) error
func (*MFAResponse) XXX_MessageName ¶
func (*MFAResponse) XXX_MessageName() string
type OAuthClientSecretCreds ¶
type OAuthClientSecretCreds struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Secret string `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"` Scopes []string `protobuf:"bytes,3,rep,name=scopes" json:"scopes,omitempty"` }
func (*OAuthClientSecretCreds) Descriptor ¶
func (*OAuthClientSecretCreds) Descriptor() ([]byte, []int)
func (*OAuthClientSecretCreds) GetKey ¶
func (m *OAuthClientSecretCreds) GetKey() string
func (*OAuthClientSecretCreds) GetScopes ¶
func (m *OAuthClientSecretCreds) GetScopes() []string
func (*OAuthClientSecretCreds) GetSecret ¶
func (m *OAuthClientSecretCreds) GetSecret() string
func (*OAuthClientSecretCreds) Marshal ¶
func (m *OAuthClientSecretCreds) Marshal() (dAtA []byte, err error)
func (*OAuthClientSecretCreds) MarshalTo ¶
func (m *OAuthClientSecretCreds) MarshalTo(dAtA []byte) (int, error)
func (*OAuthClientSecretCreds) ProtoMessage ¶
func (*OAuthClientSecretCreds) ProtoMessage()
func (*OAuthClientSecretCreds) Reset ¶
func (m *OAuthClientSecretCreds) Reset()
func (*OAuthClientSecretCreds) Size ¶
func (m *OAuthClientSecretCreds) Size() (n int)
func (*OAuthClientSecretCreds) String ¶
func (m *OAuthClientSecretCreds) String() string
func (*OAuthClientSecretCreds) Unmarshal ¶
func (m *OAuthClientSecretCreds) Unmarshal(dAtA []byte) error
func (*OAuthClientSecretCreds) XXX_MessageName ¶
func (*OAuthClientSecretCreds) XXX_MessageName() string
type OAuthCodeCreds ¶
type OAuthCodeCreds struct {
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
}
func (*OAuthCodeCreds) Descriptor ¶
func (*OAuthCodeCreds) Descriptor() ([]byte, []int)
func (*OAuthCodeCreds) GetCode ¶
func (m *OAuthCodeCreds) GetCode() string
func (*OAuthCodeCreds) Marshal ¶
func (m *OAuthCodeCreds) Marshal() (dAtA []byte, err error)
func (*OAuthCodeCreds) ProtoMessage ¶
func (*OAuthCodeCreds) ProtoMessage()
func (*OAuthCodeCreds) Reset ¶
func (m *OAuthCodeCreds) Reset()
func (*OAuthCodeCreds) Size ¶
func (m *OAuthCodeCreds) Size() (n int)
func (*OAuthCodeCreds) String ¶
func (m *OAuthCodeCreds) String() string
func (*OAuthCodeCreds) Unmarshal ¶
func (m *OAuthCodeCreds) Unmarshal(dAtA []byte) error
func (*OAuthCodeCreds) XXX_MessageName ¶
func (*OAuthCodeCreds) XXX_MessageName() string
type RefreshRequest ¶
type RefreshRequest struct {
RefreshToken string `protobuf:"bytes,1,opt,name=refreshToken,proto3" json:"refreshToken,omitempty"`
}
func (*RefreshRequest) Descriptor ¶
func (*RefreshRequest) Descriptor() ([]byte, []int)
func (*RefreshRequest) GetRefreshToken ¶
func (m *RefreshRequest) GetRefreshToken() string
func (*RefreshRequest) Marshal ¶
func (m *RefreshRequest) Marshal() (dAtA []byte, err error)
func (*RefreshRequest) ProtoMessage ¶
func (*RefreshRequest) ProtoMessage()
func (*RefreshRequest) Reset ¶
func (m *RefreshRequest) Reset()
func (*RefreshRequest) Size ¶
func (m *RefreshRequest) Size() (n int)
func (*RefreshRequest) String ¶
func (m *RefreshRequest) String() string
func (*RefreshRequest) Unmarshal ¶
func (m *RefreshRequest) Unmarshal(dAtA []byte) error
func (*RefreshRequest) XXX_MessageName ¶
func (*RefreshRequest) XXX_MessageName() string
type Revoke ¶
type Revoke struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" bson:"_id"` Jti string `protobuf:"bytes,2,opt,name=jti,proto3" json:"jti,omitempty"` Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` }
func (*Revoke) Descriptor ¶
func (*Revoke) ProtoMessage ¶
func (*Revoke) ProtoMessage()
func (*Revoke) XXX_MessageName ¶
type SocialRequest ¶
type SocialRequest struct { Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` IdpTokens *Tokens `protobuf:"bytes,2,opt,name=idpTokens" json:"idpTokens,omitempty"` }
func (*SocialRequest) Descriptor ¶
func (*SocialRequest) Descriptor() ([]byte, []int)
func (*SocialRequest) GetIdpTokens ¶
func (m *SocialRequest) GetIdpTokens() *Tokens
func (*SocialRequest) GetProvider ¶
func (m *SocialRequest) GetProvider() string
func (*SocialRequest) Marshal ¶
func (m *SocialRequest) Marshal() (dAtA []byte, err error)
func (*SocialRequest) ProtoMessage ¶
func (*SocialRequest) ProtoMessage()
func (*SocialRequest) Reset ¶
func (m *SocialRequest) Reset()
func (*SocialRequest) Size ¶
func (m *SocialRequest) Size() (n int)
func (*SocialRequest) String ¶
func (m *SocialRequest) String() string
func (*SocialRequest) Unmarshal ¶
func (m *SocialRequest) Unmarshal(dAtA []byte) error
func (*SocialRequest) XXX_MessageName ¶
func (*SocialRequest) XXX_MessageName() string
type Timestamp ¶
type Timestamp struct { Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"` }
func (*Timestamp) Descriptor ¶
func (*Timestamp) GetSeconds ¶
func (*Timestamp) ProtoMessage ¶
func (*Timestamp) ProtoMessage()
func (*Timestamp) XXX_MessageName ¶
type Tokens ¶
type Tokens struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` TokenExpire *Timestamp `protobuf:"bytes,2,opt,name=tokenExpire" json:"tokenExpire,omitempty"` RefreshToken string `protobuf:"bytes,3,opt,name=refreshToken,proto3" json:"refreshToken,omitempty"` RefreshExpire *Timestamp `protobuf:"bytes,4,opt,name=refreshExpire" json:"refreshExpire,omitempty"` }
func (*Tokens) Descriptor ¶
func (*Tokens) GetRefreshExpire ¶
func (*Tokens) GetRefreshToken ¶
func (*Tokens) GetTokenExpire ¶
func (*Tokens) ProtoMessage ¶
func (*Tokens) ProtoMessage()
func (*Tokens) XXX_MessageName ¶
type UserCreds ¶
type UserCreds struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` MFA string `protobuf:"bytes,3,opt,name=MFA,proto3" json:"MFA,omitempty"` }
func (*UserCreds) Descriptor ¶
func (*UserCreds) GetPassword ¶
func (*UserCreds) GetUsername ¶
func (*UserCreds) ProtoMessage ¶
func (*UserCreds) ProtoMessage()
func (*UserCreds) XXX_MessageName ¶
type VerifyTokenRequest ¶
type VerifyTokenRequest struct {
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
}
func (*VerifyTokenRequest) Descriptor ¶
func (*VerifyTokenRequest) Descriptor() ([]byte, []int)
func (*VerifyTokenRequest) GetToken ¶
func (m *VerifyTokenRequest) GetToken() string
func (*VerifyTokenRequest) Marshal ¶
func (m *VerifyTokenRequest) Marshal() (dAtA []byte, err error)
func (*VerifyTokenRequest) MarshalTo ¶
func (m *VerifyTokenRequest) MarshalTo(dAtA []byte) (int, error)
func (*VerifyTokenRequest) ProtoMessage ¶
func (*VerifyTokenRequest) ProtoMessage()
func (*VerifyTokenRequest) Reset ¶
func (m *VerifyTokenRequest) Reset()
func (*VerifyTokenRequest) Size ¶
func (m *VerifyTokenRequest) Size() (n int)
func (*VerifyTokenRequest) String ¶
func (m *VerifyTokenRequest) String() string
func (*VerifyTokenRequest) Unmarshal ¶
func (m *VerifyTokenRequest) Unmarshal(dAtA []byte) error
func (*VerifyTokenRequest) XXX_MessageName ¶
func (*VerifyTokenRequest) XXX_MessageName() string
type VerifyTokenResponse ¶
type VerifyTokenResponse struct { Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"` Revoked bool `protobuf:"varint,2,opt,name=revoked,proto3" json:"revoked,omitempty"` TokenExpire *Timestamp `protobuf:"bytes,3,opt,name=tokenExpire" json:"tokenExpire,omitempty"` RefreshExpire *Timestamp `protobuf:"bytes,4,opt,name=refreshExpire" json:"refreshExpire,omitempty"` }
func (*VerifyTokenResponse) Descriptor ¶
func (*VerifyTokenResponse) Descriptor() ([]byte, []int)
func (*VerifyTokenResponse) GetRefreshExpire ¶
func (m *VerifyTokenResponse) GetRefreshExpire() *Timestamp
func (*VerifyTokenResponse) GetRevoked ¶
func (m *VerifyTokenResponse) GetRevoked() bool
func (*VerifyTokenResponse) GetTokenExpire ¶
func (m *VerifyTokenResponse) GetTokenExpire() *Timestamp
func (*VerifyTokenResponse) GetValid ¶
func (m *VerifyTokenResponse) GetValid() bool
func (*VerifyTokenResponse) Marshal ¶
func (m *VerifyTokenResponse) Marshal() (dAtA []byte, err error)
func (*VerifyTokenResponse) MarshalTo ¶
func (m *VerifyTokenResponse) MarshalTo(dAtA []byte) (int, error)
func (*VerifyTokenResponse) ProtoMessage ¶
func (*VerifyTokenResponse) ProtoMessage()
func (*VerifyTokenResponse) Reset ¶
func (m *VerifyTokenResponse) Reset()
func (*VerifyTokenResponse) Size ¶
func (m *VerifyTokenResponse) Size() (n int)
func (*VerifyTokenResponse) String ¶
func (m *VerifyTokenResponse) String() string
func (*VerifyTokenResponse) Unmarshal ¶
func (m *VerifyTokenResponse) Unmarshal(dAtA []byte) error
func (*VerifyTokenResponse) XXX_MessageName ¶
func (*VerifyTokenResponse) XXX_MessageName() string