From 689a57ec4a444f8233fe2e5ec7ceb0903218218d Mon Sep 17 00:00:00 2001 From: Max Resnick Date: Fri, 14 Aug 2020 23:13:41 -0700 Subject: feat: working login gauth --- internal/test/helpers.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 internal/test/helpers.go (limited to 'internal/test/helpers.go') diff --git a/internal/test/helpers.go b/internal/test/helpers.go new file mode 100644 index 0000000..91fcbdc --- /dev/null +++ b/internal/test/helpers.go @@ -0,0 +1,14 @@ +package testhelper + +import ( + "golang.org/x/oauth2" +) + +func NewConf(url string) *oauth2.Config { + return &oauth2.Config{ + ClientID: "CLIENT_ID", + ClientSecret: "CLIENT_SECRET", + RedirectURL: "REDIRECT_URL", + Scopes: []string{"scope1", "scope2"}, + } +} -- cgit v1.2.3