Skip to content
Snippets Groups Projects
Commit b430d75f authored by Tóth Miklós Tibor's avatar Tóth Miklós Tibor :shrug:
Browse files

Remove RedirectURL as AuthSCH doesn't support it

parent 80884323
No related branches found
No related tags found
No related merge requests found
......@@ -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}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment