Documentation ¶
Index ¶
- type Config
- func (cfg *Config) AddAuthenticationPortal(p *authn.PortalConfig) error
- func (cfg *Config) AddAuthorizationPolicy(p *authz.PolicyConfig) error
- func (cfg *Config) AddCredential(c credentials.Credential) error
- func (cfg *Config) AddDisabledIdentityProvider(s string)
- func (cfg *Config) AddDisabledIdentityStore(s string)
- func (cfg *Config) AddIdentityProvider(name, kind string, data map[string]interface{}) error
- func (cfg *Config) AddIdentityStore(name, kind string, data map[string]interface{}) error
- func (cfg *Config) AddMessagingProvider(p messaging.Provider) error
- func (cfg *Config) AddSingleSignOnProvider(data map[string]interface{}) error
- func (cfg *Config) AddUserRegistry(r *registry.UserRegistryConfig) error
- func (cfg *Config) Validate() error
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Credentials *credentials.Config `json:"credentials,omitempty" xml:"credentials,omitempty" yaml:"credentials,omitempty"` Messaging *messaging.Config `json:"messaging,omitempty" xml:"messaging,omitempty" yaml:"messaging,omitempty"` AuthenticationPortals []*authn.PortalConfig `json:"authentication_portals,omitempty" xml:"authentication_portals,omitempty" yaml:"authentication_portals,omitempty"` AuthorizationPolicies []*authz.PolicyConfig `json:"authorization_policies,omitempty" xml:"authorization_policies,omitempty" yaml:"authorization_policies,omitempty"` IdentityStores []*ids.IdentityStoreConfig `json:"identity_stores,omitempty" xml:"identity_stores,omitempty" yaml:"identity_stores,omitempty"` IdentityProviders []*idp.IdentityProviderConfig `json:"identity_providers,omitempty" xml:"identity_providers,omitempty" yaml:"identity_providers,omitempty"` SingleSignOnProviders []*sso.SingleSignOnProviderConfig `json:"sso_providers,omitempty" xml:"sso_providers,omitempty" yaml:"sso_providers,omitempty"` UserRegistries []*registry.UserRegistryConfig `json:"user_registries,omitempty" xml:"user_registries,omitempty" yaml:"user_registries,omitempty"` // contains filtered or unexported fields }
Config is a configuration of Server.
func (*Config) AddAuthenticationPortal ¶
func (cfg *Config) AddAuthenticationPortal(p *authn.PortalConfig) error
AddAuthenticationPortal adds an authentication portal configuration.
func (*Config) AddAuthorizationPolicy ¶
func (cfg *Config) AddAuthorizationPolicy(p *authz.PolicyConfig) error
AddAuthorizationPolicy adds an authorization policy configuration.
func (*Config) AddCredential ¶
func (cfg *Config) AddCredential(c credentials.Credential) error
AddCredential adds a credential configuration.
func (*Config) AddDisabledIdentityProvider ¶
AddDisabledIdentityProvider adds the names of disabled identity providers.
func (*Config) AddDisabledIdentityStore ¶
AddDisabledIdentityStore adds the names of disabled identity stores.
func (*Config) AddIdentityProvider ¶
AddIdentityProvider adds an identity provider configuration.
func (*Config) AddIdentityStore ¶
AddIdentityStore adds an identity store configuration.
func (*Config) AddMessagingProvider ¶
AddMessagingProvider adds a messaging provider configuration.
func (*Config) AddSingleSignOnProvider ¶
AddSingleSignOnProvider adds a single sign-on provider configuration.
func (*Config) AddUserRegistry ¶
func (cfg *Config) AddUserRegistry(r *registry.UserRegistryConfig) error
AddUserRegistry adds a user registry configuration.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents AAA SF server.
func (*Server) GetGatekeeperByName ¶
func (srv *Server) GetGatekeeperByName(s string) (*authz.Gatekeeper, error)
GetGatekeeperByName returns an instance of authz.Gatekeeper based on its name.