Documentation ¶
Index ¶
- func WithRootDir(p string) func(o *options)
- type Broker
- func (b Broker) GetAuthenticationModes(ctx context.Context, username, lang string, ...) (sessionID, encryptionKey string, authenticationModes []map[string]string, ...)
- func (b Broker) IsAuthorized(ctx context.Context, sessionID, authenticationData string) (access string, userInfo string, err error)
- func (b Broker) SelectAuthenticationMode(ctx context.Context, sessionID, authenticationModeName string) (uiLayoutInfo map[string]string, err error)
- type Manager
- func (m *Manager) AvailableBrokers() (r []*Broker)
- func (m *Manager) BrokerForSessionID(sessionID string) (broker *Broker, err error)
- func (m *Manager) BrokerForUser(username string) (broker *Broker)
- func (m *Manager) GetBroker(brokerID string) (broker *Broker, err error)
- func (m *Manager) SetBrokerForSessionID(sessionID string, broker *Broker)
- func (m *Manager) SetDefaultBrokerForUser(username string, broker *Broker)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithRootDir ¶
func WithRootDir(p string) func(o *options)
WithRootDir uses a dedicated path for our root.
Types ¶
type Broker ¶
type Broker struct { ID string Name string BrandIconPath string // contains filtered or unexported fields }
func (Broker) GetAuthenticationModes ¶
func (b Broker) GetAuthenticationModes(ctx context.Context, username, lang string, supportedUiLayouts []map[string]string) (sessionID, encryptionKey string, authenticationModes []map[string]string, err error)
GetAuthenticationModes calls the broker corresponding method, expanding sessionID with the broker ID prefix. This solves the case of 2 brokers returning the same ID.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) AvailableBrokers ¶
AvailableBrokers returns currently loaded and available brokers in preference order.
func (*Manager) BrokerForSessionID ¶
BrokerForSessionID returns broker currently in use for a given transaction sessionID.
func (*Manager) BrokerForUser ¶
BrokerForUser returns any previously selected broker for a given user, if any.
func (*Manager) SetBrokerForSessionID ¶
SetBrokerForSessionID set a broker as currently use for a given transaction with this sessionID.
func (*Manager) SetDefaultBrokerForUser ¶
SetDefaultBrokerForUser memorizes which broker was used for which user.
Click to show internal directories.
Click to hide internal directories.