auth

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AuthType_name = map[int32]string{
		0: "AUTH_TYPE_UNSPECIFIED",
		1: "AUTH_TYPE_USER_PASSWORD",
		2: "AUTH_TYPE_GOOGLE",
		3: "AUTH_TYPE_GITHUB",
	}
	AuthType_value = map[string]int32{
		"AUTH_TYPE_UNSPECIFIED":   0,
		"AUTH_TYPE_USER_PASSWORD": 1,
		"AUTH_TYPE_GOOGLE":        2,
		"AUTH_TYPE_GITHUB":        3,
	}
)

Enum value maps for AuthType.

View Source
var File_proto_auth_service_proto protoreflect.FileDescriptor
View Source
var File_proto_auth_token_proto protoreflect.FileDescriptor

Functions

func RegisterAuthServiceServer

func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)

Types

type AuthServiceClient

type AuthServiceClient interface {
	ExchangeToken(ctx context.Context, in *ExchangeTokenRequest, opts ...grpc.CallOption) (*ExchangeTokenResponse, error)
	GetAuthenticationURL(ctx context.Context, in *GetAuthenticationURLRequest, opts ...grpc.CallOption) (*GetAuthenticationURLResponse, error)
	RefreshToken(ctx context.Context, in *RefreshTokenRequest, opts ...grpc.CallOption) (*RefreshTokenResponse, error)
	SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*SignInResponse, 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.

type AuthServiceServer

AuthServiceServer is the server API for AuthService service.

type AuthType added in v0.4.6

type AuthType int32
const (
	AuthType_AUTH_TYPE_UNSPECIFIED AuthType = 0
	// Deprecated: Do not use.
	AuthType_AUTH_TYPE_USER_PASSWORD AuthType = 1
	AuthType_AUTH_TYPE_GOOGLE        AuthType = 2
	AuthType_AUTH_TYPE_GITHUB        AuthType = 3
)

func (AuthType) Descriptor added in v0.4.6

func (AuthType) Descriptor() protoreflect.EnumDescriptor

func (AuthType) Enum added in v0.4.6

func (x AuthType) Enum() *AuthType

func (AuthType) EnumDescriptor deprecated added in v0.4.6

func (AuthType) EnumDescriptor() ([]byte, []int)

Deprecated: Use AuthType.Descriptor instead.

func (AuthType) Number added in v0.4.6

func (x AuthType) Number() protoreflect.EnumNumber

func (AuthType) String added in v0.4.6

func (x AuthType) String() string

func (AuthType) Type added in v0.4.6

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"`
	Type        AuthType `protobuf:"varint,3,opt,name=type,proto3,enum=bucketeer.auth.AuthType" json:"type"`
	// 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) GetType added in v0.4.6

func (x *ExchangeTokenRequest) GetType() AuthType

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 GetAuthenticationURLRequest added in v0.4.6

type GetAuthenticationURLRequest 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"`
	Type        AuthType `protobuf:"varint,3,opt,name=type,proto3,enum=bucketeer.auth.AuthType" json:"type"`
	// contains filtered or unexported fields
}

func (*GetAuthenticationURLRequest) Descriptor deprecated added in v0.4.6

