Commit graph

7 commits

Author SHA1 Message Date
Jessica Tracy 32589e90be Passing context (#163)
* passing context in layer calls

* more contexting

* clair folder and context in handlers

* fixed token transport to reuse request context

* tests

* taking out context pass in server handlers
2018-12-29 12:09:10 -05:00
Pirmin Tapken 56104f3f9b Fix token transport memory leak (#165)
* Test for TokenTransport proving memory leak

* Fix memory leak on wrong auth challenge header

* Add test for memory leak during authentication

The body of the first request must be closed before doing the request to
the authentication service

* Fix memory leak during authentication
2018-12-11 15:12:21 -05:00
Jess Frazelle 4a4d0e5d10
fix api;
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-11-14 10:18:18 -05:00
Jess Frazelle 3b848ce686
updates and fixes
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-11-14 10:09:47 -05:00
alexander zillion db513b737e add --auth-url parameter (#90) (#105)
Signed-off-by: Alex Zillion <alex@alexzillion.com>
2018-11-14 10:06:30 -05:00
Jamie 83c621c4a7 support 'access_token' for compatibility with OAuth 2.0 https://docs.docker.com/registry/spec/auth/token/#requesting-a-token (#124) 2018-11-14 10:01:36 -05:00
Pat Gavlin 65b2c0329d Use a distinguished error value for basic auth. (#120)
Rather than returning an error that requires pattern-matching from
`parseChallenge` when the challenge header requires basic
authentication, return a distinguished error value. This makes checking
for this error a bit easier.

This commit also updates the check in `r.Headers` to use the new error
value and adds a couple of regression tests.
2018-07-26 14:13:58 -07:00