Sebastian Mancke
c39a242d4a
fixed caddy readme
2018-01-09 23:59:35 +01:00
Sebastian Mancke
b230877149
redirect documentation and caddy demo
2018-01-09 23:55:55 +01:00
Sebastian Mancke
83ccded6f0
rename redirect config parameters
...
allow-redirects -> redirect
redirect-query-parameter -> redirect-query-parameter
check-referer-on-redirects -> redirect-check-referer
whitelist-domains-file -> redirect-host-file
2018-01-09 23:16:04 +01:00
Sebastian Mancke
ea40df699b
Overworked the dynamic redirect patch
...
* Reduced nesting in functions with early returns
* Some renamings
* Resolve whitelist path relative to caddy config
* Moved all redirect methods to redirect.go and redirect_test.go
* Only read the url direct from the parameter, if it is a post request
* Removed the parameter prevent-external-redirects, because it can be implicit assumed, when a whitelist is configured
2018-01-09 22:29:59 +01:00
luke.hopkins
d62ed493ba
fix typo
2017-11-29 14:41:28 +00:00
luke.hopkins
3474245879
don't reuse the deleteToken function but explicitly sdelete it like we set it
2017-11-29 14:40:16 +00:00
luke.hopkins
2217bfaddb
Remove forgotten spew
2017-11-23 16:40:57 +00:00
luke.hopkins
4ac03fe1b1
Merge branch 'master' of github.com:lhopki01/loginsrv
2017-11-23 16:37:06 +00:00
luke.hopkins
31a491062e
Fix merge conflict in README.md
2017-11-23 16:33:59 +00:00
luke.hopkins
63b850f2b5
preliminary implemntation of redirect logic
2017-11-23 16:30:01 +00:00
luke.hopkins
3f9fb92386
Allow for dynamic redirects using query parameters and cookies. Allow redirects to external domains by whitelist only. Check referer header before allowing a redirect. For https://github.com/tarent/loginsrv/issues/45
2017-11-23 16:24:55 +00:00
Sebastian Mancke and GitHub
fc82c689a6
Update README.md
...
Added Bitbucket in Provider List
2017-11-19 17:21:58 +01:00
Sebastian Mancke and GitHub
3bfcceea06
Update README.md
...
Added a Note to google Scope
2017-11-19 16:47:58 +01:00
luke.hopkins
dbba63f98e
preliminary implemntation of redirect logic
2017-11-17 17:43:53 +00:00
Sebastian Mancke and GitHub
0209158f5d
Merge pull request #59 from dobegor/patch-1
...
Update README.md to note about People API for Google
2017-11-17 16:54:38 +01:00
George Dobrovolsky and GitHub
13274fa97e
Update README.md to note about People API for Google
...
Note user that People API is required to use with Google OAuth 2. (#58 )
2017-11-17 17:42:20 +02:00
Sebastian Mancke
15fde6118a
removed test for {user} log, since it is not in caddy release, yet
v1.2.3
2017-11-14 21:51:16 +01:00
Sebastian Mancke
da2c6d759d
removed test for {user} log, since it is not in caddy release, yet
2017-11-14 21:48:45 +01:00
Sebastian Mancke
1c72f98de3
removed test for {user} log, since it is not in caddy release, yet
2017-11-14 21:38:01 +01:00
Sebastian Mancke and GitHub
aa943b53de
Merge pull request #56 from lhopki01/master
...
Fix issue with jwt secret defaulting to "random key" in caddy if not specified by JWT_SECRET
2017-11-14 20:15:03 +01:00
luke.hopkins
f3c6fb3c66
ensure consistent behaviour for environmental settings vs flags for LOGINSRV_JWT_SECRET
2017-11-14 16:19:57 +00:00
Sebastian Mancke and GitHub
4fe9c1b9bd
Merge pull request #55 from afdecastro879/master
...
#51 | Added Bitbucket Oauth2 support
2017-11-14 16:34:45 +01:00
Andres De Castro
b5e3999cd3
#51 | Make BitbucketUser struct private
2017-11-14 17:21:54 +02:00
luke.hopkins
bcbb58b210
set the default jwt secret to a random string
2017-11-14 14:04:48 +00:00
Andres De Castro
03e32cd9d9
Merge remote-tracking branch 'upstream/master'
2017-11-13 15:23:45 +02:00
Andres De Castro
8619e340c7
#51 | Removed assert import
2017-11-13 14:58:46 +02:00
Andres De Castro
c1420e98c2
#51 | Updated Readme.md
2017-11-13 14:47:13 +02:00
Andres De Castro
aa8743d345
#51 | Refactored name for getPrimaryEmailAddress auxiliary method
2017-11-13 14:46:45 +02:00
Andres De Castro
ceb1876417
#51 | Added tests for Bitbucket provider
2017-11-13 14:21:09 +02:00
Andres De Castro
0af761ece7
#51 | Adjusted documentation
2017-11-13 14:17:25 +02:00
Andres De Castro
8f91ebc345
#51 | Modified test to match the new bitbucket provider
2017-11-13 13:13:18 +02:00
Andres De Castro
032605f776
#51 | Added Pulling email information from the user using Bitbucket API
2017-11-13 13:12:43 +02:00
Sebastian Mancke
33a9bae99e
Check for replacement of the user in caddy handler.
2017-11-12 21:11:09 +01:00
Andres De Castro
f3078c0160
#51 | Added Bitbucket provider
2017-11-11 14:56:59 +02:00
magikstm
b3c9c9352e
add comments, minor correction and a test case
2017-11-10 00:25:35 -05:00
magikstm
8c99657f77
Minor correction for cross-platform filepath
2017-11-09 22:22:56 -05:00
magikstm
94bd65b2a7
go fmt and added some comments
2017-11-09 21:46:03 -05:00
magikstm
e272a7b640
Correct error in last commit
2017-11-09 01:30:58 -05:00
magikstm
36363aaae3
Add additional cookie validations
2017-11-09 01:22:30 -05:00
magikstm
4309067e07
Add a cookie with a valid token to test httpserver.NewReplacer
2017-11-09 00:48:12 -05:00
magikstm
fc5e3a317b
Add a test for /login
2017-11-09 00:09:14 -05:00
magikstm
924b0f569b
handler_test.go first try on a test
2017-11-08 23:58:33 -05:00
magikstm
727f8f1ebf
Caddy - Use {user} placeholder for logs #32
2017-11-07 22:15:17 -05:00
magikstm
46c165561f
Caddy - Use {user} placeholder for logs #32
2017-11-07 22:01:57 -05:00
Sebastian Mancke and GitHub
a4c2464c62
Merge pull request #49 from lhopki01/master
...
Fix issues with picture display
2017-10-23 10:42:41 +02:00
luke.hopkins
29cfa85464
strip parameters from image url since they are added later
2017-10-19 17:04:49 +01:00
luke.hopkins
d85b02c5cd
give a bit of of a margin so the button isn't right against the picture
2017-10-19 17:04:17 +01:00
Sebastian Mancke and GitHub
bec362a315
Merge pull request #48 from lhopki01/master
...
add domain to google oauth jwt
2017-10-18 17:32:18 +02:00
luke.hopkins
ea1aba9a24
add domain to google oauth jwt
2017-10-12 17:17:31 +01:00
Sebastian Mancke and GitHub
3b7bab5940
Merge pull request #47 from schnatterer/patch-1
...
Updates Caddy Readme to avoid deprecation warning
2017-10-07 18:32:40 +02:00