feat: Improve oauth redirect (#303)

* fix: redirects after oauth can potentially misalign with server's actually hostname

* feat: remove `RedirectURL` from oauth config, as it should checked by provider rather than client

* feat: align oauth endpoint with the hostname in requests
This commit is contained in:
k3-cat authored and GitHub committed 2025-07-04 14:30:07 +08:00
1 parent af4813db30
commit 73a8461a2d
11 files changed
+40 -57

No files matched your search

+5 -4
View File
@@ -2,6 +2,10 @@ package main
import (
"fmt"
"os"
"strconv"
"time"
"github.com/go-redis/redis/v8"
"github.com/lejianwen/rustdesk-api/v2/config"
"github.com/lejianwen/rustdesk-api/v2/global"
@@ -17,9 +21,6 @@ import (
"github.com/lejianwen/rustdesk-api/v2/utils"
"github.com/nicksnyder/go-i18n/v2/i18n"
"github.com/spf13/cobra"
"os"
"strconv"
"time"
)
// @title 管理系统API
@@ -210,7 +211,7 @@ func InitGlobal() {
}
func DatabaseAutoUpdate() {
version := 262
version := 263
db := global.DB