GithubHelp home page GithubHelp logo

regskin's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

regskin's Issues

Add support for Docker Registry 2.0 token auth

Use case

We are using docker-registry with docker_auth to provide an "anonymous pull, authenticated push" workflow. We would like to also provide a UI to help anonymous users browse things.

The way it works under the covers is that the auth service is configured to simply always grant an access token for a pull request, and the client provides the bearer token with all requests. It would be highly useful regskin was able to use the token-based workflow as well.

Basic workflow

The way the Docker clients perform the transaction is essentially:

  • Attempt to fetch a "sentinel" URL (usually /v2), get an HTTP 401 back
  • Parse the www-authenticate header, pull out the fields: realm, scope, service
  • Run something akin to curl $realm -d 'scope=$scope' -d 'service=$service'
  • The JSON response of that call will be two copies of the bearer token to use, pick one
  • Resubmit the original request (and all subsequent requests) with the Authorization: Bearer $token header set

The full spec is here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.