...

Package auth

import "github.com/Azure/azure-sdk-for-go/services/keyvault/auth"
Overview
Index

Overview ▾

func NewAuthorizerFromCLI

func NewAuthorizerFromCLI() (autorest.Authorizer, error)

NewAuthorizerFromCLI creates a keyvault dataplane Authorizer configured from Azure CLI 2.0 for local development scenarios.

func NewAuthorizerFromEnvironment

func NewAuthorizerFromEnvironment() (autorest.Authorizer, error)

NewAuthorizerFromEnvironment creates a keyvault dataplane Authorizer configured from environment variables in the order: 1. Client credentials 2. Client certificate 3. Username password 4. MSI

func NewAuthorizerFromFile

func NewAuthorizerFromFile() (autorest.Authorizer, error)

NewAuthorizerFromFile creates a keyvault dataplane Authorizer configured from a configuration file. The path to the configuration file must be specified in the AZURE_AUTH_LOCATION environment variable.