Documentation ¶
Index ¶
Constants ¶
View Source
const ( LoginProviderFormPassword = models.LoginProviderFormPassword LoginProviderSmsOtpCode = models.LoginProviderSmsOtpCode )
View Source
const (
RealmAdmin = "admin"
)
Variables ¶
This section is empty.
Functions ¶
func NewTokensServiceServer ¶
func NewTokensServiceServer(cfg config.SecureTokenConfig, drs repos.DataRepos, ts secure.TokenStore) iam_pb.TokensServiceServer
func NewUsersServiceServer ¶
func NewUsersServiceServer(drs repos.DataRepos) iam_pb.UsersServiceServer
Types ¶
type LoginProvider ¶
type LoginProvider interface { Name() string Login(ctx context.Context, realm, username, password, idToken string, scope []string) (*models.Login, error) }
func NewFormPasswordLoginProvider ¶
func NewFormPasswordLoginProvider(drs repos.DataRepos) LoginProvider
func NewSMSOTPCodeLoginProvider ¶
func NewSMSOTPCodeLoginProvider() LoginProvider
Click to show internal directories.
Click to hide internal directories.