@indigoai-us/hq-cli 5.6.2 → 5.6.3
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.
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* HQ_VAULT_API_URL — vault-service API Gateway URL
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
22
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="147a783f-029d-547f-ba36-a1dbf8ed0f65")}catch(e){}}();
|
|
23
23
|
import * as os from "os";
|
|
24
24
|
import * as path from "path";
|
|
25
25
|
import chalk from "chalk";
|
|
@@ -31,6 +31,14 @@ export const DEFAULT_COGNITO = {
|
|
|
31
31
|
port: process.env.HQ_COGNITO_CALLBACK_PORT
|
|
32
32
|
? Number(process.env.HQ_COGNITO_CALLBACK_PORT)
|
|
33
33
|
: 8765,
|
|
34
|
+
// Skip Cognito's Hosted UI — go straight to Google OAuth. The Cognito
|
|
35
|
+
// /oauth2/authorize endpoint honors `identity_provider` and performs an
|
|
36
|
+
// internal redirect, so the user never sees the (un-styleable) Hosted UI.
|
|
37
|
+
// Set HQ_COGNITO_IDENTITY_PROVIDER="" to fall back to the IdP picker for
|
|
38
|
+
// accounts that use email+password (admin-created users without Google).
|
|
39
|
+
identityProvider: process.env.HQ_COGNITO_IDENTITY_PROVIDER !== undefined
|
|
40
|
+
? process.env.HQ_COGNITO_IDENTITY_PROVIDER || undefined
|
|
41
|
+
: "Google",
|
|
34
42
|
};
|
|
35
43
|
export const DEFAULT_VAULT_API_URL = process.env.HQ_VAULT_API_URL ??
|
|
36
44
|
"https://4nfy67z28h.execute-api.us-east-1.amazonaws.com";
|
|
@@ -101,4 +109,4 @@ export async function refreshCachedSession() {
|
|
|
101
109
|
}
|
|
102
110
|
}
|
|
103
111
|
//# sourceMappingURL=cognito-session.js.map
|
|
104
|
-
//# debugId=
|
|
112
|
+
//# debugId=147a783f-029d-547f-ba36-a1dbf8ed0f65
|
package/package.json
CHANGED
|
@@ -38,6 +38,15 @@ export const DEFAULT_COGNITO: CognitoAuthConfig = {
|
|
|
38
38
|
port: process.env.HQ_COGNITO_CALLBACK_PORT
|
|
39
39
|
? Number(process.env.HQ_COGNITO_CALLBACK_PORT)
|
|
40
40
|
: 8765,
|
|
41
|
+
// Skip Cognito's Hosted UI — go straight to Google OAuth. The Cognito
|
|
42
|
+
// /oauth2/authorize endpoint honors `identity_provider` and performs an
|
|
43
|
+
// internal redirect, so the user never sees the (un-styleable) Hosted UI.
|
|
44
|
+
// Set HQ_COGNITO_IDENTITY_PROVIDER="" to fall back to the IdP picker for
|
|
45
|
+
// accounts that use email+password (admin-created users without Google).
|
|
46
|
+
identityProvider:
|
|
47
|
+
process.env.HQ_COGNITO_IDENTITY_PROVIDER !== undefined
|
|
48
|
+
? process.env.HQ_COGNITO_IDENTITY_PROVIDER || undefined
|
|
49
|
+
: "Google",
|
|
41
50
|
};
|
|
42
51
|
|
|
43
52
|
export const DEFAULT_VAULT_API_URL =
|