func (*GetAuthenticationURLRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAuthenticationURLRequest.ProtoReflect.Descriptor instead.

func (*GetAuthenticationURLRequest) GetRedirectUrl added in v0.4.6

func (x *GetAuthenticationURLRequest) GetRedirectUrl() string

func (*GetAuthenticationURLRequest) GetState added in v0.4.6

func (x *GetAuthenticationURLRequest) GetState() string

func (*GetAuthenticationURLRequest) GetType added in v0.4.6

func (*GetAuthenticationURLRequest) ProtoMessage added in v0.4.6

func (*GetAuthenticationURLRequest) ProtoMessage()

func (*GetAuthenticationURLRequest) ProtoReflect added in v0.4.6

func (*GetAuthenticationURLRequest) Reset added in v0.4.6

func (x *GetAuthenticationURLRequest) Reset()

func (*GetAuthenticationURLRequest) String added in v0.4.6

func (x *GetAuthenticationURLRequest) String() string

type GetAuthenticationURLResponse added in v0.4.6

type GetAuthenticationURLResponse struct {
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url"`
	// contains filtered or unexported fields
}

func (*GetAuthenticationURLResponse) Descriptor deprecated added in v0.4.6

func (*GetAuthenticationURLResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetAuthenticationURLResponse.ProtoReflect.Descriptor instead.

func (*GetAuthenticationURLResponse) GetUrl added in v0.4.6

func (*GetAuthenticationURLResponse) ProtoMessage added in v0.4.6

func (*GetAuthenticationURLResponse) ProtoMessage()

func (*GetAuthenticationURLResponse) ProtoReflect added in v0.4.6

func (*GetAuthenticationURLResponse) Reset added in v0.4.6

func (x *GetAuthenticationURLResponse) Reset()

func (*GetAuthenticationURLResponse) String added in v0.4.6

type RefreshTokenRequest

type RefreshTokenRequest struct {
	RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token"`
	// contains filtered or unexported fields
}

func (*RefreshTokenRequest) Descriptor deprecated

func (*RefreshTokenRequest) Descriptor() ([]byte, []int)

Deprecated: Use RefreshTokenRequest.ProtoReflect.Descriptor instead.

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 SignInRequest added in v0.4.6

type SignInRequest struct {
	Email    string `protobuf:"bytes,1,opt,name=email,proto3" json:"email"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password"`
	// contains filtered or unexported fields
}

func (*SignInRequest) Descriptor deprecated added in v0.4.6

func (*SignInRequest) Descriptor() ([]byte, []int)

Deprecated: Use SignInRequest.ProtoReflect.Descriptor instead.

func (*SignInRequest) GetEmail added in v0.4.6

func (x *SignInRequest) GetEmail() string

func (*SignInRequest) GetPassword added in v0.4.6

func (x *SignInRequest) GetPassword() string

func (*SignInRequest) ProtoMessage added in v0.4.6

func (*SignInRequest) ProtoMessage()

func (*SignInRequest) ProtoReflect added in v0.4.6

func (x *SignInRequest) ProtoReflect() protoreflect.Message

func (*SignInRequest) Reset added in v0.4.6

func (x *SignInRequest) Reset()

func (*SignInRequest) String added in v0.4.6

func (x *SignInRequest) String() string

type SignInResponse added in v0.4.6

type SignInResponse struct {
	Token *Token `protobuf:"bytes,1,opt,name=token,proto3" json:"token"`
	// contains filtered or unexported fields
}

func (*SignInResponse) Descriptor deprecated added in v0.4.6

func (*SignInResponse) Descriptor() ([]byte, []int)

Deprecated: Use SignInResponse.ProtoReflect.Descriptor instead.

func (*SignInResponse) GetToken added in v0.4.6

func (x *SignInResponse) GetToken() *Token

func (*SignInResponse) ProtoMessage added in v0.4.6

func (*SignInResponse) ProtoMessage()

func (*SignInResponse) ProtoReflect added in v0.4.6

func (x *SignInResponse) ProtoReflect() protoreflect.Message

func (*SignInResponse) Reset added in v0.4.6

func (x *SignInResponse) Reset()

func (*SignInResponse) String added in v0.4.6

func (x *SignInResponse) 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"`
	// contains filtered or unexported fields
}

func (*Token) Descriptor deprecated

func (*Token) Descriptor() ([]byte, []int)

Deprecated: Use Token.ProtoReflect.Descriptor instead.

func (*Token) GetAccessToken

func (x *Token) GetAccessToken() string

func (*Token) GetExpiry

func (x *Token) GetExpiry() int64

func (*Token) GetRefreshToken

func (x *Token) GetRefreshToken() string

func (*Token) GetTokenType

func (x *Token) GetTokenType() string

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) ProtoReflect

func (x *Token) ProtoReflect() protoreflect.Message

func (*Token) Reset

func (x *Token) Reset()

func (*Token) String

func (x *Token) String() string

type UnimplementedAuthServiceServer

type UnimplementedAuthServiceServer struct {
}

UnimplementedAuthServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAuthServiceServer) ExchangeToken

func (*UnimplementedAuthServiceServer) GetAuthenticationURL added in v0.4.6

func (*UnimplementedAuthServiceServer) RefreshToken

func (*UnimplementedAuthServiceServer) SignIn added in v0.4.6

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL