WebSecurity + SimpleMembershipを使用したいのですが、カスタム/代替認証方法を介して(オプションで)ユーザーにログインする機能を実装します。
WebSecurity.Loginには、ユーザー名とパスワードの両方を必要とするメソッド署名が1つだけあります。パスワードチェックをスキップしたいのですが、例:
if (MyCustomAuthenticationMethod.Authenticate(username, customData)) {
WebSecurity.Login(username); // Login without password check, method doesn't exist though
}
OAuthWebSecurityが存在する場合、custom-auth-methodsが可能であると思いますが、独自のメソッドを実装する方法がわかりません。