@friggframework/devtools 2.0.0-next.64 → 2.0.0-next.65
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/frigg-cli/auth-command/CLAUDE.md +293 -0
- package/frigg-cli/auth-command/README.md +450 -0
- package/frigg-cli/auth-command/api-key-flow.js +153 -0
- package/frigg-cli/auth-command/auth-tester.js +344 -0
- package/frigg-cli/auth-command/credential-storage.js +182 -0
- package/frigg-cli/auth-command/index.js +256 -0
- package/frigg-cli/auth-command/json-schema-form.js +67 -0
- package/frigg-cli/auth-command/module-loader.js +172 -0
- package/frigg-cli/auth-command/oauth-callback-server.js +431 -0
- package/frigg-cli/auth-command/oauth-flow.js +195 -0
- package/frigg-cli/auth-command/utils/browser.js +30 -0
- package/frigg-cli/index.js +36 -1
- package/package.json +7 -7
- package/test/mock-api.js +1 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@friggframework/devtools",
|
|
3
3
|
"prettier": "@friggframework/prettier-config",
|
|
4
|
-
"version": "2.0.0-next.
|
|
4
|
+
"version": "2.0.0-next.65",
|
|
5
5
|
"bin": {
|
|
6
6
|
"frigg": "./frigg-cli/index.js"
|
|
7
7
|
},
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"@babel/eslint-parser": "^7.18.9",
|
|
26
26
|
"@babel/parser": "^7.25.3",
|
|
27
27
|
"@babel/traverse": "^7.25.3",
|
|
28
|
-
"@friggframework/core": "2.0.0-next.
|
|
29
|
-
"@friggframework/schemas": "2.0.0-next.
|
|
30
|
-
"@friggframework/test": "2.0.0-next.
|
|
28
|
+
"@friggframework/core": "2.0.0-next.65",
|
|
29
|
+
"@friggframework/schemas": "2.0.0-next.65",
|
|
30
|
+
"@friggframework/test": "2.0.0-next.65",
|
|
31
31
|
"@hapi/boom": "^10.0.1",
|
|
32
32
|
"@inquirer/prompts": "^5.3.8",
|
|
33
33
|
"axios": "^1.7.2",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"validate-npm-package-name": "^5.0.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@friggframework/eslint-config": "2.0.0-next.
|
|
59
|
-
"@friggframework/prettier-config": "2.0.0-next.
|
|
58
|
+
"@friggframework/eslint-config": "2.0.0-next.65",
|
|
59
|
+
"@friggframework/prettier-config": "2.0.0-next.65",
|
|
60
60
|
"aws-sdk-client-mock": "^4.1.0",
|
|
61
61
|
"aws-sdk-client-mock-jest": "^4.1.0",
|
|
62
62
|
"jest": "^30.1.3",
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"publishConfig": {
|
|
89
89
|
"access": "public"
|
|
90
90
|
},
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "a2f6c130dc7c783486a6ef03a262d2ee8dea52f9"
|
|
92
92
|
}
|
package/test/mock-api.js
CHANGED
|
@@ -219,8 +219,7 @@ const mockApi = (Api, classOptionByName = {}) => {
|
|
|
219
219
|
// TODO read authentication mode from module package
|
|
220
220
|
if (authenticationMode === 'client_credentials') {
|
|
221
221
|
// TODO make generic (tied to crossbeam api)
|
|
222
|
-
api.
|
|
223
|
-
api.refreshAccessToken = api.getTokenFromClientCredentials;
|
|
222
|
+
api.grant_type = 'client_credentials';
|
|
224
223
|
|
|
225
224
|
if (process.env.CROSSBEAM_API_BASE_URL)
|
|
226
225
|
api.baseUrl = process.env.CROSSBEAM_API_BASE_URL;
|
|
@@ -231,7 +230,6 @@ const mockApi = (Api, classOptionByName = {}) => {
|
|
|
231
230
|
|
|
232
231
|
api.client_secret = process.env.CROSSBEAM_TEST_CLIENT_SECRET;
|
|
233
232
|
api.client_id = process.env.CROSSBEAM_TEST_CLIENT_ID;
|
|
234
|
-
api.refreshAccessToken = api.getTokenFromClientCredentials;
|
|
235
233
|
|
|
236
234
|
this.tokenResponse = await api.getTokenFromClientCredentials();
|
|
237
235
|
} else if (authenticationMode === 'puppet') {
|