二阶段差不多
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package auth
|
||||
|
||||
// Provider 定义外部认证接口
|
||||
type Provider interface {
|
||||
// Authenticate 验证外部凭据,返回邮箱地址
|
||||
Authenticate(credentials map[string]string) (email string, err error)
|
||||
// Name 返回提供者名称
|
||||
Name() string
|
||||
}
|
||||
Reference in New Issue
Block a user