1093 lines
40 KiB
Go
1093 lines
40 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: authentication_service.proto
|
|
|
|
package grpc
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
|
|
import (
|
|
context "golang.org/x/net/context"
|
|
grpc "google.golang.org/grpc"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
type LoginRequest struct {
|
|
Credentials *Credentials `protobuf:"bytes,1,opt,name=credentials,proto3" json:"credentials,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *LoginRequest) Reset() { *m = LoginRequest{} }
|
|
func (m *LoginRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*LoginRequest) ProtoMessage() {}
|
|
func (*LoginRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_authentication_service_042bb751ebb01a95, []int{0}
|
|
}
|
|
func (m *LoginRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_LoginRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *LoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_LoginRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *LoginRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_LoginRequest.Merge(dst, src)
|
|
}
|
|
func (m *LoginRequest) XXX_Size() int {
|
|
return xxx_messageInfo_LoginRequest.Size(m)
|
|
}
|
|
func (m *LoginRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_LoginRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_LoginRequest proto.InternalMessageInfo
|
|
|
|
func (m *LoginRequest) GetCredentials() *Credentials {
|
|
if m != nil {
|
|
return m.Credentials
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type LoginResponse struct {
|
|
Token *Token `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *LoginResponse) Reset() { *m = LoginResponse{} }
|
|
func (m *LoginResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*LoginResponse) ProtoMessage() {}
|
|
func (*LoginResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_authentication_service_042bb751ebb01a95, []int{1}
|
|
}
|
|
func (m *LoginResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_LoginResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *LoginResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_LoginResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *LoginResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_LoginResponse.Merge(dst, src)
|
|
}
|
|
func (m *LoginResponse) XXX_Size() int {
|
|
return xxx_messageInfo_LoginResponse.Size(m)
|
|
}
|
|
func (m *LoginResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_LoginResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_LoginResponse proto.InternalMessageInfo
|
|
|
|
func (m *LoginResponse) GetToken() *Token {
|
|
if m != nil {
|
|
return m.Token
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type VerifyTokenRequest struct {
|
|
Rights []string `protobuf:"bytes,1,rep,name=rights,proto3" json:"rights,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *VerifyTokenRequest) Reset() { *m = VerifyTokenRequest{} }
|
|
func (m *VerifyTokenRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*VerifyTokenRequest) ProtoMessage() {}
|
|
func (*VerifyTokenRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_authentication_service_042bb751ebb01a95, []int{2}
|
|
}
|
|
func (m *VerifyTokenRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_VerifyTokenRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *VerifyTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_VerifyTokenRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *VerifyTokenRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_VerifyTokenRequest.Merge(dst, src)
|
|
}
|
|
func (m *VerifyTokenRequest) XXX_Size() int {
|
|
return xxx_messageInfo_VerifyTokenRequest.Size(m)
|
|
}
|
|
func (m *VerifyTokenRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_VerifyTokenRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_VerifyTokenRequest proto.InternalMessageInfo
|
|
|
|
func (m *VerifyTokenRequest) GetRights() []string {
|
|
if m != nil {
|
|
return m.Rights
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type VerifyTokenResponse struct {
|
|
Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *VerifyTokenResponse) Reset() { *m = VerifyTokenResponse{} }
|
|
func (m *VerifyTokenResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*VerifyTokenResponse) ProtoMessage() {}
|
|
func (*VerifyTokenResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_authentication_service_042bb751ebb01a95, []int{3}
|
|
}
|
|
func (m *VerifyTokenResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_VerifyTokenResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *VerifyTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_VerifyTokenResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *VerifyTokenResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_VerifyTokenResponse.Merge(dst, src)
|
|
}
|
|
func (m *VerifyTokenResponse) XXX_Size() int {
|
|
return xxx_messageInfo_VerifyTokenResponse.Size(m)
|
|
}
|
|
func (m *VerifyTokenResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_VerifyTokenResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_VerifyTokenResponse proto.InternalMessageInfo
|
|
|
|
func (m *VerifyTokenResponse) GetValid() bool {
|
|
if m != nil {
|
|
return m.Valid
|
|
}
|
|
return false
|
|
}
|
|
|
|
type MeResponse struct {
|
|
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *MeResponse) Reset() { *m = MeResponse{} }
|
|
func (m *MeResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*MeResponse) ProtoMessage() {}
|
|
func (*MeResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_authentication_service_042bb751ebb01a95, []int{4}
|
|
}
|
|
func (m *MeResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_MeResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *MeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_MeResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *MeResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_MeResponse.Merge(dst, src)
|
|
}
|
|
func (m *MeResponse) XXX_Size() int {
|
|
return xxx_messageInfo_MeResponse.Size(m)
|
|
}
|
|
func (m *MeResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_MeResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_MeResponse proto.InternalMessageInfo
|
|
|
|
func (m *MeResponse) GetUser() *User {
|
|
if m != nil {
|
|
return m.User
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RequestPasswordResetRequest struct {
|
|
UserName string `protobuf:"bytes,1,opt,name=userName,proto3" json:"userName,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *RequestPasswordResetRequest) Reset() { *m = RequestPasswordResetRequest{} }
|
|
func (m *RequestPasswordResetRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*RequestPasswordResetRequest) ProtoMessage() {}
|
|
func (*RequestPasswordResetRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_authentication_service_042bb751ebb01a95, []int{5}
|
|
}
|
|
func (m *RequestPasswordResetRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RequestPasswordResetRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *RequestPasswordResetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RequestPasswordResetRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *RequestPasswordResetRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RequestPasswordResetRequest.Merge(dst, src)
|
|
}
|
|
func (m *RequestPasswordResetRequest) XXX_Size() int {
|
|
return xxx_messageInfo_RequestPasswordResetRequest.Size(m)
|
|
}
|
|
func (m *RequestPasswordResetRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RequestPasswordResetRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RequestPasswordResetRequest proto.InternalMessageInfo
|
|
|
|
func (m *RequestPasswordResetRequest) GetUserName() string {
|
|
if m != nil {
|
|
return m.UserName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RedeemPasswordResetRequest struct {
|
|
UserName string `protobuf:"bytes,1,opt,name=userName,proto3" json:"userName,omitempty"`
|
|
ResetCode string `protobuf:"bytes,2,opt,name=resetCode,proto3" json:"resetCode,omitempty"`
|
|
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
|
|
PasswordVerify string `protobuf:"bytes,4,opt,name=passwordVerify,proto3" json:"passwordVerify,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *RedeemPasswordResetRequest) Reset() { *m = RedeemPasswordResetRequest{} }
|
|
func (m *RedeemPasswordResetRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*RedeemPasswordResetRequest) ProtoMessage() {}
|
|
func (*RedeemPasswordResetRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_authentication_service_042bb751ebb01a95, []int{6}
|
|
}
|
|
func (m *RedeemPasswordResetRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RedeemPasswordResetRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *RedeemPasswordResetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RedeemPasswordResetRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *RedeemPasswordResetRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RedeemPasswordResetRequest.Merge(dst, src)
|
|
}
|
|
func (m *RedeemPasswordResetRequest) XXX_Size() int {
|
|
return xxx_messageInfo_RedeemPasswordResetRequest.Size(m)
|
|
}
|
|
func (m *RedeemPasswordResetRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RedeemPasswordResetRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RedeemPasswordResetRequest proto.InternalMessageInfo
|
|
|
|
func (m *RedeemPasswordResetRequest) GetUserName() string {
|
|
if m != nil {
|
|
return m.UserName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *RedeemPasswordResetRequest) GetResetCode() string {
|
|
if m != nil {
|
|
return m.ResetCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *RedeemPasswordResetRequest) GetPassword() string {
|
|
if m != nil {
|
|
return m.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *RedeemPasswordResetRequest) GetPasswordVerify() string {
|
|
if m != nil {
|
|
return m.PasswordVerify
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListTokensResponse struct {
|
|
Tokens []*OpaqueToken `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ListTokensResponse) Reset() { *m = ListTokensResponse{} }
|
|
func (m *ListTokensResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*ListTokensResponse) ProtoMessage() {}
|
|
func (*ListTokensResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_authentication_service_042bb751ebb01a95, []int{7}
|
|
}
|
|
func (m *ListTokensResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ListTokensResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *ListTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ListTokensResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *ListTokensResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ListTokensResponse.Merge(dst, src)
|
|
}
|
|
func (m *ListTokensResponse) XXX_Size() int {
|
|
return xxx_messageInfo_ListTokensResponse.Size(m)
|
|
}
|
|
func (m *ListTokensResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ListTokensResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ListTokensResponse proto.InternalMessageInfo
|
|
|
|
func (m *ListTokensResponse) GetTokens() []*OpaqueToken {
|
|
if m != nil {
|
|
return m.Tokens
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DeleteTokenRequest struct {
|
|
OpaqueId string `protobuf:"bytes,1,opt,name=opaqueId,proto3" json:"opaqueId,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *DeleteTokenRequest) Reset() { *m = DeleteTokenRequest{} }
|
|
func (m *DeleteTokenRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*DeleteTokenRequest) ProtoMessage() {}
|
|
func (*DeleteTokenRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_authentication_service_042bb751ebb01a95, []int{8}
|
|
}
|
|
func (m *DeleteTokenRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_DeleteTokenRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *DeleteTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_DeleteTokenRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *DeleteTokenRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_DeleteTokenRequest.Merge(dst, src)
|
|
}
|
|
func (m *DeleteTokenRequest) XXX_Size() int {
|
|
return xxx_messageInfo_DeleteTokenRequest.Size(m)
|
|
}
|
|
func (m *DeleteTokenRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_DeleteTokenRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_DeleteTokenRequest proto.InternalMessageInfo
|
|
|
|
func (m *DeleteTokenRequest) GetOpaqueId() string {
|
|
if m != nil {
|
|
return m.OpaqueId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Credentials struct {
|
|
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
|
|
CompanyCode string `protobuf:"bytes,2,opt,name=companyCode,proto3" json:"companyCode,omitempty"`
|
|
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Credentials) Reset() { *m = Credentials{} }
|
|
func (m *Credentials) String() string { return proto.CompactTextString(m) }
|
|
func (*Credentials) ProtoMessage() {}
|
|
func (*Credentials) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_authentication_service_042bb751ebb01a95, []int{9}
|
|
}
|
|
func (m *Credentials) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Credentials.Unmarshal(m, b)
|
|
}
|
|
func (m *Credentials) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Credentials.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *Credentials) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Credentials.Merge(dst, src)
|
|
}
|
|
func (m *Credentials) XXX_Size() int {
|
|
return xxx_messageInfo_Credentials.Size(m)
|
|
}
|
|
func (m *Credentials) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Credentials.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Credentials proto.InternalMessageInfo
|
|
|
|
func (m *Credentials) GetUsername() string {
|
|
if m != nil {
|
|
return m.Username
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Credentials) GetCompanyCode() string {
|
|
if m != nil {
|
|
return m.CompanyCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Credentials) GetPassword() string {
|
|
if m != nil {
|
|
return m.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type User struct {
|
|
UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
|
|
UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"`
|
|
Company *Company `protobuf:"bytes,3,opt,name=company,proto3" json:"company,omitempty"`
|
|
Roles []*Role `protobuf:"bytes,4,rep,name=roles,proto3" json:"roles,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *User) Reset() { *m = User{} }
|
|
func (m *User) String() string { return proto.CompactTextString(m) }
|
|
func (*User) ProtoMessage() {}
|
|
func (*User) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_authentication_service_042bb751ebb01a95, []int{10}
|
|
}
|
|
func (m *User) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_User.Unmarshal(m, b)
|
|
}
|
|
func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_User.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *User) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_User.Merge(dst, src)
|
|
}
|
|
func (m *User) XXX_Size() int {
|
|
return xxx_messageInfo_User.Size(m)
|
|
}
|
|
func (m *User) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_User.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_User proto.InternalMessageInfo
|
|
|
|
func (m *User) GetUserId() int64 {
|
|
if m != nil {
|
|
return m.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *User) GetUserName() string {
|
|
if m != nil {
|
|
return m.UserName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *User) GetCompany() *Company {
|
|
if m != nil {
|
|
return m.Company
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *User) GetRoles() []*Role {
|
|
if m != nil {
|
|
return m.Roles
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Company struct {
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Company) Reset() { *m = Company{} }
|
|
func (m *Company) String() string { return proto.CompactTextString(m) }
|
|
func (*Company) ProtoMessage() {}
|
|
func (*Company) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_authentication_service_042bb751ebb01a95, []int{11}
|
|
}
|
|
func (m *Company) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Company.Unmarshal(m, b)
|
|
}
|
|
func (m *Company) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Company.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *Company) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Company.Merge(dst, src)
|
|
}
|
|
func (m *Company) XXX_Size() int {
|
|
return xxx_messageInfo_Company.Size(m)
|
|
}
|
|
func (m *Company) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Company.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Company proto.InternalMessageInfo
|
|
|
|
func (m *Company) GetId() int64 {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Company) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Company) GetCode() string {
|
|
if m != nil {
|
|
return m.Code
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Role struct {
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Rights []string `protobuf:"bytes,2,rep,name=rights,proto3" json:"rights,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Role) Reset() { *m = Role{} }
|
|
func (m *Role) String() string { return proto.CompactTextString(m) }
|
|
func (*Role) ProtoMessage() {}
|
|
func (*Role) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_authentication_service_042bb751ebb01a95, []int{12}
|
|
}
|
|
func (m *Role) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Role.Unmarshal(m, b)
|
|
}
|
|
func (m *Role) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Role.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *Role) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Role.Merge(dst, src)
|
|
}
|
|
func (m *Role) XXX_Size() int {
|
|
return xxx_messageInfo_Role.Size(m)
|
|
}
|
|
func (m *Role) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Role.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Role proto.InternalMessageInfo
|
|
|
|
func (m *Role) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Role) GetRights() []string {
|
|
if m != nil {
|
|
return m.Rights
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Token struct {
|
|
Secret string `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Token) Reset() { *m = Token{} }
|
|
func (m *Token) String() string { return proto.CompactTextString(m) }
|
|
func (*Token) ProtoMessage() {}
|
|
func (*Token) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_authentication_service_042bb751ebb01a95, []int{13}
|
|
}
|
|
func (m *Token) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Token.Unmarshal(m, b)
|
|
}
|
|
func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Token.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *Token) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Token.Merge(dst, src)
|
|
}
|
|
func (m *Token) XXX_Size() int {
|
|
return xxx_messageInfo_Token.Size(m)
|
|
}
|
|
func (m *Token) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Token.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Token proto.InternalMessageInfo
|
|
|
|
func (m *Token) GetSecret() string {
|
|
if m != nil {
|
|
return m.Secret
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type OpaqueToken struct {
|
|
OpaqueId string `protobuf:"bytes,1,opt,name=opaqueId,proto3" json:"opaqueId,omitempty"`
|
|
UserAgent string `protobuf:"bytes,2,opt,name=userAgent,proto3" json:"userAgent,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *OpaqueToken) Reset() { *m = OpaqueToken{} }
|
|
func (m *OpaqueToken) String() string { return proto.CompactTextString(m) }
|
|
func (*OpaqueToken) ProtoMessage() {}
|
|
func (*OpaqueToken) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_authentication_service_042bb751ebb01a95, []int{14}
|
|
}
|
|
func (m *OpaqueToken) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_OpaqueToken.Unmarshal(m, b)
|
|
}
|
|
func (m *OpaqueToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_OpaqueToken.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *OpaqueToken) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_OpaqueToken.Merge(dst, src)
|
|
}
|
|
func (m *OpaqueToken) XXX_Size() int {
|
|
return xxx_messageInfo_OpaqueToken.Size(m)
|
|
}
|
|
func (m *OpaqueToken) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_OpaqueToken.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_OpaqueToken proto.InternalMessageInfo
|
|
|
|
func (m *OpaqueToken) GetOpaqueId() string {
|
|
if m != nil {
|
|
return m.OpaqueId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *OpaqueToken) GetUserAgent() string {
|
|
if m != nil {
|
|
return m.UserAgent
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Empty struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Empty) Reset() { *m = Empty{} }
|
|
func (m *Empty) String() string { return proto.CompactTextString(m) }
|
|
func (*Empty) ProtoMessage() {}
|
|
func (*Empty) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_authentication_service_042bb751ebb01a95, []int{15}
|
|
}
|
|
func (m *Empty) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Empty.Unmarshal(m, b)
|
|
}
|
|
func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Empty.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *Empty) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Empty.Merge(dst, src)
|
|
}
|
|
func (m *Empty) XXX_Size() int {
|
|
return xxx_messageInfo_Empty.Size(m)
|
|
}
|
|
func (m *Empty) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Empty.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Empty proto.InternalMessageInfo
|
|
|
|
func init() {
|
|
proto.RegisterType((*LoginRequest)(nil), "authenticationservice.LoginRequest")
|
|
proto.RegisterType((*LoginResponse)(nil), "authenticationservice.LoginResponse")
|
|
proto.RegisterType((*VerifyTokenRequest)(nil), "authenticationservice.VerifyTokenRequest")
|
|
proto.RegisterType((*VerifyTokenResponse)(nil), "authenticationservice.VerifyTokenResponse")
|
|
proto.RegisterType((*MeResponse)(nil), "authenticationservice.MeResponse")
|
|
proto.RegisterType((*RequestPasswordResetRequest)(nil), "authenticationservice.RequestPasswordResetRequest")
|
|
proto.RegisterType((*RedeemPasswordResetRequest)(nil), "authenticationservice.RedeemPasswordResetRequest")
|
|
proto.RegisterType((*ListTokensResponse)(nil), "authenticationservice.ListTokensResponse")
|
|
proto.RegisterType((*DeleteTokenRequest)(nil), "authenticationservice.DeleteTokenRequest")
|
|
proto.RegisterType((*Credentials)(nil), "authenticationservice.Credentials")
|
|
proto.RegisterType((*User)(nil), "authenticationservice.User")
|
|
proto.RegisterType((*Company)(nil), "authenticationservice.Company")
|
|
proto.RegisterType((*Role)(nil), "authenticationservice.Role")
|
|
proto.RegisterType((*Token)(nil), "authenticationservice.Token")
|
|
proto.RegisterType((*OpaqueToken)(nil), "authenticationservice.OpaqueToken")
|
|
proto.RegisterType((*Empty)(nil), "authenticationservice.Empty")
|
|
}
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ context.Context
|
|
var _ grpc.ClientConn
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
// AuthenticationServiceClient is the client API for AuthenticationService service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type AuthenticationServiceClient interface {
|
|
Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
|
|
Logout(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
|
|
VerifyToken(ctx context.Context, in *VerifyTokenRequest, opts ...grpc.CallOption) (*VerifyTokenResponse, error)
|
|
Me(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*MeResponse, error)
|
|
RequestPasswordReset(ctx context.Context, in *RequestPasswordResetRequest, opts ...grpc.CallOption) (*Empty, error)
|
|
RedeemPasswordReset(ctx context.Context, in *RedeemPasswordResetRequest, opts ...grpc.CallOption) (*Empty, error)
|
|
ListTokens(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ListTokensResponse, error)
|
|
DeleteToken(ctx context.Context, in *DeleteTokenRequest, opts ...grpc.CallOption) (*Empty, error)
|
|
}
|
|
|
|
type authenticationServiceClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewAuthenticationServiceClient(cc *grpc.ClientConn) AuthenticationServiceClient {
|
|
return &authenticationServiceClient{cc}
|
|
}
|
|
|
|
func (c *authenticationServiceClient) Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) {
|
|
out := new(LoginResponse)
|
|
err := c.cc.Invoke(ctx, "/authenticationservice.AuthenticationService/Login", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authenticationServiceClient) Logout(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) {
|
|
out := new(Empty)
|
|
err := c.cc.Invoke(ctx, "/authenticationservice.AuthenticationService/Logout", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authenticationServiceClient) VerifyToken(ctx context.Context, in *VerifyTokenRequest, opts ...grpc.CallOption) (*VerifyTokenResponse, error) {
|
|
out := new(VerifyTokenResponse)
|
|
err := c.cc.Invoke(ctx, "/authenticationservice.AuthenticationService/VerifyToken", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authenticationServiceClient) Me(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*MeResponse, error) {
|
|
out := new(MeResponse)
|
|
err := c.cc.Invoke(ctx, "/authenticationservice.AuthenticationService/Me", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authenticationServiceClient) RequestPasswordReset(ctx context.Context, in *RequestPasswordResetRequest, opts ...grpc.CallOption) (*Empty, error) {
|
|
out := new(Empty)
|
|
err := c.cc.Invoke(ctx, "/authenticationservice.AuthenticationService/RequestPasswordReset", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authenticationServiceClient) RedeemPasswordReset(ctx context.Context, in *RedeemPasswordResetRequest, opts ...grpc.CallOption) (*Empty, error) {
|
|
out := new(Empty)
|
|
err := c.cc.Invoke(ctx, "/authenticationservice.AuthenticationService/RedeemPasswordReset", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authenticationServiceClient) ListTokens(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ListTokensResponse, error) {
|
|
out := new(ListTokensResponse)
|
|
err := c.cc.Invoke(ctx, "/authenticationservice.AuthenticationService/ListTokens", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authenticationServiceClient) DeleteToken(ctx context.Context, in *DeleteTokenRequest, opts ...grpc.CallOption) (*Empty, error) {
|
|
out := new(Empty)
|
|
err := c.cc.Invoke(ctx, "/authenticationservice.AuthenticationService/DeleteToken", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// AuthenticationServiceServer is the server API for AuthenticationService service.
|
|
type AuthenticationServiceServer interface {
|
|
Login(context.Context, *LoginRequest) (*LoginResponse, error)
|
|
Logout(context.Context, *Empty) (*Empty, error)
|
|
VerifyToken(context.Context, *VerifyTokenRequest) (*VerifyTokenResponse, error)
|
|
Me(context.Context, *Empty) (*MeResponse, error)
|
|
RequestPasswordReset(context.Context, *RequestPasswordResetRequest) (*Empty, error)
|
|
RedeemPasswordReset(context.Context, *RedeemPasswordResetRequest) (*Empty, error)
|
|
ListTokens(context.Context, *Empty) (*ListTokensResponse, error)
|
|
DeleteToken(context.Context, *DeleteTokenRequest) (*Empty, error)
|
|
}
|
|
|
|
func RegisterAuthenticationServiceServer(s *grpc.Server, srv AuthenticationServiceServer) {
|
|
s.RegisterService(&_AuthenticationService_serviceDesc, srv)
|
|
}
|
|
|
|
func _AuthenticationService_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.(AuthenticationServiceServer).Login(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/authenticationservice.AuthenticationService/Login",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthenticationServiceServer).Login(ctx, req.(*LoginRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthenticationService_Logout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(Empty)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthenticationServiceServer).Logout(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/authenticationservice.AuthenticationService/Logout",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthenticationServiceServer).Logout(ctx, req.(*Empty))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthenticationService_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.(AuthenticationServiceServer).VerifyToken(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/authenticationservice.AuthenticationService/VerifyToken",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthenticationServiceServer).VerifyToken(ctx, req.(*VerifyTokenRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthenticationService_Me_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(Empty)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthenticationServiceServer).Me(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/authenticationservice.AuthenticationService/Me",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthenticationServiceServer).Me(ctx, req.(*Empty))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthenticationService_RequestPasswordReset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(RequestPasswordResetRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthenticationServiceServer).RequestPasswordReset(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/authenticationservice.AuthenticationService/RequestPasswordReset",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthenticationServiceServer).RequestPasswordReset(ctx, req.(*RequestPasswordResetRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthenticationService_RedeemPasswordReset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(RedeemPasswordResetRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthenticationServiceServer).RedeemPasswordReset(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/authenticationservice.AuthenticationService/RedeemPasswordReset",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthenticationServiceServer).RedeemPasswordReset(ctx, req.(*RedeemPasswordResetRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthenticationService_ListTokens_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(Empty)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthenticationServiceServer).ListTokens(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/authenticationservice.AuthenticationService/ListTokens",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthenticationServiceServer).ListTokens(ctx, req.(*Empty))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AuthenticationService_DeleteToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(DeleteTokenRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthenticationServiceServer).DeleteToken(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/authenticationservice.AuthenticationService/DeleteToken",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthenticationServiceServer).DeleteToken(ctx, req.(*DeleteTokenRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _AuthenticationService_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "authenticationservice.AuthenticationService",
|
|
HandlerType: (*AuthenticationServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "Login",
|
|
Handler: _AuthenticationService_Login_Handler,
|
|
},
|
|
{
|
|
MethodName: "Logout",
|
|
Handler: _AuthenticationService_Logout_Handler,
|
|
},
|
|
{
|
|
MethodName: "VerifyToken",
|
|
Handler: _AuthenticationService_VerifyToken_Handler,
|
|
},
|
|
{
|
|
MethodName: "Me",
|
|
Handler: _AuthenticationService_Me_Handler,
|
|
},
|
|
{
|
|
MethodName: "RequestPasswordReset",
|
|
Handler: _AuthenticationService_RequestPasswordReset_Handler,
|
|
},
|
|
{
|
|
MethodName: "RedeemPasswordReset",
|
|
Handler: _AuthenticationService_RedeemPasswordReset_Handler,
|
|
},
|
|
{
|
|
MethodName: "ListTokens",
|
|
Handler: _AuthenticationService_ListTokens_Handler,
|
|
},
|
|
{
|
|
MethodName: "DeleteToken",
|
|
Handler: _AuthenticationService_DeleteToken_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "authentication_service.proto",
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("authentication_service.proto", fileDescriptor_authentication_service_042bb751ebb01a95)
|
|
}
|
|
|
|
var fileDescriptor_authentication_service_042bb751ebb01a95 = []byte{
|
|
// 662 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0xdd, 0x6e, 0xd3, 0x4c,
|
|
0x10, 0x55, 0x52, 0x3b, 0x6d, 0xc7, 0xdf, 0xd7, 0x8b, 0x6d, 0x8b, 0xa2, 0xb4, 0x82, 0xb2, 0x20,
|
|
0x54, 0x7e, 0x54, 0xa8, 0xb9, 0x01, 0x24, 0x2e, 0x4a, 0x5b, 0x21, 0xa4, 0x16, 0xaa, 0xa5, 0xed,
|
|
0x05, 0x37, 0xc8, 0xd8, 0x53, 0xd7, 0x22, 0xf1, 0xba, 0xbb, 0x9b, 0xa2, 0xbe, 0x0a, 0x2f, 0xc0,
|
|
0x63, 0xf1, 0x2a, 0x68, 0xd7, 0xeb, 0xc4, 0x4e, 0xb3, 0x09, 0xdc, 0x79, 0x66, 0xcf, 0xcc, 0x9e,
|
|
0x9c, 0x99, 0x3d, 0x81, 0xcd, 0x68, 0xa8, 0x2e, 0x31, 0x57, 0x59, 0x1c, 0xa9, 0x8c, 0xe7, 0x5f,
|
|
0x25, 0x8a, 0xeb, 0x2c, 0xc6, 0x9d, 0x42, 0x70, 0xc5, 0xc9, 0x7a, 0xf3, 0xd4, 0x1e, 0xd2, 0x53,
|
|
0xf8, 0xef, 0x88, 0xa7, 0x59, 0xce, 0xf0, 0x6a, 0x88, 0x52, 0x91, 0x03, 0x08, 0x62, 0x81, 0x89,
|
|
0x06, 0x46, 0x7d, 0xd9, 0x6d, 0x6d, 0xb5, 0xb6, 0x83, 0x90, 0xee, 0x4c, 0x2d, 0xde, 0xd9, 0x1f,
|
|
0x23, 0x59, 0xbd, 0x8c, 0xee, 0xc3, 0xff, 0xb6, 0xab, 0x2c, 0x34, 0x9c, 0x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