Fixed build error after merge

- Fixed buid error in new merge for Oauth2
- Updated version no.
- Optimized css in sso page
This commit is contained in:
Toby Chui 2025-06-07 12:20:09 +08:00
parent f0fa71c5b4
commit 0e74ff69c3
4 changed files with 6 additions and 4 deletions

View File

@ -44,7 +44,7 @@ import (
const ( const (
/* Build Constants */ /* Build Constants */
SYSTEM_NAME = "Zoraxy" SYSTEM_NAME = "Zoraxy"
SYSTEM_VERSION = "3.2.2" SYSTEM_VERSION = "3.2.3"
DEVELOPMENT_BUILD = false DEVELOPMENT_BUILD = false
/* System Constants */ /* System Constants */

View File

@ -46,7 +46,7 @@ func handleAuthProviderRouting(sep *ProxyEndpoint, w http.ResponseWriter, r *htt
h.Parent.Option.Logger.LogHTTPRequest(r, "host-http", 401, requestHostname, "") h.Parent.Option.Logger.LogHTTPRequest(r, "host-http", 401, requestHostname, "")
return true return true
} }
} else if sep.AuthenticationProvider.AuthMethod == AuthMethodOAuth2 { case AuthMethodOauth2:
err := h.handleOAuth2Auth(w, r) err := h.handleOAuth2Auth(w, r)
if err != nil { if err != nil {
h.Parent.Option.Logger.LogHTTPRequest(r, "host-http", 401, requestHostname, "") h.Parent.Option.Logger.LogHTTPRequest(r, "host-http", 401, requestHostname, "")

View File

@ -587,7 +587,7 @@ func ReverseProxyHandleEditEndpoint(w http.ResponseWriter, r *http.Request) {
} else if authProviderType == 2 { } else if authProviderType == 2 {
newProxyEndpoint.AuthenticationProvider.AuthMethod = dynamicproxy.AuthMethodForward newProxyEndpoint.AuthenticationProvider.AuthMethod = dynamicproxy.AuthMethodForward
} else if authProviderType == 3 { } else if authProviderType == 3 {
newProxyEndpoint.AuthenticationProvider.AuthMethod = dynamicproxy.AuthMethodOAuth2 newProxyEndpoint.AuthenticationProvider.AuthMethod = dynamicproxy.AuthMethodOauth2
} else { } else {
newProxyEndpoint.AuthenticationProvider.AuthMethod = dynamicproxy.AuthMethodNone newProxyEndpoint.AuthenticationProvider.AuthMethod = dynamicproxy.AuthMethodNone
} }

View File

@ -1,4 +1,4 @@
<div class="standardContainer"> <div class="sso standardContainer">
<div class="ui basic segment"> <div class="ui basic segment">
<h2>SSO</h2> <h2>SSO</h2>
<p>Single Sign-On (SSO) and authentication providers settings </p> <p>Single Sign-On (SSO) and authentication providers settings </p>
@ -253,4 +253,6 @@
}); });
}); });
/* Bind UI events */
$(".sso .advanceSettings").accordion();
</script> </script>