http-client-digest_auth
Version, currently 0.4.06 versions
github.com/mamantoha/http-client-digest_auth
An implementation of RFC 2617 Digest Access Authentication for Crystal
Nothing has been indexed for 0.4.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
http-client-digest_auth:
github: mamantoha/http-client-digest_auth
version: ~> 0.4.0Then run:
shards installshard.yml
No shard.yml has been indexed for 0.4.0. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
HTTP::Client::DigestAuth
An implementation of RFC 2617 - Digest Access Authentication. At this time
this library does not drop in to HTTP::Client and can be used for with other HTTP
clients.
crest uses this shard to provide Digest Access Authentication support out of the box.
In order to use http-client-digest_auth you'll need to perform some request
wrangling on your own. See the class documentation at HTTP::Client::DigestAuth
for an example.
Ported from Ruby's net-http-digest_auth gem.
Installation
Add this to your application's shard.yml:
dependencies:
http-client-digest_auth:
github: mamantoha/http-client-digest_auth
Usage
require "http/client"
require "uri"
require "http-client-digest_auth"
url = "https://httpbin.org/digest-auth/auth/admin/passwd/MD5"
uri = URI.parse(url)
uri.user = "admin"
uri.password = "passwd"
client = HTTP::Client.new(uri)
response = client.get(uri.full_path)
# response is a 401 response with a WWW-Authenticate header
www_authenticate = response.headers["WWW-Authenticate"]
digest_auth = HTTP::Client::DigestAuth.new
auth = digest_auth.auth_header(uri, www_authenticate, "GET")
http_headers = HTTP::Headers.new
http_headers["Authorization"] = auth
# re-issue request with Authorization
response = client.get(uri.full_path, http_headers)
Contributing
- Fork it (https://github.com/mamantoha/http-client-digest_auth/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Anton Maminov - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.4.0- Tagged
- Jun 24, 2026
- Commit
6b81bb45cc12- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/mamantoha/http-client-digest_auth
Metadata
- Created
- Aug 16, 2026
- Updated
- Aug 16, 2026
- Synced
- Aug 16, 2026
- Versions
- 6