Documentation
¶
Index ¶
- Variables
- type Client
- func (*Client) Descriptor() ([]byte, []int)deprecated
- func (x *Client) GetAccessTokenExpireSeconds() int32
- func (x *Client) GetAudiences() []string
- func (x *Client) GetGrants() []string
- func (x *Client) GetID() string
- func (x *Client) GetIsPublic() bool
- func (x *Client) GetPermissionLevel() int64
- func (x *Client) GetRedirectUris() []string
- func (x *Client) GetRefreshTokenExpireSeconds() int32
- func (x *Client) GetScopes() []string
- func (x *Client) GetSecret() string
- func (*Client) ProtoMessage()
- func (x *Client) ProtoReflect() protoreflect.Message
- func (x *Client) Reset()
- func (x *Client) String() string
- type Credential
- type IClient
- type Resource
- func (*Resource) Descriptor() ([]byte, []int)deprecated
- func (x *Resource) GetName() string
- func (x *Resource) GetValidAudiences() []string
- func (x *Resource) GetValidIssuers() []string
- func (*Resource) ProtoMessage()
- func (x *Resource) ProtoReflect() protoreflect.Message
- func (x *Resource) Reset()
- func (x *Resource) String() string
- type TokenDTO
- func (*TokenDTO) Descriptor() ([]byte, []int)deprecated
- func (x *TokenDTO) GetAccessToken() string
- func (x *TokenDTO) GetExpiresIn() int32
- func (x *TokenDTO) GetRefreshToken() string
- func (x *TokenDTO) GetTokenType() string
- func (*TokenDTO) ProtoMessage()
- func (x *TokenDTO) ProtoReflect() protoreflect.Message
- func (x *TokenDTO) Reset()
- func (x *TokenDTO) String() string
- type TokenInfo
- func (*TokenInfo) Descriptor() ([]byte, []int)deprecated
- func (x *TokenInfo) GetClientID() string
- func (x *TokenInfo) GetCodeChallenge() string
- func (x *TokenInfo) GetCodeChallengeMethod() string
- func (x *TokenInfo) GetRedirectUri() string
- func (x *TokenInfo) GetScopes() string
- func (x *TokenInfo) GetUsername() string
- func (*TokenInfo) ProtoMessage()
- func (x *TokenInfo) ProtoReflect() protoreflect.Message
- func (x *TokenInfo) Reset()
- func (x *TokenInfo) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_model_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
Secret string `protobuf:"bytes,2,opt,name=Secret,proto3" json:"Secret,omitempty"`
AccessTokenExpireSeconds int32 `protobuf:"varint,3,opt,name=AccessTokenExpireSeconds,proto3" json:"AccessTokenExpireSeconds,omitempty"`
RefreshTokenExpireSeconds int32 `protobuf:"varint,4,opt,name=RefreshTokenExpireSeconds,proto3" json:"RefreshTokenExpireSeconds,omitempty"`
PermissionLevel int64 `protobuf:"varint,5,opt,name=PermissionLevel,proto3" json:"PermissionLevel,omitempty"`
IsPublic bool `protobuf:"varint,6,opt,name=IsPublic,proto3" json:"IsPublic,omitempty"`
Grants []string `protobuf:"bytes,7,rep,name=Grants,proto3" json:"Grants,omitempty"`
Audiences []string `protobuf:"bytes,8,rep,name=Audiences,proto3" json:"Audiences,omitempty"`
Scopes []string `protobuf:"bytes,9,rep,name=Scopes,proto3" json:"Scopes,omitempty"`
RedirectUris []string `protobuf:"bytes,10,rep,name=RedirectUris,proto3" json:"RedirectUris,omitempty"`
// contains filtered or unexported fields
}
func (*Client) Descriptor
deprecated
func (*Client) GetAccessTokenExpireSeconds ¶
func (*Client) GetAudiences ¶
func (*Client) GetIsPublic ¶
func (*Client) GetPermissionLevel ¶
func (*Client) GetRedirectUris ¶
func (*Client) GetRefreshTokenExpireSeconds ¶
func (*Client) ProtoMessage ¶
func (*Client) ProtoMessage()
func (*Client) ProtoReflect ¶
func (x *Client) ProtoReflect() protoreflect.Message
type Credential ¶
type Credential struct {
Username string `protobuf:"bytes,1,opt,name=Username,proto3" json:"Username,omitempty"`
Password string `protobuf:"bytes,2,opt,name=Password,proto3" json:"Password,omitempty"`
// contains filtered or unexported fields
}
func (*Credential) Descriptor
deprecated
func (*Credential) Descriptor() ([]byte, []int)
Deprecated: Use Credential.ProtoReflect.Descriptor instead.
func (*Credential) GetPassword ¶
func (x *Credential) GetPassword() string
func (*Credential) GetUsername ¶
func (x *Credential) GetUsername() string
func (*Credential) ProtoMessage ¶
func (*Credential) ProtoMessage()
func (*Credential) ProtoReflect ¶
func (x *Credential) ProtoReflect() protoreflect.Message
func (*Credential) Reset ¶
func (x *Credential) Reset()
func (*Credential) String ¶
func (x *Credential) String() string
type Resource ¶
type Resource struct {
Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
ValidIssuers []string `protobuf:"bytes,2,rep,name=ValidIssuers,proto3" json:"ValidIssuers,omitempty"`
ValidAudiences []string `protobuf:"bytes,3,rep,name=ValidAudiences,proto3" json:"ValidAudiences,omitempty"`
// contains filtered or unexported fields
}
func (*Resource) Descriptor
deprecated
func (*Resource) GetValidAudiences ¶
func (*Resource) GetValidIssuers ¶
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) ProtoReflect ¶
func (x *Resource) ProtoReflect() protoreflect.Message
type TokenDTO ¶
type TokenDTO struct {
// @gotags: json:"access_token,omitempty"
AccessToken string `protobuf:"bytes,1,opt,name=AccessToken,proto3" json:"access_token,omitempty"`
// @gotags: json:"refresh_token,omitempty"
RefreshToken string `protobuf:"bytes,2,opt,name=RefreshToken,proto3" json:"refresh_token,omitempty"`
// @gotags: json:"token_type,omitempty"
TokenType string `protobuf:"bytes,3,opt,name=TokenType,proto3" json:"token_type,omitempty"`
// @gotags: json:"expires_in,omitempty"
ExpiresIn int32 `protobuf:"varint,4,opt,name=ExpiresIn,proto3" json:"expires_in,omitempty"`
// contains filtered or unexported fields
}
func (*TokenDTO) Descriptor
deprecated
func (*TokenDTO) GetAccessToken ¶
func (*TokenDTO) GetExpiresIn ¶
func (*TokenDTO) GetRefreshToken ¶
func (*TokenDTO) GetTokenType ¶
func (*TokenDTO) ProtoMessage ¶
func (*TokenDTO) ProtoMessage()
func (*TokenDTO) ProtoReflect ¶
func (x *TokenDTO) ProtoReflect() protoreflect.Message
type TokenInfo ¶
type TokenInfo struct {
// @gotags: json:"ci,omitempty"
ClientID string `protobuf:"bytes,1,opt,name=ClientID,proto3" json:"ci,omitempty"`
// @gotags: json:"sc,omitempty"
Scopes string `protobuf:"bytes,2,opt,name=Scopes,proto3" json:"sc,omitempty"`
// @gotags: json:"ru,omitempty"
RedirectUri string `protobuf:"bytes,3,opt,name=RedirectUri,proto3" json:"ru,omitempty"`
// @gotags: json:"un,omitempty"
Username string `protobuf:"bytes,4,opt,name=Username,proto3" json:"un,omitempty"`
// @gotags: json:"cc,omitempty"
CodeChallenge string `protobuf:"bytes,5,opt,name=CodeChallenge,proto3" json:"cc,omitempty"`
// @gotags: json:"ccm,omitempty"
CodeChallengeMethod string `protobuf:"bytes,6,opt,name=CodeChallengeMethod,proto3" json:"ccm,omitempty"`
// contains filtered or unexported fields
}
func (*TokenInfo) Descriptor
deprecated
func (*TokenInfo) GetClientID ¶
func (*TokenInfo) GetCodeChallenge ¶
func (*TokenInfo) GetCodeChallengeMethod ¶
func (*TokenInfo) GetRedirectUri ¶
func (*TokenInfo) GetUsername ¶
func (*TokenInfo) ProtoMessage ¶
func (*TokenInfo) ProtoMessage()
func (*TokenInfo) ProtoReflect ¶
func (x *TokenInfo) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.