Files
threshold/internal/auth/subtype.go
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
627 B
Go
Raw Normal View History

// Copyright (c) HashiCorp, Inc.
2023-02-02 17:15:17 -08:00
// SPDX-License-Identifier: BUSL-1.1
package auth
import (
"github.com/hashicorp/boundary/internal/boundary"
)
// Domain defines the domain for the auth package.
const Domain = "auth"
2021-04-08 20:54:32 -04:00
// AuthMethod contains the common methods across all the different types of auth methods.
type AuthMethod interface {
boundary.Resource
2021-04-08 20:54:32 -04:00
GetScopeId() string
GetIsPrimaryAuthMethod() bool
}
type Account interface {
boundary.Resource
2021-04-08 20:54:32 -04:00
GetAuthMethodId() string
GetLoginName() string
GetEmail() string
GetSubject() string
2021-04-08 20:54:32 -04:00
}
2021-06-01 14:12:34 -05:00
type ManagedGroup interface {
boundary.Resource
2021-06-01 14:12:34 -05:00
GetAuthMethodId() string
}