swift-server / swift-server/async-http-client

It would be appreciated and useful to have a mechanism within AHC to handle Digest Auth

Open
#687 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
1.1k
Forks
156
PR merge metrics
No merged PRs in 30d

Description

Issue

Some HTTP requests require authentication. Basic auth is easy for the user to implement, but rarely used (I assume). More frequently, Digest authentication is required.

Digest Auth is more complex to implement and it would be useful for users of the package if it provided an implementation for this form of authentication. (This may require a dependency upon swift-crypto due to use of MD5 hashing.)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing AHC's existing Basic authentication support and the HTTP request flow. Define how Digest authentication should work for package users, including the possible swift-crypto dependency for MD5 hashing. Done means AHC can handle HTTP requests requiring Digest Auth with appropriate coverage.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
api, authentication
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.