Documentation ¶
Index ¶
- Constants
- Variables
- func NewWhiteLabelLoginFormController() web.Controller
- func Use()
- type Options
- type PasswdIdentityProvider
- type PasswdIdpDetails
- type PasswdIdpOptions
- type PasswordIdpSecurityConfigurer
- type PwdAuthEndpointProperties
- type PwdAuthMfaProperties
- type PwdAuthProperties
- type RememberMeProperties
Constants ¶
View Source
const ( OrderWhiteLabelTemplateFS = 0 OrderTemplateFSOverwrite = OrderWhiteLabelTemplateFS - 1000 )
View Source
const (
PwdAuthPropertiesPrefix = "security.idp.internal"
)
Variables ¶
View Source
var Module = &bootstrap.Module{ Name: "password IDP", Precedence: security.MaxSecurityPrecedence - 100, Options: []fx.Option{ appconfig.FxEmbeddedDefaults(defaultConfigFS), fx.Provide(BindPwdAuthProperties), fx.Invoke(register), }, }
Functions ¶
func NewWhiteLabelLoginFormController ¶
func NewWhiteLabelLoginFormController() web.Controller
Types ¶
type Options ¶
type Options func(opt *option)
func WithMFAListeners ¶
func WithMFAListeners(listeners ...passwd.MFAEventListenerFunc) Options
func WithProperties ¶
func WithProperties(props *PwdAuthProperties) Options
type PasswdIdentityProvider ¶
type PasswdIdentityProvider struct {
PasswdIdpDetails
}
PasswdIdentityProvider implements idp.IdentityProvider and idp.AuthenticationFlowAware
func NewIdentityProvider ¶
func NewIdentityProvider(opts ...PasswdIdpOptions) *PasswdIdentityProvider
func (PasswdIdentityProvider) AuthenticationFlow ¶
func (s PasswdIdentityProvider) AuthenticationFlow() idp.AuthenticationFlow
func (PasswdIdentityProvider) Domain ¶
func (s PasswdIdentityProvider) Domain() string
type PasswdIdpDetails ¶
type PasswdIdpDetails struct {
Domain string
}
type PasswdIdpOptions ¶
type PasswdIdpOptions func(opt *PasswdIdpDetails)
type PasswordIdpSecurityConfigurer ¶
type PasswordIdpSecurityConfigurer struct {
// contains filtered or unexported fields
}
PasswordIdpSecurityConfigurer implements authserver.IdpSecurityConfigurer
func NewPasswordIdpSecurityConfigurer ¶
func NewPasswordIdpSecurityConfigurer(opts ...Options) *PasswordIdpSecurityConfigurer
func (*PasswordIdpSecurityConfigurer) Configure ¶
func (c *PasswordIdpSecurityConfigurer) Configure(ws security.WebSecurity, config *authserver.Configuration)
type PwdAuthEndpointProperties ¶
type PwdAuthEndpointProperties struct { FormLogin string `json:"form-login"` FormLoginProcess string `json:"form-login-process"` FormLoginError string `json:"form-login-error"` OtpVerify string `json:"otp-verify"` OtpVerifyProcess string `json:"otp-verify-process"` OtpVerifyResend string `json:"otp-verify-resend"` OtpVerifyError string `json:"otp-verify-error"` ResetPasswordPageUrl string `json:"reset-password-page-url"` }
type PwdAuthMfaProperties ¶
type PwdAuthProperties ¶
type PwdAuthProperties struct { Enabled bool `json:"enabled"` Domain string `json:"domain"` SessionExpiredRedirectUrl string `json:"session-expired-redirect-url"` Endpoints PwdAuthEndpointProperties `json:"endpoints"` MFA PwdAuthMfaProperties `json:"mfa"` RememberMe RememberMeProperties `json:"remember-me"` }
func BindPwdAuthProperties ¶
func BindPwdAuthProperties(ctx *bootstrap.ApplicationContext) PwdAuthProperties
func NewPwdAuthProperties ¶
func NewPwdAuthProperties() *PwdAuthProperties
Click to show internal directories.
Click to hide internal directories.