memory
f8086c7492
support using an identity-aware proxy for auth ( #101 )
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.
- add config support for an "authbackend" directive, supporting either
"oauth" or "proxy" as values; the "proxy" setting selects our new codepath
- add initProxyAuth and proxyAuthMiddleware methods to the Handler struct
- rename authMiddleWare to oAuthMiddleware in the Handler struct
- construct a faked auth.JWTClaims object when in proxy mode
- update Handler.handleAuthCheck() to return useful info in proxy mode
- add a fallback user icon for proxy mode
- implement check for proxy mode in index.js
See for example and reference:
https://cloud.google.com/iap/docs/identity-howto
https://cloud.google.com/beyondcorp/
8 years ago
Max Schmitt
122783a385
Changed maxibanki to new mxschmitt username
8 years ago
Max Schmitt
944f3e491f
Removed the bash info generation, now using ldflags
8 years ago
Max Schmitt
071c94b2d7
Abstracted boltdb as a storage interface ( fix #60 )
8 years ago
Max Schmitt
2e21c5d413
Refactored Frontend ( fix #51 )
8 years ago
Max Schmitt
ac3845c11e
Reworked the template loading ( fix #54 )
8 years ago
Max Schmitt
87c3ce5b1e
Integrated password protection for shortened links ( fix #30 )
8 years ago
Max Schmitt
70d8ddb5dc
Switched from viper to something selfmade: fix #44
8 years ago
Max Schmitt
ac05d6f036
Minor changes:
- Added recent shorted URLs listing
- Added visitor page of a shorted URL
#43
8 years ago
Max Schmitt
6a4eb7302f
Cleaned up code and integrated deletion handling: fix #10
8 years ago
Max Schmitt
437e314250
Integrated build infos into the binary: fix #37 and cleaned up
8 years ago
Max Schmitt
0d7a5e49e0
Aded show only the maintained oAuth providers in the frontend. Fix #41
8 years ago
Max Schmitt
3a7dde4223
- Added optional config file: fix #40
- Fixed go vet tests
- renamed config keys: fix #39
8 years ago
Max Schmitt
7b75be21e1
refactored main code
8 years ago
Max Schmitt
e5ac34903d
Cleaned up the oAuth stuff #23
8 years ago
Max Schmitt
547acee4fe
Fix #38
8 years ago
Max Schmitt
9857081695
Fix #36
8 years ago
Max Schmitt
3af1a1dae4
Fixed #31
8 years ago
Max Schmitt
dcfdeaa170
- removed overpowered schema generation
- fixed unit test bug
- moved most of the docu to the github wiki
8 years ago
Max Schmitt
58d77510b8
- fixed not working debug mode
- integrated logrus
8 years ago
Schmitt, Max
95a2a1707d
fixed broken CI build
8 years ago
Max Schmitt
90d9d383ff
added Makefile
8 years ago
Schmitt, Max
5ab925a9d9
Fixed unit tests 2/2
8 years ago
Schmitt, Max
c4dd39aae2
Fixed unit tests 1/2
8 years ago
Schmitt, Max
be42d5b70f
- added authentification
- removed service worker (maybe add it later)
- added embedding for the templates
- added embedding for the static files
8 years ago
Max Schmitt
6d7ec04974
Added #11
8 years ago
Max Schmitt
59a1cb3c1c
Enhanced oAuth stuff:
- improved syntax when only error is retuned
- refactored frontend
8 years ago
Schmitt, Max
dd338d8138
Refactored and added more oAuth stuff
8 years ago
Schmitt, Max
95143657ca
improved oAuth logic
8 years ago
Max Schmitt
d12032ed72
Added normal 404 handling for URLs which doen't exist
8 years ago
Max Schmitt
1e6728f460
Fixed broken unit test
8 years ago
Max Schmitt
54cde0244c
Minor changes:
- Switched the config to JSON
- Added Frontend
- Added fist oAuth parts
8 years ago
Max Schmitt
b445d33358
changed the IDLength to int instead of uint
8 years ago
Max Schmitt
aed25170a7
- updated handleInfo and handleAccess to the gin framework
8 years ago
Max Schmitt
1bba3034f8
changed create entry handler to the gin framework
8 years ago
Max Schmitt
fbcdad4c59
Added missing content-type checking to handleCreateJSON test
8 years ago
Max Schmitt
7f15943cb4
Added package synonyms
8 years ago
Max Schmitt
3ec2257880
- Removed that the IP of the creator will be shown in the info request
- improved README.md
8 years ago
Max Schmitt
e45d710df4
fixed naming to URL Shortener
8 years ago
Max Schmitt
38cd8445df
added configuration
8 years ago
Max Schmitt
0ae6e77864
Added unit test for handling the info call
8 years ago
Max Schmitt
961f6dac62
- added test for creating an entry via `application/x-www-form-urlencoded`
- added invalid url test for multipart form
- added missing check if the key in the form func exists
8 years ago
Max Schmitt
de7f54f921
Updated tests
8 years ago
Max Schmitt
6a6ad77490
Initial commit
8 years ago