auth

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2021 License: MPL-2.0-no-copyleft-exception, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_grpc_services_auth_server_proto protoreflect.FileDescriptor

Functions

func RegisterAuthServer

func RegisterAuthServer(s *grpc.Server, srv AuthServer)

Types

type AuthClient

type AuthClient interface {
	Capabilities(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*StringList, error)
	OAuthChallenge(ctx context.Context, in *OAuthChallengeRequest, opts ...grpc.CallOption) (*OAuthInfo, error)
	GetOAuthURL(ctx context.Context, in *Scopes, opts ...grpc.CallOption) (*String, error)
}

AuthClient is the client API for Auth service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAuthClient

func NewAuthClient(cc grpc.ClientConnInterface) AuthClient

type AuthServer

type AuthServer interface {
	Capabilities(context.Context, *emptypb.Empty) (*StringList, error)
	OAuthChallenge(context.Context, *OAuthChallengeRequest) (*OAuthInfo, error)
	GetOAuthURL(context.Context, *Scopes) (*String, error)
}

AuthServer is the server API for Auth service.

type OAuthChallengeRequest

type OAuthChallengeRequest struct {
	Code  string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*OAuthChallengeRequest) Descriptor deprecated

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

Deprecated: Use OAuthChallengeRequest.ProtoReflect.Descriptor instead.

func (*OAuthChallengeRequest) GetCode

func (x *OAuthChallengeRequest) GetCode() string

func (*OAuthChallengeRequest) GetState

func (x *OAuthChallengeRequest) GetState() string

func (*OAuthChallengeRequest) ProtoMessage

func (*OAuthChallengeRequest) ProtoMessage()

func (*OAuthChallengeRequest) ProtoReflect added in v0.3.0

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

func (*OAuthChallengeRequest) Reset

func (x *OAuthChallengeRequest) Reset()

func (*OAuthChallengeRequest) String

func (x *OAuthChallengeRequest) String() string

type OAuthInfo

type OAuthInfo struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Url      string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	Redirect bool   `protobuf:"varint,3,opt,name=redirect,proto3" json:"redirect,omitempty"`
	// contains filtered or unexported fields
}

func (*OAuthInfo) Descriptor deprecated

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

Deprecated: Use OAuthInfo.ProtoReflect.Descriptor instead.

func (*OAuthInfo) GetRedirect

func (x *OAuthInfo) GetRedirect() bool

func (*OAuthInfo) GetUrl

func (x *OAuthInfo) GetUrl() string

func (*OAuthInfo) GetUsername

func (x *OAuthInfo) GetUsername() string

func (*OAuthInfo) ProtoMessage

func (*OAuthInfo) ProtoMessage()

func (*OAuthInfo) ProtoReflect added in v0.3.0

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

func (*OAuthInfo) Reset

func (x *OAuthInfo) Reset()

func (*OAuthInfo) String

func (x *OAuthInfo) String() string

type Scopes

type Scopes struct {
	List []string `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*Scopes) Descriptor deprecated

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

Deprecated: Use Scopes.ProtoReflect.Descriptor instead.

func (*Scopes) GetList

func (x *Scopes) GetList() []string

func (*Scopes) ProtoMessage

func (*Scopes) ProtoMessage()

func (*Scopes) ProtoReflect added in v0.3.0

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

func (*Scopes) Reset

func (x *Scopes) Reset()

func (*Scopes) String

func (x *Scopes) String() string

type String

type String struct {
	Str string `protobuf:"bytes,1,opt,name=str,proto3" json:"str,omitempty"`
	// contains filtered or unexported fields
}

func (*String) Descriptor deprecated

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

Deprecated: Use String.ProtoReflect.Descriptor instead.

func (*String) GetStr

func (x *String) GetStr() string

func (*String) ProtoMessage

func (*String) ProtoMessage()

func (*String) ProtoReflect added in v0.3.0

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

func (*String) Reset

func (x *String) Reset()

func (*String) String

func (x *String) String() string

type StringList

type StringList struct {
	List []string `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*StringList) Descriptor deprecated

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

Deprecated: Use StringList.ProtoReflect.Descriptor instead.

func (*StringList) GetList

func (x *StringList) GetList() []string

func (*StringList) ProtoMessage

func (*StringList) ProtoMessage()

func (*StringList) ProtoReflect added in v0.3.0

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

func (*StringList) Reset

func (x *StringList) Reset()

func (*StringList) String

func (x *StringList) String() string

type UnimplementedAuthServer

type UnimplementedAuthServer struct {
}

UnimplementedAuthServer can be embedded to have forward compatible implementations.

func (*UnimplementedAuthServer) Capabilities

func (*UnimplementedAuthServer) GetOAuthURL

func (*UnimplementedAuthServer) OAuthChallenge

Jump to

Keyboard shortcuts

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