https://github.com/pantheon-systems/go-certauth
Go handlers and middleware to do client cert authentication.
https://github.com/pantheon-systems/go-certauth
go httprouter middleware platfrastructure sig-golang tls
Last synced: 9 months ago
JSON representation
Go handlers and middleware to do client cert authentication.
- Host: GitHub
- URL: https://github.com/pantheon-systems/go-certauth
- Owner: pantheon-systems
- License: mit
- Created: 2016-06-18T00:10:11.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-12-10T14:35:41.000Z (over 1 year ago)
- Last Synced: 2025-04-05T11:22:18.800Z (about 1 year ago)
- Topics: go, httprouter, middleware, platfrastructure, sig-golang, tls
- Language: Go
- Size: 95.7 KB
- Stars: 5
- Watchers: 54
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
certauth
========
[](https://goreportcard.com/report/github.com/pantheon-systems/go-certauth)
[](https://pantheon.io/docs/oss-support-levels#unsupported)
This package provides TLS certificate based authentication middleware. Our goal is
compatibility with `net/http`, `httprouter` and possibly other popular Go HTTP
routers.
Usage
-----
Examples of usage with various http router libs in the `./examples` directory.
Contributing
------------
@TODO: a couple steps
Acknowledgments
---------------
A big thanks to the https://github.com/unrolled/secure project whose approach to
writing middleware helped us figure out our approach to creating this project.
TODO
----
- [x] add support for github.com/julienschmidt/httprouter
- [x] add examples for using with net/http and httprouter
- [ ] makefile with gvt for deps now that we're depending on httprouter
- [ ] circle.yml
- [ ] add helper for compatibility with negroni (example: https://github.com/unrolled/secure/blob/v1/secure.go#L110-L111)