Skip to content
Mercurial support for PKCE / SSO
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docker
docs/img
federated_mercurial_extension
hgext/client
tests
LICENSE
MANIFEST.in
Makefile
README.md
requirements_dev.txt
setup.cfg
setup.py

README.md

federated-mercurial

CLI application that handled federated authentication for Mercurial users

Flow diagram

Example implementation that this repository creates. The HTTPS access proxy and the HGWeb setup can be started with docker compose (make compose-run)

Flow diagram

Sequence diagram

Sequence diagram

Run a test hgweb + Access proxy

$ make docker-build
$ make compose-run

By default it will listen on http://localhost:8000, with the port exposed, a default test repo and no SSL (DO NOT USE THIS FOR ANYTHING ELSE THAN LOCAL TESTING)

Test HTTP pushes

$ hg clone http://localhost:8000/test
$ cd test
$ touch test
$ hg add test
$ hg commit test
$ hg push http://localhost:8000/test
pushing to http://localhost:8000/test
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 1 changesets with 1 changes to 1 files
You can’t perform that action at this time.