Documentation
¶
Index ¶
- Variables
- func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)
- type AuthServiceClient
- type AuthServiceServer
- type ExchangeTokenRequest
- func (*ExchangeTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExchangeTokenRequest) GetCode() string
- func (x *ExchangeTokenRequest) GetRedirectUrl() string
- func (*ExchangeTokenRequest) ProtoMessage()
- func (x *ExchangeTokenRequest) ProtoReflect() protoreflect.Message
- func (x *ExchangeTokenRequest) Reset()
- func (x *ExchangeTokenRequest) String() string
- type ExchangeTokenResponse
- func (*ExchangeTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ExchangeTokenResponse) GetToken() *Token
- func (*ExchangeTokenResponse) ProtoMessage()
- func (x *ExchangeTokenResponse) ProtoReflect() protoreflect.Message
- func (x *ExchangeTokenResponse) Reset()
- func (x *ExchangeTokenResponse) String() string
- type GetAuthCodeURLRequest
- func (*GetAuthCodeURLRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAuthCodeURLRequest) GetRedirectUrl() string
- func (x *GetAuthCodeURLRequest) GetState() string
- func (*GetAuthCodeURLRequest) ProtoMessage()
- func (x *GetAuthCodeURLRequest) ProtoReflect() protoreflect.Message
- func (x *GetAuthCodeURLRequest) Reset()
- func (x *GetAuthCodeURLRequest) String() string
- type GetAuthCodeURLResponse
- func (*GetAuthCodeURLResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAuthCodeURLResponse) GetUrl() string
- func (*GetAuthCodeURLResponse) ProtoMessage()
- func (x *GetAuthCodeURLResponse) ProtoReflect() protoreflect.Message
- func (x *GetAuthCodeURLResponse) Reset()
- func (x *GetAuthCodeURLResponse) String() string
- type IDTokenSubject
- func (*IDTokenSubject) Descriptor() ([]byte, []int)deprecated
- func (x *IDTokenSubject) GetConnId() string
- func (x *IDTokenSubject) GetUserId() string
- func (*IDTokenSubject) ProtoMessage()
- func (x *IDTokenSubject) ProtoReflect() protoreflect.Message
- func (x *IDTokenSubject) Reset()
- func (x *IDTokenSubject) String() string
- type RefreshTokenRequest
- func (*RefreshTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshTokenRequest) GetRedirectUrl() string
- func (x *RefreshTokenRequest) GetRefreshToken() string
- func (*RefreshTokenRequest) ProtoMessage()
- func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message
- func (x *RefreshTokenRequest) Reset()
- func (x *RefreshTokenRequest) String() string
- type RefreshTokenResponse
- func (*RefreshTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshTokenResponse) GetToken() *Token
- func (*RefreshTokenResponse) ProtoMessage()
- func (x *RefreshTokenResponse) ProtoReflect() protoreflect.Message
- func (x *RefreshTokenResponse) Reset()
- func (x *RefreshTokenResponse) String() string
- type Token
- func (*Token) Descriptor() ([]byte, []int)deprecated
- func (x *Token) GetAccessToken() string
- func (x *Token) GetExpiry() int64
- func (x *Token) GetIdToken() string
- func (x *Token) GetRefreshToken() string
- func (x *Token) GetTokenType() string
- func (*Token) ProtoMessage()
- func (x *Token) ProtoReflect() protoreflect.Message
- func (x *Token) Reset()
- func (x *Token) String() string
- type UnimplementedAuthServiceServer
- func (*UnimplementedAuthServiceServer) ExchangeToken(context.Context, *ExchangeTokenRequest) (*ExchangeTokenResponse, error)
- func (*UnimplementedAuthServiceServer) GetAuthCodeURL(context.Context, *GetAuthCodeURLRequest) (*GetAuthCodeURLResponse, error)
- func (*UnimplementedAuthServiceServer) RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenResponse, error)
Constants ¶
This section is empty.
Variables ¶
var File_proto_auth_service_proto protoreflect.FileDescriptor
var File_proto_auth_token_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)
Types ¶
type AuthServiceClient ¶
type AuthServiceClient interface { GetAuthCodeURL(ctx context.Context, in *GetAuthCodeURLRequest, opts ...grpc.CallOption) (*GetAuthCodeURLResponse, error) ExchangeToken(ctx context.Context, in *ExchangeTokenRequest, opts ...grpc.CallOption) (*ExchangeTokenResponse, error) RefreshToken(ctx context.Context, in *RefreshTokenRequest, opts ...grpc.CallOption) (*RefreshTokenResponse, error) }
AuthServiceClient is the client API for AuthService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthServiceClient ¶
func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient
type AuthServiceServer ¶
type AuthServiceServer interface { GetAuthCodeURL(context.Context, *GetAuthCodeURLRequest) (*GetAuthCodeURLResponse, error) ExchangeToken(context.Context, *ExchangeTokenRequest) (*ExchangeTokenResponse, error) RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenResponse, error) }
AuthServiceServer is the server API for AuthService service.
type ExchangeTokenRequest ¶
type ExchangeTokenRequest struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code"` RedirectUrl string `protobuf:"bytes,2,opt,name=redirect_url,json=redirectUrl,proto3" json:"redirect_url"` // contains filtered or unexported fields }
func (*ExchangeTokenRequest) Descriptor
deprecated
func (*ExchangeTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExchangeTokenRequest.ProtoReflect.Descriptor instead.
func (*ExchangeTokenRequest) GetCode ¶
func (x *ExchangeTokenRequest) GetCode() string
func (*ExchangeTokenRequest) GetRedirectUrl ¶
func (x *ExchangeTokenRequest) GetRedirectUrl() string
func (*ExchangeTokenRequest) ProtoMessage ¶
func (*ExchangeTokenRequest) ProtoMessage()
func (*ExchangeTokenRequest) ProtoReflect ¶
func (x *ExchangeTokenRequest) ProtoReflect() protoreflect.Message
func (*ExchangeTokenRequest) Reset ¶
func (x *ExchangeTokenRequest) Reset()
func (*ExchangeTokenRequest) String ¶
func (x *ExchangeTokenRequest) String() string
type ExchangeTokenResponse ¶
type ExchangeTokenResponse struct { Token *Token `protobuf:"bytes,1,opt,name=token,proto3" json:"token"` // contains filtered or unexported fields }
func (*ExchangeTokenResponse) Descriptor
deprecated
func (*ExchangeTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExchangeTokenResponse.ProtoReflect.Descriptor instead.
func (*ExchangeTokenResponse) GetToken ¶
func (x *ExchangeTokenResponse) GetToken() *Token
func (*ExchangeTokenResponse) ProtoMessage ¶
func (*ExchangeTokenResponse) ProtoMessage()
func (*ExchangeTokenResponse) ProtoReflect ¶
func (x *ExchangeTokenResponse) ProtoReflect() protoreflect.Message
func (*ExchangeTokenResponse) Reset ¶
func (x *ExchangeTokenResponse) Reset()
func (*ExchangeTokenResponse) String ¶
func (x *ExchangeTokenResponse) String() string
type GetAuthCodeURLRequest ¶
type GetAuthCodeURLRequest struct { State string `protobuf:"bytes,1,opt,name=state,proto3" json:"state"` RedirectUrl string `protobuf:"bytes,2,opt,name=redirect_url,json=redirectUrl,proto3" json:"redirect_url"` // contains filtered or unexported fields }
func (*GetAuthCodeURLRequest) Descriptor
deprecated
func (*GetAuthCodeURLRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAuthCodeURLRequest.ProtoReflect.Descriptor instead.
func (*GetAuthCodeURLRequest) GetRedirectUrl ¶
func (x *GetAuthCodeURLRequest) GetRedirectUrl() string
func (*GetAuthCodeURLRequest) GetState ¶
func (x *GetAuthCodeURLRequest) GetState() string
func (*GetAuthCodeURLRequest) ProtoMessage ¶
func (*GetAuthCodeURLRequest) ProtoMessage()
func (*GetAuthCodeURLRequest) ProtoReflect ¶
func (x *GetAuthCodeURLRequest) ProtoReflect() protoreflect.Message
func (*GetAuthCodeURLRequest) Reset ¶
func (x *GetAuthCodeURLRequest) Reset()
func (*GetAuthCodeURLRequest) String ¶
func (x *GetAuthCodeURLRequest) String() string
type GetAuthCodeURLResponse ¶
type GetAuthCodeURLResponse struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url"` // contains filtered or unexported fields }
func (*GetAuthCodeURLResponse) Descriptor
deprecated
func (*GetAuthCodeURLResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAuthCodeURLResponse.ProtoReflect.Descriptor instead.
func (*GetAuthCodeURLResponse) GetUrl ¶
func (x *GetAuthCodeURLResponse) GetUrl() string
func (*GetAuthCodeURLResponse) ProtoMessage ¶
func (*GetAuthCodeURLResponse) ProtoMessage()
func (*GetAuthCodeURLResponse) ProtoReflect ¶
func (x *GetAuthCodeURLResponse) ProtoReflect() protoreflect.Message
func (*GetAuthCodeURLResponse) Reset ¶
func (x *GetAuthCodeURLResponse) Reset()
func (*GetAuthCodeURLResponse) String ¶
func (x *GetAuthCodeURLResponse) String() string
type IDTokenSubject ¶
type IDTokenSubject struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id"` ConnId string `protobuf:"bytes,2,opt,name=conn_id,json=connId,proto3" json:"conn_id"` // contains filtered or unexported fields }
func (*IDTokenSubject) Descriptor
deprecated
func (*IDTokenSubject) Descriptor() ([]byte, []int)
Deprecated: Use IDTokenSubject.ProtoReflect.Descriptor instead.
func (*IDTokenSubject) GetConnId ¶
func (x *IDTokenSubject) GetConnId() string
func (*IDTokenSubject) GetUserId ¶
func (x *IDTokenSubject) GetUserId() string
func (*IDTokenSubject) ProtoMessage ¶
func (*IDTokenSubject) ProtoMessage()
func (*IDTokenSubject) ProtoReflect ¶
func (x *IDTokenSubject) ProtoReflect() protoreflect.Message
func (*IDTokenSubject) Reset ¶
func (x *IDTokenSubject) Reset()
func (*IDTokenSubject) String ¶
func (x *IDTokenSubject) String() string
type RefreshTokenRequest ¶
type RefreshTokenRequest struct { RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token"` RedirectUrl string `protobuf:"bytes,2,opt,name=redirect_url,json=redirectUrl,proto3" json:"redirect_url"` // contains filtered or unexported fields }
func (*RefreshTokenRequest) Descriptor
deprecated
func (*RefreshTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use RefreshTokenRequest.ProtoReflect.Descriptor instead.
func (*RefreshTokenRequest) GetRedirectUrl ¶
func (x *RefreshTokenRequest) GetRedirectUrl() string
func (*RefreshTokenRequest) GetRefreshToken ¶
func (x *RefreshTokenRequest) GetRefreshToken() string
func (*RefreshTokenRequest) ProtoMessage ¶
func (*RefreshTokenRequest) ProtoMessage()
func (*RefreshTokenRequest) ProtoReflect ¶
func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message
func (*RefreshTokenRequest) Reset ¶
func (x *RefreshTokenRequest) Reset()
func (*RefreshTokenRequest) String ¶
func (x *RefreshTokenRequest) String() string
type RefreshTokenResponse ¶
type RefreshTokenResponse struct { Token *Token `protobuf:"bytes,1,opt,name=token,proto3" json:"token"` // contains filtered or unexported fields }
func (*RefreshTokenResponse) Descriptor
deprecated
func (*RefreshTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use RefreshTokenResponse.ProtoReflect.Descriptor instead.
func (*RefreshTokenResponse) GetToken ¶
func (x *RefreshTokenResponse) GetToken() *Token
func (*RefreshTokenResponse) ProtoMessage ¶
func (*RefreshTokenResponse) ProtoMessage()
func (*RefreshTokenResponse) ProtoReflect ¶
func (x *RefreshTokenResponse) ProtoReflect() protoreflect.Message
func (*RefreshTokenResponse) Reset ¶
func (x *RefreshTokenResponse) Reset()
func (*RefreshTokenResponse) String ¶
func (x *RefreshTokenResponse) String() string
type Token ¶
type Token struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token"` TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type"` RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token"` Expiry int64 `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry"` IdToken string `protobuf:"bytes,5,opt,name=id_token,json=idToken,proto3" json:"id_token"` // contains filtered or unexported fields }
func (*Token) Descriptor
deprecated
func (*Token) GetAccessToken ¶
func (*Token) GetIdToken ¶
func (*Token) GetRefreshToken ¶
func (*Token) GetTokenType ¶
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) ProtoReflect ¶
func (x *Token) ProtoReflect() protoreflect.Message
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct { }
UnimplementedAuthServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedAuthServiceServer) ExchangeToken ¶
func (*UnimplementedAuthServiceServer) ExchangeToken(context.Context, *ExchangeTokenRequest) (*ExchangeTokenResponse, error)
func (*UnimplementedAuthServiceServer) GetAuthCodeURL ¶
func (*UnimplementedAuthServiceServer) GetAuthCodeURL(context.Context, *GetAuthCodeURLRequest) (*GetAuthCodeURLResponse, error)
func (*UnimplementedAuthServiceServer) RefreshToken ¶
func (*UnimplementedAuthServiceServer) RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenResponse, error)