refactor(openid): use pkce implementation from golang.org/x/oauth2

This commit is contained in:
Trong Huu Nguyen
2023-10-10 10:18:01 +02:00
parent 4f722d9041
commit af6642fe90
17 changed files with 152 additions and 223 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ func (s *Standalone) Login(w http.ResponseWriter, r *http.Request) {
"redirect_after_login": canonicalRedirect,
}
mw.LogEntryFrom(r).WithFields(fields).Info("login: redirecting to identity provider")
http.Redirect(w, r, login.AuthCodeURL(), http.StatusFound)
http.Redirect(w, r, login.AuthCodeURL, http.StatusFound)
}
func (s *Standalone) LoginCallback(w http.ResponseWriter, r *http.Request) {