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

1 year ago
  1. package auth
  2. import (
  3. "context"
  4. )
  5. type Provider interface {
  6. ListUsers(ctx context.Context) ([]UserInfo, error)
  7. LoginUser(ctx context.Context, username, password string) (*Result, error)
  8. SetupUser(ctx context.Context, session, username, preferredUsername, newPassword string) (*UserInfo, error)
  9. ValidateToken(ctx context.Context, token string) *UserInfo
  10. }