ExAzureCore.Auth.Errors.AzureAdStsError exception (ex_azure_core v0.2.0)

Copy Markdown

Azure AD Security Token Service error with specific AADSTS error code handling.

Summary

Functions

Handles Azure AD specific error responses.

Functions

exception(args)

@spec exception(opts :: Keyword.t()) :: %ExAzureCore.Auth.Errors.AzureAdStsError{
  __exception__: term(),
  bread_crumbs: term(),
  class: term(),
  description: term(),
  error_code: term(),
  path: term(),
  splode: term(),
  stacktrace: term(),
  type: term(),
  vars: term()
}

Create an Elixir.ExAzureCore.Auth.Errors.AzureAdStsError without raising it.

Keys

  • :error_code
  • :description
  • :type

handle_error(error_response)

Handles Azure AD specific error responses.