azureclient

package
v0.0.0-...-8324bef Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureADClient

type AzureADClient struct {
	// contains filtered or unexported fields
}

func NewAzureADClient

func NewAzureADClient(ctx context.Context, tenant, clientID, clientSecret string) (*AzureADClient, error)

func NewAzureADClientWithRefreshToken

func NewAzureADClientWithRefreshToken(ctx context.Context, tenant, clientID, clientSecret, refreshToken string) (*AzureADClient, error)

func (*AzureADClient) GetUserByEmail

func (c *AzureADClient) GetUserByEmail(ctx context.Context, email string, groups bool) ([]models.Userable, error)

func (*AzureADClient) GetUserByID

func (c *AzureADClient) GetUserByID(ctx context.Context, id string, groups bool) ([]models.Userable, error)

func (*AzureADClient) ListGroups

func (c *AzureADClient) ListGroups(ctx context.Context) ([]models.Groupable, error)

func (*AzureADClient) ListUsers

func (c *AzureADClient) ListUsers(ctx context.Context, groups bool) ([]models.Userable, error)

type RefreshTokenCredential

type RefreshTokenCredential struct {
	// contains filtered or unexported fields
}

func NewRefreshTokenCredential

func NewRefreshTokenCredential(ctx context.Context, tenantID, clientID, clientSecret, refreshToken string) (*RefreshTokenCredential, error)

func (*RefreshTokenCredential) GetToken

Jump to

Keyboard shortcuts

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