Skip to content

raksonibs/httpdigest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Httpdigest

Implements HTTP digest authentication by returning an Authorization header given a WWW-Authenticate header, username, password, and path. Currently only implements the "auth" type not the "auth-int" digest type.

{:ok,
  %HTTPoison.Response{body: _,
  headers: headers, status_code: 401}} = HTTPoison.get(url)

authorization = Httpdigest.create_header(headers, "username", "password", path)
{:ok,
  %HTTPoison.Response{body: _,
  headers: _, status_code: 200}} = HTTPoison.get(url, authorization)

Installation

If available in Hex, the package can be installed as:

  1. Add httpdigest to your list of dependencies in mix.exs:

    def deps do [{:httpdigest, "~> 0.0.1"}] end

  2. Ensure httpdigest is started before your application:

    def application do [applications: [:httpdigest]] end

About

Handles http digest auth using HTTPoison

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Elixir 100.0%