mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 18:35:51 +02:00
fix(casdoor): use certificate path instead to address env issue #584
This commit is contained in:
parent
4d1adac8c4
commit
20e55e715d
9 changed files with 62 additions and 52 deletions
|
@ -44,7 +44,7 @@ func TestSetup(t *testing.T) {
|
|||
_ = os.Setenv("NGINX_UI_CASDOOR_ENDPOINT", "https://casdoor.example.com")
|
||||
_ = os.Setenv("NGINX_UI_CASDOOR_CLIENT_ID", "clientId")
|
||||
_ = os.Setenv("NGINX_UI_CASDOOR_CLIENT_SECRET", "clientSecret")
|
||||
_ = os.Setenv("NGINX_UI_CASDOOR_CERTIFICATE", "cert.pem")
|
||||
_ = os.Setenv("NGINX_UI_CASDOOR_CERTIFICATE_PATH", "cert.pem")
|
||||
_ = os.Setenv("NGINX_UI_CASDOOR_ORGANIZATION", "org1")
|
||||
_ = os.Setenv("NGINX_UI_CASDOOR_APPLICATION", "app1")
|
||||
_ = os.Setenv("NGINX_UI_CASDOOR_REDIRECT_URI", "https://redirect.example.com")
|
||||
|
@ -93,7 +93,7 @@ func TestSetup(t *testing.T) {
|
|||
assert.Equal(t, "https://casdoor.example.com", CasdoorSettings.Endpoint)
|
||||
assert.Equal(t, "clientId", CasdoorSettings.ClientId)
|
||||
assert.Equal(t, "clientSecret", CasdoorSettings.ClientSecret)
|
||||
assert.Equal(t, "cert.pem", CasdoorSettings.Certificate)
|
||||
assert.Equal(t, "cert.pem", CasdoorSettings.CertificatePath)
|
||||
assert.Equal(t, "org1", CasdoorSettings.Organization)
|
||||
assert.Equal(t, "app1", CasdoorSettings.Application)
|
||||
assert.Equal(t, "https://redirect.example.com", CasdoorSettings.RedirectUri)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue