diff options
author | Kevin Lyda <kevin@ie.suberic.net> | 2017-01-22 23:25:20 +0000 |
---|---|---|
committer | Niall Sheridan <nsheridan@gmail.com> | 2017-01-25 00:52:02 +0000 |
commit | 17d06d3003a796c76c7c5d8bfb0cab0aeb1bbf8f (patch) | |
tree | def71020382848043027bd870cf6bf6fe86763d9 /cmd/cashierd | |
parent | f635033e3e953e74d67b76a520c9760786330af5 (diff) |
Create a gitlab auth source.
Defaults to public gitlab.com, but easily redirected to self-hosted
installation.
Diffstat (limited to 'cmd/cashierd')
-rw-r--r-- | cmd/cashierd/main.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/cashierd/main.go b/cmd/cashierd/main.go index 95cf194..7277773 100644 --- a/cmd/cashierd/main.go +++ b/cmd/cashierd/main.go @@ -30,6 +30,7 @@ import ( "github.com/nsheridan/cashier/lib" "github.com/nsheridan/cashier/server/auth" "github.com/nsheridan/cashier/server/auth/github" + "github.com/nsheridan/cashier/server/auth/gitlab" "github.com/nsheridan/cashier/server/auth/google" "github.com/nsheridan/cashier/server/config" "github.com/nsheridan/cashier/server/signer" @@ -379,6 +380,8 @@ func main() { authprovider, err = google.New(conf.Auth) case "github": authprovider, err = github.New(conf.Auth) + case "gitlab": + authprovider, err = gitlab.New(conf.Auth) default: log.Fatalf("Unknown provider %s\n", conf.Auth.Provider) } |