Documentation ¶
Overview ¶
Package authmanager provides the authentication manager for the server
Index ¶
- type Config
- func (a *Config) GenerateOauthAuthSession(ctx context.Context, w http.ResponseWriter, user *generated.User, ...) (*models.AuthData, error)
- func (a *Config) GenerateUserAuthSession(ctx echo.Context, user *generated.User) (*models.AuthData, error)
- func (a *Config) GenerateUserAuthSessionWithOrg(ctx echo.Context, user *generated.User, targetOrgID string) (*models.AuthData, error)
- func (a *Config) GetSessionConfig() *sessions.SessionConfig
- func (a *Config) GetTokenManager() *tokens.TokenManager
- func (a *Config) SetSessionConfig(sc *sessions.SessionConfig)
- func (a *Config) SetTokenManager(tm *tokens.TokenManager)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) GenerateOauthAuthSession ¶
func (a *Config) GenerateOauthAuthSession(ctx context.Context, w http.ResponseWriter, user *generated.User, oauthRequest models.OauthTokenRequest) (*models.AuthData, error)
GenerateOauthAuthSession creates a new auth session for the oauth user and their default organization id
func (*Config) GenerateUserAuthSession ¶
func (a *Config) GenerateUserAuthSession(ctx echo.Context, user *generated.User) (*models.AuthData, error)
generateNewAuthSession creates a new auth session for the user and their default organization id
func (*Config) GenerateUserAuthSessionWithOrg ¶
func (a *Config) GenerateUserAuthSessionWithOrg(ctx echo.Context, user *generated.User, targetOrgID string) (*models.AuthData, error)
generateUserAuthSessionWithOrg creates a new auth session for the user and the new target organization id
func (*Config) GetSessionConfig ¶
func (a *Config) GetSessionConfig() *sessions.SessionConfig
func (*Config) GetTokenManager ¶
func (a *Config) GetTokenManager() *tokens.TokenManager
func (*Config) SetSessionConfig ¶
func (a *Config) SetSessionConfig(sc *sessions.SessionConfig)
SetSessionConfig sets the session config for the auth session
func (*Config) SetTokenManager ¶
func (a *Config) SetTokenManager(tm *tokens.TokenManager)
SetTokenManager sets the token manager for the auth session
Click to show internal directories.
Click to hide internal directories.