Documentation
¶
Index ¶
- Constants
- func Allows(policy *models.DomainAccessConfig, email string) bool
- func Hostname(value string) string
- func Resolve(deployments []models.Deployment, host, requestPath string) (*models.DomainAccessConfig, bool)
- func SafeReturn(value string) string
- func ValidAllowlistEntry(value string) bool
- func ValidEmail(value string) bool
- type Service
- func (s *Service) AllowEmailRequest(host, email string) bool
- func (s *Service) InspectMagicLink(value string) (string, string, string, error)
- func (s *Service) MagicLink(email, host, returnPath string) (string, error)
- func (s *Service) Session(email, host string, hours int) (string, error)
- func (s *Service) ValidateSession(value, host string, policy *models.DomainAccessConfig) bool
- func (s *Service) VerifyMagicLink(value string) (string, string, string, error)
Constants ¶
View Source
const CookieName = "flatrun_access"
Variables ¶
This section is empty.
Functions ¶
func Resolve ¶
func Resolve(deployments []models.Deployment, host, requestPath string) (*models.DomainAccessConfig, bool)
func SafeReturn ¶
func ValidAllowlistEntry ¶
ValidAllowlistEntry accepts a complete email address or an exact domain prefixed with @. YAML producers must quote domain entries because @ is a reserved leading indicator.
func ValidEmail ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) AllowEmailRequest ¶
func (*Service) InspectMagicLink ¶
func (*Service) ValidateSession ¶
func (s *Service) ValidateSession(value, host string, policy *models.DomainAccessConfig) bool
Click to show internal directories.
Click to hide internal directories.