Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface {
// GenerateAppPassword creates a password with specified scope to be used by
// third-party applications.
GenerateAppPassword(ctx context.Context, scope map[string]*authpb.Scope, label string, expiration *typespb.Timestamp) (*apppb.AppPassword, error)
// ListAppPasswords lists the application passwords created by a user.
ListAppPasswords(ctx context.Context) ([]*apppb.AppPassword, error)
// InvalidateAppPassword invalidates a generated password.
InvalidateAppPassword(ctx context.Context, secret string) error
// GetAppPassword retrieves the password information by the combination of username and password.
GetAppPassword(ctx context.Context, user *userpb.UserId, secret string) (*apppb.AppPassword, error)
}
Manager is the interface that manages application authentication mechanisms.
Click to show internal directories.
Click to hide internal directories.