tech5usa / TLSential

A server for providing short-lived TLS certificates to all services within a firewall restricted network.
GNU General Public License v3.0
15 stars 2 forks source link

Add logout and csrf protection. #66

Closed d1str0 closed 4 years ago

d1str0 commented 4 years ago

This PR addresses the following issues:

Fixes #58

Context

Need a way to log out of the website. Also, no csrf was being used yet.

Approach

This adds a logout handler and also gorilla csrf.

Testing

Login, logout, try and hit /ui/dashboard while logged out, hit /ui/login while already logged in, etc.

Misc.

UI could use some help, @domshyra ;)