diff --git a/backend/go-app/go.mod b/backend/go-app/go.mod
index e22ce748..05a88544 100644
--- a/backend/go-app/go.mod
+++ b/backend/go-app/go.mod
@@ -2,7 +2,7 @@ module main
go 1.16
-//replace github.com/shuffle/shuffle-shared => ../../../shuffle-shared
+replace github.com/shuffle/shuffle-shared => ../../../shuffle-shared
//replace github.com/frikky/kin-openapi => ../../../../git/kin-openapi
//replace github.com/frikky/go-elasticsearch => ../../../../git/go-elasticsearch
@@ -24,7 +24,7 @@ require (
github.com/h2non/filetype v1.1.3
github.com/nirasan/go-oauth-pkce-code-verifier v0.0.0-20170819232839-0fbfe93532da // indirect
github.com/satori/go.uuid v1.2.0
- github.com/shuffle/shuffle-shared v0.1.94
+ github.com/shuffle/shuffle-shared v0.1.95
go4.org v0.0.0-20201209231011-d4a079459e60 // indirect
golang.org/x/crypto v0.0.0-20220112180741-5e0467b6c7ce
google.golang.org/api v0.65.0
diff --git a/backend/go-app/main.go b/backend/go-app/main.go
index c8b147a5..92c67f19 100644
--- a/backend/go-app/main.go
+++ b/backend/go-app/main.go
@@ -1235,7 +1235,14 @@ func checkAdminLogin(resp http.ResponseWriter, request *http.Request) {
//log.Printf("[DEBUG] Got challenge value %s (pre state)", codeChallenge)
- redirectUrl := url.QueryEscape("http://localhost:5001/api/v1/login_openid")
+ // https://192.168.55.222:3443/api/v1/login_openid
+ //location := strings.Split(request.URL.String(), "/")
+ //redirectUrl := url.QueryEscape("http://localhost:5001/api/v1/login_openid")
+ redirectUrl := url.QueryEscape(fmt.Sprintf("http://%s/api/v1/login_openid", request.Host))
+ if strings.Contains(request.Host, "shuffle-backend") && !strings.Contains(os.Getenv("BASE_URL"), "shuffle-backend") {
+ redirectUrl = url.QueryEscape(fmt.Sprintf("%s/api/v1/login_openid", os.Getenv("BASE_URL")))
+ }
+
state := base64.StdEncoding.EncodeToString([]byte(fmt.Sprintf("org=%s&challenge=%s&redirect=%s", org.Id, codeChallenge, redirectUrl)))
// has to happen after initial value is stored
@@ -1256,7 +1263,7 @@ func checkAdminLogin(resp http.ResponseWriter, request *http.Request) {
}
}
- log.Printf("[DEBUG] URL: %s", baseSSOUrl)
+ //log.Printf("[DEBUG] OpenID URL: %s", baseSSOUrl)
resp.WriteHeader(200)
resp.Write([]byte(fmt.Sprintf(`{"success": true, "reason": "redirect", "sso_url": "%s"}`, baseSSOUrl)))
}
diff --git a/docker-compose.yml b/docker-compose.yml
index 064d4a42..2b879729 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -16,7 +16,7 @@ services:
depends_on:
- backend
backend:
- #build: ./backend
+ build: ./backend
image: ghcr.io/frikky/shuffle-backend:nightly
container_name: shuffle-backend
hostname: ${BACKEND_HOSTNAME}
diff --git a/frontend/src/components/DetectionFramework.jsx b/frontend/src/components/DetectionFramework.jsx
index e66d09b7..2d7fc528 100644
--- a/frontend/src/components/DetectionFramework.jsx
+++ b/frontend/src/components/DetectionFramework.jsx
@@ -1499,7 +1499,7 @@ const Framework = (props) => {
/>
:
: null}
diff --git a/frontend/src/components/Oauth2Auth.jsx b/frontend/src/components/Oauth2Auth.jsx
index ef7384f7..65134fbf 100644
--- a/frontend/src/components/Oauth2Auth.jsx
+++ b/frontend/src/components/Oauth2Auth.jsx
@@ -517,6 +517,8 @@ const AuthenticationOauth2 = (props) => {
backgroundColor: theme.palette.inputColor,
color: "white",
padding: 5,
+ minWidth: 300,
+ maxWidth: 300,
}}
onChange={(e) => {
handleScopeChange(e)
@@ -542,7 +544,7 @@ const AuthenticationOauth2 = (props) => {
title={"Automatic Refresh (default: true)"}
placement="top"
>
- {
+ {
setOfflineAccess(!offlineAccess)
}}/>
diff --git a/frontend/src/components/OrgHeader.jsx b/frontend/src/components/OrgHeader.jsx
index 3d9f0136..a370af93 100644
--- a/frontend/src/components/OrgHeader.jsx
+++ b/frontend/src/components/OrgHeader.jsx
@@ -116,10 +116,10 @@ const OrgHeader = (props) => {
const [openidToken, setOpenidToken] = React.useState(
selectedOrganization.sso_config === undefined
? ""
- : selectedOrganization.sso_config.openid_token=== undefined ||
+ : selectedOrganization.sso_config.openid_token === undefined ||
selectedOrganization.sso_config.openid_token.length === 0
? ""
- : selectedOrganization.sso_config.openidtoken_
+ : selectedOrganization.sso_config.openid_token
)
const [file, setFile] = React.useState("");
diff --git a/frontend/src/views/Admin.jsx b/frontend/src/views/Admin.jsx
index 347d4568..81f1ea7b 100644
--- a/frontend/src/views/Admin.jsx
+++ b/frontend/src/views/Admin.jsx
@@ -1154,8 +1154,8 @@ const Admin = (props) => {
})
.then((respdata) => {
if (respdata.length === 0) {
- alert.error("Failed getting file");
- return;
+ alert.error("Failed getting file. Is it deleted?");
+ return;
}
var blob = new Blob([respdata], {
@@ -3101,12 +3101,12 @@ const Admin = (props) => {
{fileNamespaces !== undefined &&
fileNamespaces !== null &&
fileNamespaces.length > 1 ? (
-
- Namespace
+
+ File Category