Files
threshold/internal/auth/subtype.go
T
Jeff Mitchell b86430c2af Add some common account bits and change over some getOpts -> GetOpts funcs (#2565) (#2566)
This is a precursor to another upcoming PR that will make use of these
changes, but it makes that PR more manageable.
2022-10-25 21:33:31 -04:00

29 lines
556 B
Go

package auth
import (
"github.com/hashicorp/boundary/internal/boundary"
)
// Domain defines the domain for the auth package.
const Domain = "auth"
// AuthMethod contains the common methods across all the different types of auth methods.
type AuthMethod interface {
boundary.Resource
GetScopeId() string
GetIsPrimaryAuthMethod() bool
}
type Account interface {
boundary.Resource
GetAuthMethodId() string
GetLoginName() string
GetEmail() string
GetSubject() string
}
type ManagedGroup interface {
boundary.Resource
GetAuthMethodId() string
}