代码拉取完成,页面将自动刷新
package v2
import (
"context"
)
// AuthProvider represents an abstracted authentication provider
type AuthProvider interface {
// Authenticate attempts to authenticate a user with its username and password
Authenticate(ctx context.Context, username, password string) (*Claims, error)
// Refresh renews the user claims with the provider claims
Refresh(ctx context.Context, providerClaims AuthProviderClaims) (*Claims, error)
// GetObjectMeta returns the object metadata for the provider
GetObjectMeta() ObjectMeta
// Name returns the provider name (e.g. default)
Name() string
// StorePrefix gives the path prefix to this resource in the store
StorePrefix() string
// Type returns the provider type (e.g. ldap)
Type() string
// URIPath gives the path to the provider
URIPath() string
// Validate checks if the fields in the provider are valid
Validate() error
// SetNamespace sets the namespace of the resource.
SetNamespace(string)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。