Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface {
GrantIntent(userCredential *dto.UserCredIn, data interface{}) (*dto.GrantIntentResponse, *dto.Problem)
}
type ProviderDrone ¶
type ProviderDrone struct {
// contains filtered or unexported fields
}
func (*ProviderDrone) GrantIntent ¶
func (p *ProviderDrone) GrantIntent(uCred *dto.UserCredIn, options interface{}) (*dto.GrantIntentResponse, *dto.Problem)
type SvcAuthentication ¶
type SvcAuthentication struct {
AuthProviders map[string]Provider // similar to slices, maps are reference types.
}
func NewSvcAuthentication ¶
func NewSvcAuthentication(providers map[string]bool, repoUser *db.RepoDrones) *SvcAuthentication
NewSvcAuthentication creates the authentication service. It provides the methods to make the authentication intent with the register providers.
- providers [Array] ~ Maps of providers string token / identifiers
- conf [*SvcConfig] ~ App conf instance pointer
Click to show internal directories.
Click to hide internal directories.