Files
threshold/internal/auth/subtype.go
T
Johan Brandhorst-Satzkorn 53481146fd feat(authmethods): add well typed attribute options (#1972)
Add well typed attribute options to the authmethods proto
definitions, while hiding them from being rendered in
the openapiv2 spec.
2022-04-20 13:32:31 -04:00

26 lines
493 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
}
type ManagedGroup interface {
boundary.Resource
GetAuthMethodId() string
}