AzureSDK.Identity.Credential behaviour (Azure SDK v0.1.0)

Copy Markdown View Source

Behaviour for Azure credentials.

All credentials must implement sign_request/2 so they can plug into the shared AzureSDK pipeline.

Summary

Functions

Dispatches request signing to the credential implementation module.

Types

t()

@type t() :: struct()

Callbacks

sign_request(t, t)

@callback sign_request(t(), AzureSDK.Core.Request.t()) :: AzureSDK.Core.Request.t()

Functions

sign_request(credential, request)

@spec sign_request(t(), AzureSDK.Core.Request.t()) :: AzureSDK.Core.Request.t()

Dispatches request signing to the credential implementation module.