An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

certauth
========
[![Go Report Card](https://goreportcard.com/badge/github.com/pantheon-systems/go-certauth)](https://goreportcard.com/report/github.com/pantheon-systems/go-certauth)
[![Unsupported](https://img.shields.io/badge/Pantheon-Unsupported-yellow?logo=pantheon&color=FFDC28)](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)