Added BASE_URL to .env
This commit is contained in:
@@ -30,6 +30,7 @@ SHUFFLE_FILE_LOCATION=./shuffle-files
|
|||||||
SHUFFLE_ENCRYPTION_MODIFIER=
|
SHUFFLE_ENCRYPTION_MODIFIER=
|
||||||
|
|
||||||
# Other configs
|
# Other configs
|
||||||
|
BASE_URL=http://shuffle-backend:5001
|
||||||
BACKEND_HOSTNAME=shuffle-backend
|
BACKEND_HOSTNAME=shuffle-backend
|
||||||
BACKEND_PORT=5001
|
BACKEND_PORT=5001
|
||||||
FRONTEND_PORT=3001
|
FRONTEND_PORT=3001
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
version: '3'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
frontend:
|
frontend:
|
||||||
build: ./frontend
|
#build: ./frontend
|
||||||
image: ghcr.io/frikky/shuffle-frontend:nightly
|
image: ghcr.io/frikky/shuffle-frontend:nightly
|
||||||
container_name: shuffle-frontend
|
container_name: shuffle-frontend
|
||||||
hostname: shuffle-frontend
|
hostname: shuffle-frontend
|
||||||
|
|||||||
@@ -58,9 +58,8 @@ const AuthenticationOauth2 = (props) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const authentication_url = authenticationType.token_uri
|
const authentication_url = authenticationType.token_uri
|
||||||
console.log("AUTH: ", authenticationType)
|
//console.log("AUTH: ", authenticationType)
|
||||||
|
//console.log("SCOPES2: ", resources)
|
||||||
console.log("SCOPES2: ", resources)
|
|
||||||
const redirectUri = `${window.location.protocol}//${window.location.host}/set_authentication`
|
const redirectUri = `${window.location.protocol}//${window.location.host}/set_authentication`
|
||||||
var state = `workflow_id%3D${workflow.id}%26reference_action_id%3d${selectedAction.app_id}%26app_name%3d${selectedAction.app_name}%26app_id%3d${selectedAction.app_id}%26app_version%3d${selectedAction.app_version}%26authentication_url%3d${authentication_url}%26scope%3d${resources}%26client_id%3d${client_id}%26client_secret%3d${client_secret}`
|
var state = `workflow_id%3D${workflow.id}%26reference_action_id%3d${selectedAction.app_id}%26app_name%3d${selectedAction.app_name}%26app_id%3d${selectedAction.app_id}%26app_version%3d${selectedAction.app_version}%26authentication_url%3d${authentication_url}%26scope%3d${resources}%26client_id%3d${client_id}%26client_secret%3d${client_secret}`
|
||||||
if (oauth_url !== undefined && oauth_url !== null && oauth_url.length > 0) {
|
if (oauth_url !== undefined && oauth_url !== null && oauth_url.length > 0) {
|
||||||
@@ -77,8 +76,8 @@ const AuthenticationOauth2 = (props) => {
|
|||||||
const url = `${authenticationType.redirect_uri}?client_id=${client_id}&redirect_uri=${redirectUri}&response_type=code&scope=${resources}&prompt=consent&state=${state}&access_type=offline`
|
const url = `${authenticationType.redirect_uri}?client_id=${client_id}&redirect_uri=${redirectUri}&response_type=code&scope=${resources}&prompt=consent&state=${state}&access_type=offline`
|
||||||
|
|
||||||
//const url = `https://accounts.zoho.com/oauth/v2/auth?response_type=code&client_id=${client_id}&scope=AaaServer.profile.Read&redirect_uri=${redirectUri}&prompt=consent`
|
//const url = `https://accounts.zoho.com/oauth/v2/auth?response_type=code&client_id=${client_id}&scope=AaaServer.profile.Read&redirect_uri=${redirectUri}&prompt=consent`
|
||||||
console.log("Full URI: ", url)
|
//console.log("Full URI: ", url)
|
||||||
console.log("Redirect Uri: ", redirectUri)
|
//console.log("Redirect Uri: ", redirectUri)
|
||||||
// &resource=https%3A%2F%2Fgraph.microsoft.com&
|
// &resource=https%3A%2F%2Fgraph.microsoft.com&
|
||||||
|
|
||||||
// FIXME: Awful, but works for prototyping
|
// FIXME: Awful, but works for prototyping
|
||||||
|
|||||||
Reference in New Issue
Block a user