Add OIDC browser approval and PKCE session handoff for pages CLI
This commit is contained in:
1 parent
2af87b4f58
commit
60f5fb1881
18 files changed
+1397
-23
No files matched your search
@@ -101,6 +101,10 @@ func (s *Server) authTokenFromRequest(r *http.Request) string {
|
||||
func (s *Server) handleAuth(w http.ResponseWriter, r *http.Request) {
|
||||
action := strings.Trim(strings.TrimPrefix(r.URL.Path, "/_/auth"), "/")
|
||||
domainUUID := s.domainUUIDForRequest(r)
|
||||
if strings.HasPrefix(action, "cli/") {
|
||||
s.handleCLIAuth(w, r, action)
|
||||
return
|
||||
}
|
||||
switch action {
|
||||
case "wallpaper":
|
||||
s.handleAuthWallpaper(w, r)
|
||||
|
||||
Reference in new issue
Block a user