@uipath/auth 1.197.0-preview.64 → 1.197.0-preview.66
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.
- package/dist/index.browser.d.ts +1 -1
- package/dist/index.browser.js +5 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -3
- package/dist/interactive.d.ts +1 -1
- package/dist/types.d.ts +2 -0
- package/package.json +2 -2
package/dist/index.browser.d.ts
CHANGED
|
@@ -6,6 +6,6 @@ export * from "./loginStatus";
|
|
|
6
6
|
export * from "./logout";
|
|
7
7
|
export { fetchTenantsAndOrganizations, type Tenant, type TenantsAndOrganizations, } from "./tenantSelection";
|
|
8
8
|
export * from "./tokenRefresh";
|
|
9
|
-
export type
|
|
9
|
+
export { AUTH_FLOW_ENV_VAR, type AuthFlow, type BaseCredentials, } from "./types";
|
|
10
10
|
export { DEFAULT_AUTH_FILENAME, DEFAULT_ENV_FILENAME, type EnvFileErrorCode, type EnvFileLocation, type EnvFileSource, type EnvFileUnusable, type EnvFileUnusableReason, loadEnvFileAsync, resolveEnvFileLocationAsync, resolveEnvFilePathAsync, saveEnvFileAsync, } from "./utils/envFile";
|
|
11
11
|
export { isBrowser, isNode } from "./utils/platform";
|
package/dist/index.browser.js
CHANGED
|
@@ -19572,6 +19572,8 @@ var fetchTenantsAndOrganizations = async (baseUrl, accessToken, organizationId)
|
|
|
19572
19572
|
const data = await response.json();
|
|
19573
19573
|
return data;
|
|
19574
19574
|
};
|
|
19575
|
+
// src/types.ts
|
|
19576
|
+
var AUTH_FLOW_ENV_VAR = "UIPATH_AUTH_FLOW";
|
|
19575
19577
|
export {
|
|
19576
19578
|
setAuthFileConfig,
|
|
19577
19579
|
setActiveAuthProfile,
|
|
@@ -19604,7 +19606,8 @@ export {
|
|
|
19604
19606
|
DEFAULT_AUTH_PROFILE,
|
|
19605
19607
|
DEFAULT_AUTH_FILENAME,
|
|
19606
19608
|
ClientCredentialsAuthenticationError,
|
|
19607
|
-
AuthProfileValidationError
|
|
19609
|
+
AuthProfileValidationError,
|
|
19610
|
+
AUTH_FLOW_ENV_VAR
|
|
19608
19611
|
};
|
|
19609
19612
|
|
|
19610
|
-
//# debugId=
|
|
19613
|
+
//# debugId=08C6C8374F27923B64756E2164756E21
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export { INVALID_TENANT_CODE, InvalidTenantError, isTenantSelectionError, type S
|
|
|
11
11
|
export { AUTH_TIMEOUT_ERROR_CODE } from "./server";
|
|
12
12
|
export { fetchTenantsAndOrganizations, type Tenant, type TenantsAndOrganizations, } from "./tenantSelection";
|
|
13
13
|
export * from "./tokenRefresh";
|
|
14
|
-
export type
|
|
14
|
+
export { AUTH_FLOW_ENV_VAR, type AuthFlow, type BaseCredentials, } from "./types";
|
|
15
15
|
export { DEFAULT_AUTH_FILENAME, DEFAULT_ENV_FILENAME, type EnvFileErrorCode, type EnvFileLocation, type EnvFileSource, type EnvFileUnusable, type EnvFileUnusableReason, loadEnvFileAsync, resolveEnvFileLocationAsync, resolveEnvFilePathAsync, saveEnvFileAsync, } from "./utils/envFile";
|
|
16
16
|
export { parseJWT } from "./utils/jwt";
|
|
17
17
|
export { isBrowser, isNode } from "./utils/platform";
|
package/dist/index.js
CHANGED
|
@@ -21608,6 +21608,9 @@ var selectTenantWithDeps = async (baseUrl, accessToken, organizationId, targetTe
|
|
|
21608
21608
|
return [selectedTenant.name, selectedTenant.id, organization.name];
|
|
21609
21609
|
};
|
|
21610
21610
|
|
|
21611
|
+
// src/types.ts
|
|
21612
|
+
var AUTH_FLOW_ENV_VAR = "UIPATH_AUTH_FLOW";
|
|
21613
|
+
|
|
21611
21614
|
// src/interactive.ts
|
|
21612
21615
|
var interactiveLoginWithDeps = async (options, deps) => {
|
|
21613
21616
|
const {
|
|
@@ -21657,6 +21660,7 @@ var interactiveLoginWithDeps = async (options, deps) => {
|
|
|
21657
21660
|
if (noBrowser && !resolvedSecret && !onEvent) {
|
|
21658
21661
|
throw new Error("noBrowser login requires an onEvent subscriber to receive the " + "auth-url event — the authorize URL is delivered through it.");
|
|
21659
21662
|
}
|
|
21663
|
+
const authFlow = resolvedSecret ? "client_credentials" : "authorization_code";
|
|
21660
21664
|
const authPromise = resolvedSecret ? (async () => {
|
|
21661
21665
|
return await clientCredentials({
|
|
21662
21666
|
clientId: config.clientId,
|
|
@@ -21687,7 +21691,8 @@ var interactiveLoginWithDeps = async (options, deps) => {
|
|
|
21687
21691
|
issuerAsserter(tokens.UIPATH_ACCESS_TOKEN, config.baseUrl);
|
|
21688
21692
|
const credentials = {
|
|
21689
21693
|
...tokens,
|
|
21690
|
-
UIPATH_URL: config.baseUrl
|
|
21694
|
+
UIPATH_URL: config.baseUrl,
|
|
21695
|
+
[AUTH_FLOW_ENV_VAR]: authFlow
|
|
21691
21696
|
};
|
|
21692
21697
|
try {
|
|
21693
21698
|
const tokenData = jwtParser(tokens.UIPATH_ACCESS_TOKEN);
|
|
@@ -21939,7 +21944,8 @@ export {
|
|
|
21939
21944
|
DEFAULT_AUTH_FILENAME,
|
|
21940
21945
|
ClientCredentialsAuthenticationError,
|
|
21941
21946
|
AuthProfileValidationError,
|
|
21942
|
-
AUTH_TIMEOUT_ERROR_CODE
|
|
21947
|
+
AUTH_TIMEOUT_ERROR_CODE,
|
|
21948
|
+
AUTH_FLOW_ENV_VAR
|
|
21943
21949
|
};
|
|
21944
21950
|
|
|
21945
|
-
//# debugId=
|
|
21951
|
+
//# debugId=0528EAEF2878CFAB64756E2164756E21
|
package/dist/interactive.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { clientCredentialsLogin } from "./clientCredentials";
|
|
|
3
3
|
import { resolveConfigAsync } from "./config";
|
|
4
4
|
import { authenticate } from "./index";
|
|
5
5
|
import { type SelectFromList } from "./selectTenant";
|
|
6
|
-
import type
|
|
6
|
+
import { type BaseCredentials } from "./types";
|
|
7
7
|
import { loadEnvFileAsync, saveEnvFileAsync } from "./utils/envFile";
|
|
8
8
|
import { assertIssuerMatchesAuthority, parseJWT } from "./utils/jwt";
|
|
9
9
|
/**
|
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/auth",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "1.197.0-preview.
|
|
4
|
+
"version": "1.197.0-preview.66",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/UiPath/cli.git",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"mihaigirleanu",
|
|
38
38
|
"vlad-uipath"
|
|
39
39
|
],
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "386b0837882b19062bf744c74949cdf9c5e48dea"
|
|
41
41
|
}
|