From b430d75f76f06426df0912a278cbefbf7e74ec7b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mikl=C3=B3s=20T=C3=B3th?= <tothmiklostibor@gmail.com>
Date: Thu, 12 May 2022 20:29:44 +0200
Subject: [PATCH] Remove RedirectURL as AuthSCH doesn't support it

---
 auth.go | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/auth.go b/auth.go
index c3eda1c..1a6932c 100644
--- a/auth.go
+++ b/auth.go
@@ -19,7 +19,7 @@ type Client struct {
 // A CreateClient létrehoz egy klienst. Meg kell adni az AuthSCH-n fejlesztői konzolon kapott azonosítót és kulcsot, illetve a kért scope-okat
 // A scope-oktról több infót itt találsz:
 // https://git.sch.bme.hu/kszk/authsch/-/wikis/api
-func CreateClient(ClientID, ClientSecret string, Scopes []string, RedirectURL string) Client {
+func CreateClient(ClientID, ClientSecret string, Scopes []string) Client {
 	var conf = &oauth2.Config{
 		ClientID:     ClientID,
 		ClientSecret: ClientSecret,
@@ -28,7 +28,6 @@ func CreateClient(ClientID, ClientSecret string, Scopes []string, RedirectURL st
 			TokenURL: "https://auth.sch.bme.hu/oauth2/token",
 			AuthURL:  "https://auth.sch.bme.hu/site/login",
 		},
-		RedirectURL: RedirectURL,
 	}
 
 	return Client{conf}
-- 
GitLab