Skip to content

Suggestion for JSON authentication responses #8

@samfrench

Description

@samfrench
  • Do not use the issues tracker for help or support (try Elixir Forum, Slack, IRC, etc.)
  • Questions about how to contribute are fine.

Environment

  • Elixir & Erlang versions (elixir --version):
  • ExAws version mix deps |grep ex_aws
  • HTTP client version. IE for hackney do mix deps | grep hackney

Current behavior

Currently, the STS responses are in XML which is then parsed with SweetXML.

https://github.com/ex-aws/ex_aws_sts/blob/master/lib/ex_aws/sts/parsers.ex

When adding an accept header of "application/json" to the request, a JSON response is returned from the assume_role service. I am not sure if this is applicable to all of the endpoints used in this package.

Expected behavior

Is there any thought about using JSON, or allowing JSON to be requested? This would need another parser as these are all XML based, but this would allow for the dependency of SweetXML to only be used when the service only provides XML.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions