Documentation ¶
Overview ¶
Package oauth is a generated protocol buffer package.
It is generated from these files:
github.com/appcelerator/amp/api/rpc/oauth/oauth.proto
It has these top-level messages:
AuthRequest AuthReply Token
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAuthorization ¶
CheckAuthorization verifies that the user is logged in and has organization access
func RegisterGithubServer ¶
func RegisterGithubServer(s *grpc.Server, srv GithubServer)
Types ¶
type AuthReply ¶
type AuthReply struct { SessionKey string `protobuf:"bytes,1,opt,name=sessionKey" json:"sessionKey,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` }
func (*AuthReply) Descriptor ¶
func (*AuthReply) GetSessionKey ¶ added in v0.4.0
func (*AuthReply) ProtoMessage ¶
func (*AuthReply) ProtoMessage()
type AuthRequest ¶
type AuthRequest struct { Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"` Otp string `protobuf:"bytes,3,opt,name=otp" json:"otp,omitempty"` }
func (*AuthRequest) Descriptor ¶
func (*AuthRequest) Descriptor() ([]byte, []int)
func (*AuthRequest) GetOtp ¶ added in v0.4.0
func (m *AuthRequest) GetOtp() string
func (*AuthRequest) GetPassword ¶ added in v0.4.0
func (m *AuthRequest) GetPassword() string
func (*AuthRequest) GetUsername ¶ added in v0.4.0
func (m *AuthRequest) GetUsername() string
func (*AuthRequest) ProtoMessage ¶
func (*AuthRequest) ProtoMessage()
func (*AuthRequest) Reset ¶
func (m *AuthRequest) Reset()
func (*AuthRequest) String ¶
func (m *AuthRequest) String() string
type GithubClient ¶
type GithubClient interface {
Create(ctx context.Context, in *AuthRequest, opts ...grpc.CallOption) (*AuthReply, error)
}
func NewGithubClient ¶
func NewGithubClient(cc *grpc.ClientConn) GithubClient
type GithubServer ¶
type GithubServer interface {
Create(context.Context, *AuthRequest) (*AuthReply, error)
}
type Token ¶
type Token struct { Id int32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` Token string `protobuf:"bytes,2,opt,name=token" json:"token,omitempty"` TokenLastEight string `protobuf:"bytes,3,opt,name=tokenLastEight" json:"tokenLastEight,omitempty"` }
func (*Token) Descriptor ¶
func (*Token) GetTokenLastEight ¶ added in v0.4.0
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.