auth

package
v0.13.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const Domain = "auth"

Domain defines the domain for the auth package.

Variables

This section is empty.

Functions

func TestSortManagedGroupMemberAccounts added in v0.13.0

func TestSortManagedGroupMemberAccounts(t testing.TB, m []*ManagedGroupMemberAccount)

TestSortManagedGroupMemberAccounts simply sorts them by public id to make comparisons a bit easier.

Types

type Account added in v0.2.0

type Account interface {
	boundary.Resource
	GetAuthMethodId() string
	GetLoginName() string
	GetEmail() string
	GetSubject() string
}

type AuthMethod added in v0.2.0

type AuthMethod interface {
	boundary.Resource
	GetScopeId() string
	GetIsPrimaryAuthMethod() bool
}

AuthMethod contains the common methods across all the different types of auth methods.

type ManagedGroup added in v0.3.0

type ManagedGroup interface {
	boundary.Resource
	GetAuthMethodId() string
}

type ManagedGroupMemberAccount added in v0.13.0

type ManagedGroupMemberAccount struct {
	CreateTime     *timestamp.Timestamp
	MemberId       string
	ManagedGroupId string
	// contains filtered or unexported fields
}

ManagedGroupMemberAccount represents an entry from auth_managed_group_member_account. These are used to determine the account ids where are a member of managed groups. See: oidc and ldap managed groups as well as iam role grants.

func TestManagedGroupMemberAccounts added in v0.13.0

func TestManagedGroupMemberAccounts(t *testing.T, conn *db.DB, managedGroupId string) []*ManagedGroupMemberAccount

TestManagedGroupMemberAccounts retrieves the accounts with membership in the specified managed group.

func (*ManagedGroupMemberAccount) SetTableName added in v0.13.0

func (a *ManagedGroupMemberAccount) SetTableName(n string)

SetTableName sets the table name.

func (*ManagedGroupMemberAccount) TableName added in v0.13.0

func (a *ManagedGroupMemberAccount) TableName() string

TableName returns the table name.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL