Documentation
¶
Index ¶
- Variables
- type TokenResponse
- func (*TokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TokenResponse) GetAccessToken() string
- func (x *TokenResponse) GetExpiresIn() uint32
- func (x *TokenResponse) GetIdToken() string
- func (x *TokenResponse) GetRefreshToken() string
- func (x *TokenResponse) GetScope() string
- func (x *TokenResponse) GetTokenType() string
- func (*TokenResponse) ProtoMessage()
- func (x *TokenResponse) ProtoReflect() protoreflect.Message
- func (x *TokenResponse) Reset()
- func (x *TokenResponse) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_response_token_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type TokenResponse ¶
type TokenResponse struct {
// access_token - The JWT token as returned by the application
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty" bson:"access_token"` // @gotags: bson:"access_token"
// id_token - The JWT token as returned by the application
IdToken string `protobuf:"bytes,2,opt,name=id_token,json=idToken,proto3" json:"id_token,omitempty" bson:"id_token"` // @gotags: bson:"id_token"
// token_type - The type of token this response represents. Usually bearer
TokenType string `protobuf:"bytes,3,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty" bson:"token_type"` // @gotags: bson:"token_type"
// expires_in - The time in seconds that the token expires in
ExpiresIn uint32 `protobuf:"varint,4,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty" bson:"expires_in"` // @gotags: bson:"expires_in"
// refresh_token - The refresh token that the application has issued
RefreshToken string `protobuf:"bytes,5,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty" bson:"refresh_token"` // @gotags: bson:"refresh_token"
// scope - A string of space seperated scopes that the user has been issued
Scope string `protobuf:"bytes,6,opt,name=scope,proto3" json:"scope,omitempty" bson:"scope"` // @gotags: bson:"scope"
// contains filtered or unexported fields
}
TokenResponse - Represents an HTTP response containing the credentials requested by the end user
func (*TokenResponse) Descriptor
deprecated
func (*TokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use TokenResponse.ProtoReflect.Descriptor instead.
func (*TokenResponse) GetAccessToken ¶
func (x *TokenResponse) GetAccessToken() string
func (*TokenResponse) GetExpiresIn ¶
func (x *TokenResponse) GetExpiresIn() uint32
func (*TokenResponse) GetIdToken ¶
func (x *TokenResponse) GetIdToken() string
func (*TokenResponse) GetRefreshToken ¶
func (x *TokenResponse) GetRefreshToken() string
func (*TokenResponse) GetScope ¶
func (x *TokenResponse) GetScope() string
func (*TokenResponse) GetTokenType ¶
func (x *TokenResponse) GetTokenType() string
func (*TokenResponse) ProtoMessage ¶
func (*TokenResponse) ProtoMessage()
func (*TokenResponse) ProtoReflect ¶
func (x *TokenResponse) ProtoReflect() protoreflect.Message
func (*TokenResponse) Reset ¶
func (x *TokenResponse) Reset()
func (*TokenResponse) String ¶
func (x *TokenResponse) String() string
Click to show internal directories.
Click to hide internal directories.