Create README.md
1 file changed
tree: 0c03a7da6248016b0bd947a476518ce14fbfa121
  1. authorization.go
  2. digest_auth_client.go
  3. LICENSE.md
  4. README.md
  5. www_authenticate.go
README.md

go-http-digest-auth-client

Golang Http Digest Authentication Client

This client implements RFC7616 HTTP Digest Access Authentication and by now the basic features should work.

Usage

// import
import dac "github.com/xinsnake/go-http-digest-auth-client"

// create a new digest authentication request
dr := dac.NewRequest(userId, userId, method, endUri, payload)
response1, err := dr.Execute()

// check error, get response

// reuse the existing digest authentication request so no extra request is needed
dr.UpdateRequest(userId, userId, "PUT", endUri, string(buf.Bytes()))
response2, err := dr.Execute()

// check error, get response

Todos

  • Unit testing
  • Implement encoded username username*
  • Logging and debugging message