feat: add external url for casdoor #603

This commit is contained in:
Jacky 2024-12-15 16:54:30 +08:00
parent 6f9046485b
commit 835349c33f
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
5 changed files with 27 additions and 10 deletions

View file

@ -2,6 +2,7 @@ package settings
type Casdoor struct {
Endpoint string `json:"endpoint" protected:"true"`
ExternalUrl string `json:"external_url" protected:"true"`
ClientId string `json:"client_id" protected:"true"`
ClientSecret string `json:"client_secret" protected:"true"`
CertificatePath string `json:"certificate_path" protected:"true"`
@ -10,12 +11,4 @@ type Casdoor struct {
RedirectUri string `json:"redirect_uri" protected:"true"`
}
var CasdoorSettings = &Casdoor{
Endpoint: "",
ClientId: "",
ClientSecret: "",
CertificatePath: "",
Organization: "",
Application: "",
RedirectUri: "",
}
var CasdoorSettings = &Casdoor{}