Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureServicePrincipalHelper ¶
type AzureServicePrincipalHelper struct {
// contains filtered or unexported fields
}
func NewAzureServicePrincipalHelper ¶
func NewAzureServicePrincipalHelper(credential azcore.TokenCredential) (*AzureServicePrincipalHelper, error)
func (*AzureServicePrincipalHelper) GetServicePrincipal ¶
func (g *AzureServicePrincipalHelper) GetServicePrincipal(ctx context.Context, clientId string) (*ServicePrincipal, error)
GetServicePrincipalDetails resolves a service principal appId and fetches the backing resource details as either a managed identity or app registration.
type FederatedCredential ¶
type ServicePrincipal ¶
type ServicePrincipal struct {
ClientID string `json:"clientID"`
Type ServicePrincipalType `json:"type"`
DisplayName string `json:"displayName"`
SubscriptionID string `json:"subscriptionID,omitempty"`
ResourceGroup string `json:"resourceGroup,omitempty"`
FederatedCredentials []FederatedCredential `json:"existingFederatedCredentials"`
}
type ServicePrincipalType ¶
type ServicePrincipalType string
const ( ManagedIdentity ServicePrincipalType = "managed-identity" AppRegistration ServicePrincipalType = "app-registration" )
Click to show internal directories.
Click to hide internal directories.