loginsrv

Unnamed repository; edit this file 'description' to name the repository.
git clone git@jamesshield.xyz:repos/loginsrv.git
Log | Files | Refs | README | LICENSE

commit 5ac72cf332a3bca1770dda16c48b93fb5bea06a5
parent 23bd16e1ae8f7c8b8442b0119e7d4a25a7ae9cf9
Author: Sebastian Mancke <sebastian.mancke@snabble.io>
Date:   Wed, 26 Dec 2018 22:31:51 +0100

Merge pull request #84 from irony/patch-1

Updated with example on Google auth
Diffstat:
Mcaddy/README.md | 20++++++++++++++++++++
1 file changed, 20 insertions(+), 0 deletions(-)

diff --git a/caddy/README.md b/caddy/README.md @@ -31,6 +31,7 @@ login { osiam endpoint=http://localhost:8080,client_id=example-client,client_secret=secret htpasswd file=users github client_id=xxx,client_secret=yyy + google client_id=xxx,client_secret=yyy,scope=email } ``` @@ -72,3 +73,22 @@ login { redirect_host_file ../redirect_hosts.txt } ``` + +### Example caddyfile with Google login + +``` +127.0.0.1 + +root {$PWD} +browse + +jwt { + path / + allow domain example.com +} + +login { + google client_id=xxx,client_secret=yyy,scope=email +} +``` +Note: You must enable Google Plus API in Google API Console