icholy
Repos
176
Followers
163
Following
117

Convert terminal recordings to animated gifs

C
3734
241

Brainfuck Compiler

15
1

A low level package for writing rtsp servers and clients

8
1

C Compiler

2
0

Go HTTP Digest Access Authentication

23
5

Go tool for major version upgrades

76
3

Events

use defer to clean up error return

Created at 4 days ago

implement CloseIdleConnections

Created at 4 days ago
issue comment
If there's no challenge, return the response

Alternatively, you cloud also overwrite Transport.FindChallenge to return your own error value.

var ErrNoChallenge = errors.New("no challenge")

func main() {
	t := &Transport{
		FindChallenge: func(h http.Header) (*Challenge, error) {
			chal, err := digest.FindChallenge(h)
			if err == digest.ErrNoChallenge {
				err = ErrNoChallenge
			}
			return chal, err
		}
	}
}

Created at 4 days ago
pull request opened
If there's no challenge, return the response

@dsonck92 I want to revisit the comment I made in your PR. I think the transport should be returning the response if there's no digest challenge. I'm pinging you because it would require you to change your RetryTransport implementation to check for res.StatusCode == http.StatusUnauthorized instead of errors.Is(err, digest.ErrNoChallenge).

Created at 4 days ago
create tag
icholy create tag v0.1.19
Created at 4 days ago

Revert "return the response on save errors"

This reverts commit f711ed0706d3b39d32d13319a2d11c752db0d342.

Created at 4 days ago

update comment

Created at 4 days ago
create tag
icholy create tag v0.1.18
Created at 4 days ago

return the response on save errors

Created at 4 days ago
create tag
icholy create tag v0.1.17
Created at 4 days ago

add NoReuse

Created at 4 days ago
create branch
icholy create branch no-error-on-missing-challenge
Created at 4 days ago

formatting

Created at 4 days ago

add support for auth-int qop

Created at 4 days ago

put the happy path first

Created at 4 days ago

refactor cache updates

Created at 4 days ago
issue comment
Resolver does not reload variable meta

Is it possible to use this api to add items to an array?

Created at 6 days ago

name cached to cchal

Created at 1 week ago

add 'digest: ' prefix to exported error

Created at 1 week ago

pass the sliced string expression directly to Parse

Created at 1 week ago
issue comment
Add fallback method for challenge

I've tagged v0.1.16 with these changes.

Created at 1 week ago
create tag
icholy create tag v0.1.16
Created at 1 week ago

test challenge forgetting logic

Created at 1 week ago

don't skip live tests

Created at 1 week ago
issue comment
Add fallback method for challenge

Thanks for the contribution!

Created at 1 week ago

Expose ErrNoChallenge when no challenge could be found

  • When a 401 response does not contain a valid challenge, return a specific exported error to let upstream deal with this.
  • Forget credentials when a failure happens during save as it indicates the credentials are not valid anymore.

Merge pull request #6 from dsonck92/add-fallback-authenticate-mode

Add fallback method for challenge

Created at 1 week ago
pull request closed
Add fallback method for challenge

If a bad implementation decides to not return a WWW-Authenticate on an expired credential, forget the cached challenge and start from scratch.

Created at 1 week ago