Documentation
¶
Index ¶
- Variables
- type Application
- func (*Application) Descriptor() ([]byte, []int)deprecated
- func (x *Application) GetAllowedAudiences() []string
- func (x *Application) GetClientId() string
- func (x *Application) GetClientSecret() string
- func (x *Application) GetGrantType() []GrantTypes
- func (x *Application) GetHeader() *header.Header
- func (x *Application) GetIsPublic() bool
- func (x *Application) GetName() string
- func (x *Application) GetRedirectUri() string
- func (x *Application) GetTokenLifetime() uint64
- func (*Application) ProtoMessage()
- func (x *Application) ProtoReflect() protoreflect.Message
- func (x *Application) Reset()
- func (x *Application) String() string
- type GrantTypes
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GrantTypes_name = map[int32]string{ 0: "client_credentials", 1: "authorization_code", 2: "password", } GrantTypes_value = map[string]int32{ "client_credentials": 0, "authorization_code": 1, "password": 2, } )
Enum value maps for GrantTypes.
View Source
var File_proto_application_application_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
// header - Shared data values used across all objects
Header *header.Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty" bson:"header"` // @gotags: bson:"header"
// name - A user provided, arbitrary name for the application
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" bson:"name"` // @gotags: bson:"name"
// is_public - Indicates if this is a public or confidential application
IsPublic bool `protobuf:"varint,3,opt,name=is_public,json=isPublic,proto3" json:"is_public,omitempty" bson:"is_public"` // @gotags: bson:"is_public"
// client_id - The client ID used in the authorization process
ClientId string `protobuf:"bytes,4,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty" bson:"client_id"` // @gotags: bson:"client_id"
// client_secret - The client secret used in the authorization process
ClientSecret string `protobuf:"bytes,5,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty" bson:"client_secret"` // @gotags: bson:"client_secret"
// redirect_uri - A redirect URI for the application to redirect to after authorization
RedirectUri string `protobuf:"bytes,6,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty" bson:"redirect_uri"` // @gotags: bson:"redirect_uri"
// token_lifetime - The amount of time in seconds, before the token expires
TokenLifetime uint64 `protobuf:"varint,7,opt,name=token_lifetime,json=tokenLifetime,proto3" json:"token_lifetime,omitempty" bson:"token_lifetime"` // @gotags: bson:"token_lifetime"
// grant_type - The grant types this Application is authorized to issue on
GrantType []GrantTypes `` // @gotags: bson:"grant_type"
/* 142-byte string literal not displayed */
// allowed_audiences - A list of strings that represents which API's this application can issue tokens for
AllowedAudiences []string `` // @gotags: bson:"allowed_audiences"
/* 134-byte string literal not displayed */
// contains filtered or unexported fields
}
Application - The core resource allowing that provides the issuance of tokens
func (*Application) Descriptor
deprecated
func (*Application) Descriptor() ([]byte, []int)
Deprecated: Use Application.ProtoReflect.Descriptor instead.
func (*Application) GetAllowedAudiences ¶
func (x *Application) GetAllowedAudiences() []string
func (*Application) GetClientId ¶
func (x *Application) GetClientId() string
func (*Application) GetClientSecret ¶
func (x *Application) GetClientSecret() string
func (*Application) GetGrantType ¶
func (x *Application) GetGrantType() []GrantTypes
func (*Application) GetHeader ¶
func (x *Application) GetHeader() *header.Header
func (*Application) GetIsPublic ¶
func (x *Application) GetIsPublic() bool
func (*Application) GetName ¶
func (x *Application) GetName() string
func (*Application) GetRedirectUri ¶
func (x *Application) GetRedirectUri() string
func (*Application) GetTokenLifetime ¶
func (x *Application) GetTokenLifetime() uint64
func (*Application) ProtoMessage ¶
func (*Application) ProtoMessage()
func (*Application) ProtoReflect ¶
func (x *Application) ProtoReflect() protoreflect.Message
func (*Application) Reset ¶
func (x *Application) Reset()
func (*Application) String ¶
func (x *Application) String() string
type GrantTypes ¶
type GrantTypes int32
GrantTypes - A list of enums representing an OAuth Grant Type
const ( // client_credentials - Client credentials grant allows direct issuance of tokens in exchange for a client ID and secret GrantTypes_client_credentials GrantTypes = 0 GrantTypes_authorization_code GrantTypes = 1 // password - Deprecated OAuth grant that allows direct issuance of tokens in exchange for raw user credentials GrantTypes_password GrantTypes = 2 )
func (GrantTypes) Descriptor ¶
func (GrantTypes) Descriptor() protoreflect.EnumDescriptor
func (GrantTypes) Enum ¶
func (x GrantTypes) Enum() *GrantTypes
func (GrantTypes) EnumDescriptor
deprecated
func (GrantTypes) EnumDescriptor() ([]byte, []int)
Deprecated: Use GrantTypes.Descriptor instead.
func (GrantTypes) Number ¶
func (x GrantTypes) Number() protoreflect.EnumNumber
func (GrantTypes) String ¶
func (x GrantTypes) String() string
func (GrantTypes) Type ¶
func (GrantTypes) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.