Documentation ¶
Index ¶
- Variables
- type Application
- func (a *Application) AreScopesCoveredByApplication(scopes string) bool
- func (a *Application) ClientID() string
- func (a *Application) Confidentiality() Confidentiality
- func (a *Application) HasSecret() bool
- func (a *Application) ID() int
- func (a *Application) IsAllowedLogoutURI(uri string) bool
- func (a *Application) IsAllowedRedirectURI(uri string) bool
- func (a *Application) IsFlowAllowed(flow FlowType) bool
- func (a *Application) IsRetired() bool
- func (a *Application) Name() string
- func (a *Application) Properties() *ApplicationProperties
- func (a *Application) Type() Type
- func (a *Application) ValidateClientSecret(input string) bool
- type ApplicationProperties
- type Confidentiality
- type FlowType
- type Service
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("application not found")
ErrNotFound indicates the requested entity was not found
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func ApplicationFromDbType ¶
func ApplicationFromDbType(table *tables.ApplicationTable) *Application
func (*Application) AreScopesCoveredByApplication ¶
func (a *Application) AreScopesCoveredByApplication(scopes string) bool
func (*Application) ClientID ¶
func (a *Application) ClientID() string
func (*Application) Confidentiality ¶
func (a *Application) Confidentiality() Confidentiality
func (*Application) HasSecret ¶
func (a *Application) HasSecret() bool
func (*Application) ID ¶
func (a *Application) ID() int
func (*Application) IsAllowedLogoutURI ¶
func (a *Application) IsAllowedLogoutURI(uri string) bool
func (*Application) IsAllowedRedirectURI ¶
func (a *Application) IsAllowedRedirectURI(uri string) bool
func (*Application) IsFlowAllowed ¶
func (a *Application) IsFlowAllowed(flow FlowType) bool
func (*Application) IsRetired ¶
func (a *Application) IsRetired() bool
func (*Application) Name ¶
func (a *Application) Name() string
func (*Application) Properties ¶
func (a *Application) Properties() *ApplicationProperties
func (*Application) Type ¶
func (a *Application) Type() Type
func (*Application) ValidateClientSecret ¶
func (a *Application) ValidateClientSecret(input string) bool
type ApplicationProperties ¶
type ApplicationProperties struct {
// contains filtered or unexported fields
}
func (*ApplicationProperties) AllowedFlows ¶
func (a *ApplicationProperties) AllowedFlows() []FlowType
func (*ApplicationProperties) LogoutURIs ¶
func (a *ApplicationProperties) LogoutURIs() []string
func (*ApplicationProperties) PKCE ¶
func (a *ApplicationProperties) PKCE() bool
func (*ApplicationProperties) RedirectURIs ¶
func (a *ApplicationProperties) RedirectURIs() []string
func (*ApplicationProperties) Scopes ¶
func (a *ApplicationProperties) Scopes() []string
type Confidentiality ¶
type Confidentiality string
const PrivateConfidentiality Confidentiality = "private"
const PublicConfidentiality Confidentiality = "public"
type FlowType ¶
type FlowType string
const AuthorizationCodeFlow FlowType = "authorization_code"
const ClientCredentialsFlow FlowType = "client_credentials"
const PasswordFlow FlowType = "password"
const RefreshTokenFlow FlowType = "refresh_token"
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewApplicationSevice ¶
func (*Service) ApplicationByClientID ¶
func (*Service) ApplicationByID ¶
Click to show internal directories.
Click to hide internal directories.