azad

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureAccessToken

type AzureAccessToken struct {
	Token string `json:"access_token"`
}

type AzureAppRole

type AzureAppRole struct {
	AllowedMemberTypes []string `json:"allowedMemberTypes"`
	Description        string   `json:"description"`
	DisplayName        string   `json:"displayName"`
	ID                 string   `json:"id"`
	IsEnabled          bool     `json:"isEnabled"`
	Origin             string   `json:"origin"`
	Value              string   `json:"value"`
}

type AzureAppRoleAssignment

type AzureAppRoleAssignment struct {
	ID                   string `json:"id"`
	AppRoleId            string `json:"appRoleId" validate:"required"`
	PrincipalDisplayName string `json:"principalDisplayName"`
	PrincipalId          string `json:"principalId"`
	PrincipalType        string `json:"principalType"`
	ResourceDisplayName  string `json:"resourceDisplayName"`
	ResourceId           string `json:"resourceId" validate:"required"`
}

type AzureAppRoleAssignments

type AzureAppRoleAssignments struct {
	List []AzureAppRoleAssignment `json:"value"`
}

type AzureClient

type AzureClient interface {
	GetAzureApplications(key []byte) ([]AzureWebApp, error)
	GetWebApplications(key []byte) ([]orchestrator.ApplicationInfo, error)
	GetServicePrincipals(key []byte, appId string) (AzureServicePrincipals, error)
	GetUserInfoFromPrincipalId(key []byte, principalId string) (AzureUser, error)
	GetPrincipalIdFromEmail(key []byte, email string) (string, error)
	GetAppRoleAssignedTo(key []byte, servicePrincipalId string) (AzureAppRoleAssignments, error)
	SetAppRoleAssignedTo(key []byte, servicePrincipalId string, assignments []AzureAppRoleAssignment) error
}

func NewAzureClient

func NewAzureClient(httpClient azurecommon.HTTPClient) AzureClient

type AzureServicePrincipals

type AzureServicePrincipals struct {
	List []azureServicePrincipal `json:"value"`
}

type AzureUser

type AzureUser struct {
	PrincipalId string `json:"id"`
	Name        string `json:"userPrincipalName"`
	Email       string `json:"mail"`
}

type AzureUsers

type AzureUsers struct {
	List []AzureUser `json:"value"`
}

type AzureWebApp

type AzureWebApp struct {
	ID             string       `json:"id"`
	AppID          string       `json:"appId"`
	Name           string       `json:"displayName"`
	IdentifierUris []string     `json:"identifierUris"`
	Web            azureWebInfo `json:"web"`
}

Jump to

Keyboard shortcuts

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