mxschmitt / golang-url-shortener

URL Shortener written in Golang using Bolt DB or Redis. Provides features such as Deletion, Expiration, OAuth and is of course Dockerizable.
https://so.sh0rt.cat
MIT License
283 stars 84 forks source link

support using an identity-aware proxy for auth #101

Closed memory closed 6 years ago

memory commented 6 years ago

Rather than directly fetching and verifying OAuth assertions, assume that the app is running behind an authenticating proxy, and trust headers that are set by the proxy.

See for example and reference:

https://cloud.google.com/iap/docs/identity-howto https://cloud.google.com/beyondcorp/

coveralls commented 6 years ago

Pull Request Test Coverage Report for Build 351


Changes Missing Coverage Covered Lines Changed/Added Lines %
handlers/handlers.go 8 17 47.06%
handlers/auth.go 13 66 19.7%
<!-- Total: 21 83 25.3% -->
Files with Coverage Reduction New Missed Lines %
handlers/handlers.go 1 73.68%
<!-- Total: 1 -->
Totals Coverage Status
Change from base Build 349: -1.4%
Covered Lines: 421
Relevant Lines: 1152

💛 - Coveralls
mxschmitt commented 6 years ago

Great! 👍