@docupace/pipeline 1.0.45 → 1.0.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,10 +2,16 @@
2
2
  set -e
3
3
 
4
4
  ENV=$1
5
+
6
+ if [ -z "$ENV" ]; then
7
+ echo "Usage: $0 <environment>"
8
+ exit 1
9
+ fi
10
+
5
11
  TENANT_ID="docupace.onmicrosoft.com"
6
12
  CLIENT_ID=$ARM_CLIENT_ID
7
13
  CLIENT_SECRET=$ARM_CLIENT_SECRET
8
-
14
+ NEW_REDIRECT="https://docupace-$ENV-$SITE_NAME.us.auth0.com/login/callback"
9
15
  APP_ID="auth0-$ENV-docupace"
10
16
  APP_SCOPE="https://graph.microsoft.com/.default"
11
17
  GRAPH_API="https://graph.microsoft.com/v1.0"
@@ -26,8 +32,6 @@ echo "Application ID: $APP_ID"
26
32
  CURRENT_REDIRECTS=$(echo "$APP_DETAILS" | jq -r '.value[0].web.redirectUris // []')
27
33
  echo "Current redirect URIs: $CURRENT_REDIRECTS"
28
34
 
29
- NEW_REDIRECT="https://docupace-dev-intmn.us.auth0.com/login/callback"
30
-
31
35
  if echo "$CURRENT_REDIRECTS" | jq -e --arg uri "$NEW_REDIRECT" 'index($uri)' > /dev/null; then
32
36
  echo "Redirect URI '$NEW_REDIRECT' already exists. No update needed."
33
37
  else
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docupace/pipeline",
3
- "version": "1.0.45",
3
+ "version": "1.0.46",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",