Fetch the repository succeeded.
package authing_model
var (
LoginTabPassword = "password"
LoginTabCode = "phone-code"
PasswordMethods = []string{"phone-password", "email-password", "username-password"}
VerifyCodeMethods = []string{"phone-code", "email-code"}
)
// DefaultLoginTab = "password", "phone-code"
// passwordMethods = "phone-password", "email-password", "username-password"
// codeMethods = phone-code, email-code
type MyAuthingLoginConfig struct {
DefaultCodeVerifyLoginTab bool
EnablePasswordLogin bool
EnableCodeVerifyLogin bool
}
type LoginTabConfigReq struct {
EnabledLoginMethods []string `json:"enabledLoginMethods"`
ValidLoginMethods []string `json:"validLoginMethods"`
ValidRegisterMethods []string `json:"validRegisterMethods"`
}
type LoginPageUpdateReq struct {
CustomSecurityEnabled bool `json:"customSecurityEnabled"`
AutoRegisterThenLogin bool `json:"autoRegisterThenLogin"` // this will trigger auto add user when user not exist
RegisterTabs []string `json:"registerTabs"` //
DefaultLoginTab string `json:"defaultLoginTab"` // phone-code, password
LoginTabs []string `json:"loginTabs"`
PasswordTabConfig LoginTabConfigReq `json:"passwordTabConfig"` // phone-password,email-password,username-password
VerifyCodeTabConfig LoginTabConfigReq `json:"verifyCodeTabConfig"` // phone-code, email-code
OidcConfig AppOIDCConfig `json:"oidcConfig"`
}
type AppOIDCConfig struct {
Display_prompt_page bool `json:"display_prompt_page"` // true
Id_token_signed_response_alg string `json:"id_token_signed_response_alg"` // HS256 RS256
Grant_types []string `json:"grant_types"` // "authorization_code", "refresh_token"
Response_types []string `json:"response_types"` // id_token
Introspection_endpoint_auth_method string `json:"introspection_endpoint_auth_method"` // client_secret_post
Revocation_endpoint_auth_method string `json:"revocation_endpoint_auth_method"` // client_secret_post
Token_endpoint_auth_method string `json:"token_endpoint_auth_method"` // none
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。