You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
362 B

package auth
import (
"context"
)
type Provider interface {
ListUsers(ctx context.Context) ([]UserInfo, error)
LoginUser(ctx context.Context, username, password string) (*Result, error)
SetupUser(ctx context.Context, session, username, preferredUsername, newPassword string) (*UserInfo, error)
ValidateToken(ctx context.Context, token string) *UserInfo
}