Documentation ¶
Index ¶
- func GetAuthProvider(userToken *TokenCredential) (*authentication.AzureIdentityAuthenticationProvider, error)
- func GetAuthURL(appClient confidential.Client, clientID string, redirectURI string, ...) (string, error)
- func GetClient(clientID string, tenantID string, authorityURL string, ...) (confidential.Client, error)
- func GetCredential(clientSecret string) (confidential.Credential, error)
- func GetGraphAdapter(provider *authentication.AzureIdentityAuthenticationProvider) (*msgraph.GraphRequestAdapter, error)
- func GetGraphClient(adapter *msgraph.GraphRequestAdapter) *msgraph.GraphServiceClient
- type Params
- type TokenCredential
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthProvider ¶
func GetAuthProvider(userToken *TokenCredential) (*authentication.AzureIdentityAuthenticationProvider, error)
func GetAuthURL ¶
func GetClient ¶
func GetClient(clientID string, tenantID string, authorityURL string, credential confidential.Credential) (confidential.Client, error)
func GetCredential ¶
func GetCredential(clientSecret string) (confidential.Credential, error)
func GetGraphAdapter ¶
func GetGraphAdapter(provider *authentication.AzureIdentityAuthenticationProvider) (*msgraph.GraphRequestAdapter, error)
func GetGraphClient ¶
func GetGraphClient(adapter *msgraph.GraphRequestAdapter) *msgraph.GraphServiceClient
Types ¶
type TokenCredential ¶
type TokenCredential struct {
// contains filtered or unexported fields
}
func (*TokenCredential) GetToken ¶
func (c *TokenCredential) GetToken(_ context.Context, _ policy.TokenRequestOptions) (azcore.AccessToken, error)
Click to show internal directories.
Click to hide internal directories.