Documentation
¶
Index ¶
- Constants
- func GetAllAppsContainingRequestConfig(name string) *applications.ApplicationsRequestBuilderGetRequestConfiguration
- func GetAppGetRequestConfig(name string) *applications.ApplicationsRequestBuilderGetRequestConfiguration
- func GetSecret(app models.Applicationable, name string) (models.PasswordCredentialable, error)
- func GetSecretCreateRequestBody(config provider.AppConfig) *applications.ItemAddPasswordPostRequestBody
- func IsInvalidConfig(err error) bool
- func IsNotFound(err error) bool
- func IsRequestFailed(err error) bool
- func PrintOdataError(err error) string
- func ProviderScope() []string
- type Azure
- func (a *Azure) CleanCredentialsForAuthenticatedApp(config provider.AppConfig) error
- func (a *Azure) CreateOrUpdateApp(config provider.AppConfig, ctx context.Context, oldConnector dex.Connector) (provider.ProviderApp, error)
- func (a *Azure) CreateOrUpdateSecret(id string, config provider.AppConfig, ctx context.Context, oldSecret string, ...) (provider.ProviderSecret, error)
- func (a *Azure) DeleteApp(name string, ctx context.Context) error
- func (a *Azure) DeleteAuthenticatedApp(config provider.AppConfig) error
- func (a *Azure) DeleteSecret(ctx context.Context, secretID *uuid.UUID, appID string) error
- func (a *Azure) GetApp(name string) (models.Applicationable, error)
- func (a *Azure) GetAppID(name string) (string, error)
- func (a *Azure) GetCredentialsForAuthenticatedApp(config provider.AppConfig) (map[string]string, error)
- func (a *Azure) GetName() string
- func (a *Azure) GetOwner() string
- func (a *Azure) GetProviderName() string
- func (a *Azure) GetType() string
- type Config
Constants ¶
View Source
const ( ProviderName = "ad" ProviderDisplayName = "Azure AD" ProviderConnectorType = "microsoft" TenantIDKey = "tenant-id" ClientIDKey = "client-id" ClientSecretKey = "client-secret" PermissionType = "Scope" DefaultName = "giantswarm-dex" Claim = "groups" Audience = "AzureADMyOrg" DexOperatorName = "dex-operator" )
Variables ¶
This section is empty.
Functions ¶
func GetAllAppsContainingRequestConfig ¶ added in v0.5.0
func GetAllAppsContainingRequestConfig(name string) *applications.ApplicationsRequestBuilderGetRequestConfiguration
func GetAppGetRequestConfig ¶
func GetAppGetRequestConfig(name string) *applications.ApplicationsRequestBuilderGetRequestConfiguration
func GetSecret ¶
func GetSecret(app models.Applicationable, name string) (models.PasswordCredentialable, error)
func GetSecretCreateRequestBody ¶
func GetSecretCreateRequestBody(config provider.AppConfig) *applications.ItemAddPasswordPostRequestBody
func IsInvalidConfig ¶
IsInvalidcConfig asserts invalidConfigError.
func IsRequestFailed ¶
IsRequestFailed asserts requestFailedError.
func PrintOdataError ¶
func ProviderScope ¶
func ProviderScope() []string
Types ¶
type Azure ¶
type Azure struct { Name string Description string Client *msgraphsdk.GraphServiceClient Log *logr.Logger Owner string TenantID string Type string // contains filtered or unexported fields }
func (*Azure) CleanCredentialsForAuthenticatedApp ¶
func (*Azure) CreateOrUpdateApp ¶
func (*Azure) CreateOrUpdateSecret ¶
func (*Azure) DeleteAuthenticatedApp ¶ added in v0.5.0
func (*Azure) DeleteSecret ¶
func (*Azure) GetCredentialsForAuthenticatedApp ¶
func (a *Azure) GetCredentialsForAuthenticatedApp(config provider.AppConfig) (map[string]string, error)
TODO improve output include new service principal creation
func (*Azure) GetProviderName ¶
Click to show internal directories.
Click to hide internal directories.