Documentation ¶
Index ¶
- Constants
- type CFeature
- func (f *CFeature) Build(b feature.Buildable) (err error)
- func (f *CFeature) Init(this interface{})
- func (f *CFeature) Make() (feat Feature)
- func (f *CFeature) ServeSignInConfirmationPage(email string, saf feature.SiteAuthFeature, w http.ResponseWriter, ...)
- func (f *CFeature) SetEmailAccount(account string) MakeFeature
- func (f *CFeature) SetEmailProvider(tag feature.Tag) MakeFeature
- func (f *CFeature) SiteAuthLoginCallback(w http.ResponseWriter, r *http.Request, saf feature.SiteAuthFeature) (err error)
- func (f *CFeature) SiteAuthSignInHandler(w http.ResponseWriter, r *http.Request, saf feature.SiteAuthFeature) (claims *feature.CSiteAuthClaims, redirect string, err error)
- func (f *CFeature) SiteAuthSignOutHandler(w http.ResponseWriter, r *http.Request, saf feature.SiteAuthFeature) (handled bool, redirect string, err error)
- func (f *CFeature) SiteFeatureInfo(r *http.Request) (info *feature.CSiteFeatureInfo)
- func (f *CFeature) Startup(ctx *cli.Context) (err error)
- type Feature
- type MakeFeature
Constants ¶
View Source
const ( SignInFormNonceKey = "email-token--sign-in--form" SignInFormNonceName = "email-token--sign-in--form--nonce" SignInLinkNonceKey = "email-token--sign-in--link" SignInLinkNonceName = "nonce" )
View Source
const Tag feature.Tag = "site-auth-provider-email-token"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CFeature ¶
type CFeature struct { site.CSiteFeature[MakeFeature] uses_kvc.CUsesKVC[MakeFeature] // contains filtered or unexported fields }
func (*CFeature) ServeSignInConfirmationPage ¶
func (f *CFeature) ServeSignInConfirmationPage(email string, saf feature.SiteAuthFeature, w http.ResponseWriter, r *http.Request)
func (*CFeature) SetEmailAccount ¶
func (f *CFeature) SetEmailAccount(account string) MakeFeature
func (*CFeature) SetEmailProvider ¶
func (f *CFeature) SetEmailProvider(tag feature.Tag) MakeFeature
func (*CFeature) SiteAuthLoginCallback ¶
func (f *CFeature) SiteAuthLoginCallback(w http.ResponseWriter, r *http.Request, saf feature.SiteAuthFeature) (err error)
func (*CFeature) SiteAuthSignInHandler ¶
func (f *CFeature) SiteAuthSignInHandler(w http.ResponseWriter, r *http.Request, saf feature.SiteAuthFeature) (claims *feature.CSiteAuthClaims, redirect string, err error)
func (*CFeature) SiteAuthSignOutHandler ¶
func (f *CFeature) SiteAuthSignOutHandler(w http.ResponseWriter, r *http.Request, saf feature.SiteAuthFeature) (handled bool, redirect string, err error)
func (*CFeature) SiteFeatureInfo ¶
func (f *CFeature) SiteFeatureInfo(r *http.Request) (info *feature.CSiteFeatureInfo)
type Feature ¶
type Feature interface { feature.SiteFeature feature.SiteAuthProvider }
type MakeFeature ¶
type MakeFeature interface { feature.SiteMakeFeature[MakeFeature] uses_kvc.MakeFeature[MakeFeature] SetEmailAccount(account string) MakeFeature SetEmailProvider(tag feature.Tag) MakeFeature Make() Feature }
func New ¶
func New() MakeFeature
func NewTagged ¶
func NewTagged(tag feature.Tag) MakeFeature
Click to show internal directories.
Click to hide internal directories.