class ADAL::ErrorResponse

A token response that contains an error code.

Constants

OAUTH_FIELDS

Public Class Methods

new(fields = {}) click to toggle source

Constructs a Error from a collection of fields returned from a token endpoint.

@param Hash

# File lib/adal/token_response.rb, line 138
def initialize(fields = {})
  fields.each { |k, v| instance_variable_set("@#{k}", v) }
  logger.error("Parsed an ErrorResponse with error: #{@error} and error " \
               "description: #{@error_description}.")
end