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
Branches
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ type Client struct { ...@@ -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 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: // A scope-oktról több infót itt találsz:
// https://git.sch.bme.hu/kszk/authsch/-/wikis/api // 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{ var conf = &oauth2.Config{
ClientID: ClientID, ClientID: ClientID,
ClientSecret: ClientSecret, ClientSecret: ClientSecret,
...@@ -28,7 +28,6 @@ func CreateClient(ClientID, ClientSecret string, Scopes []string, RedirectURL st ...@@ -28,7 +28,6 @@ func CreateClient(ClientID, ClientSecret string, Scopes []string, RedirectURL st
TokenURL: "https://auth.sch.bme.hu/oauth2/token", TokenURL: "https://auth.sch.bme.hu/oauth2/token",
AuthURL: "https://auth.sch.bme.hu/site/login", AuthURL: "https://auth.sch.bme.hu/site/login",
}, },
RedirectURL: RedirectURL,
} }
return Client{conf} return Client{conf}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment