appauth

package
v3.13.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

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.

Directories

Path Synopsis
Package loginflow holds the persistent state for the login flow.
Package loginflow holds the persistent state for the login flow.
sql
Package sql is a GORM-backed store for client authorizations.
Package sql is a GORM-backed store for client authorizations.
manager
sql
Package sql is a GORM-backed appauth manager.
Package sql is a GORM-backed appauth manager.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL