auth

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Token_Type_name = map[int32]string{
		0: "unknown",
		1: "sessionKey",
		2: "clientToken",
	}
	Token_Type_value = map[string]int32{
		"unknown":     0,
		"sessionKey":  1,
		"clientToken": 2,
	}
)

Enum value maps for Token_Type.

View Source
var File_auth_shared_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AuthChallenge

type AuthChallenge struct {
	UserID     string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"`
	MagicUrl   string `protobuf:"bytes,2,opt,name=magicUrl,proto3" json:"magicUrl,omitempty"`
	MagicWords string `protobuf:"bytes,3,opt,name=magicWords,proto3" json:"magicWords,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthChallenge) Descriptor deprecated

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

Deprecated: Use AuthChallenge.ProtoReflect.Descriptor instead.

func (*AuthChallenge) GetMagicUrl

func (x *AuthChallenge) GetMagicUrl() string

func (*AuthChallenge) GetMagicWords

func (x *AuthChallenge) GetMagicWords() string

func (*AuthChallenge) GetUserID

func (x *AuthChallenge) GetUserID() string

func (*AuthChallenge) ProtoMessage

func (*AuthChallenge) ProtoMessage()

func (*AuthChallenge) ProtoReflect added in v1.9.0

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

func (*AuthChallenge) Reset

func (x *AuthChallenge) Reset()

func (*AuthChallenge) String

func (x *AuthChallenge) String() string

type Token

type Token struct {
	Token string     `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Type  Token_Type `protobuf:"varint,2,opt,name=type,proto3,enum=roleypoly.auth.Token_Type" json:"type,omitempty"`
	State string     `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*Token) Descriptor deprecated

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

Deprecated: Use Token.ProtoReflect.Descriptor instead.

func (*Token) GetState added in v1.8.1

func (x *Token) GetState() string

func (*Token) GetToken

func (x *Token) GetToken() string

func (*Token) GetType

func (x *Token) GetType() Token_Type

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) ProtoReflect added in v1.9.0

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

func (*Token) Reset

func (x *Token) Reset()

func (*Token) String

func (x *Token) String() string

type Token_Type

type Token_Type int32
const (
	Token_unknown     Token_Type = 0
	Token_sessionKey  Token_Type = 1
	Token_clientToken Token_Type = 2
)

func (Token_Type) Descriptor added in v1.9.0

func (Token_Type) Descriptor() protoreflect.EnumDescriptor

func (Token_Type) Enum added in v1.9.0

func (x Token_Type) Enum() *Token_Type

func (Token_Type) EnumDescriptor deprecated

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

Deprecated: Use Token_Type.Descriptor instead.

func (Token_Type) Number added in v1.9.0

func (x Token_Type) Number() protoreflect.EnumNumber

func (Token_Type) String

func (x Token_Type) String() string

func (Token_Type) Type added in v1.9.0

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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