azure

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Azure

type Azure struct {
	Config Config
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, config Config) (*Azure, error)

func (*Azure) IsUserInGroup

func (az *Azure) IsUserInGroup(ctx context.Context, email string) (isInGroup bool, displayName *string, err error)

func (*Azure) Users

func (az *Azure) Users(ctx context.Context) ([]AzureUser, error)

type AzureUser

type AzureUser struct {
	Email       string
	DisplayName string
}

type AzureUsers

type AzureUsers []AzureUser

type Config

type Config struct {
	AzureTenantId     string
	AzureClientId     string
	AzureClientSecret string
	AzureGroup        string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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