Skip to content

Commit

Permalink
Merge pull request #370 from vscheuber/main
Browse files Browse the repository at this point in the history
fixes #369 and update to frodo-lib 2.0.0-72
  • Loading branch information
vscheuber authored Feb 10, 2024
2 parents ecd1afa + 8aeaef9 commit bff35d2
Show file tree
Hide file tree
Showing 162 changed files with 245 additions and 430 deletions.
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
]
},
"dependencies": {
"@rockcarver/frodo-lib": "2.0.0-71",
"@rockcarver/frodo-lib": "2.0.0-72",
"chokidar": "^3.5.3",
"cli-progress": "^3.11.2",
"cli-table3": "^0.6.3",
Expand All @@ -129,6 +129,7 @@
"inquirer-autocomplete-prompt": "^2.0.0",
"nanospinner": "^1.1.0",
"properties-reader": "^2.2.0",
"readline-sync": "^1.4.10",
"replaceall": "^0.1.6",
"resolve": "^1.22.1",
"slugify": "^1.6.5",
Expand Down
4 changes: 1 addition & 3 deletions src/cli/_template/something-delete.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { frodo } from '@rockcarver/frodo-lib';
import { Option } from 'commander';

import { getTokens } from '../../ops/AuthenticateOps';
import { FrodoCommand } from '../FrodoCommand';

const { getTokens } = frodo.login;

const program = new FrodoCommand('frodo something delete');

program
Expand Down
4 changes: 1 addition & 3 deletions src/cli/_template/something-describe.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { frodo } from '@rockcarver/frodo-lib';
import { Option } from 'commander';

import { getTokens } from '../../ops/AuthenticateOps';
import { FrodoCommand } from '../FrodoCommand';

const { getTokens } = frodo.login;

const program = new FrodoCommand('frodo something describe');

program
Expand Down
4 changes: 1 addition & 3 deletions src/cli/_template/something-else-delete.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { frodo } from '@rockcarver/frodo-lib';
import { Option } from 'commander';

import { getTokens } from '../../ops/AuthenticateOps';
import { FrodoCommand } from '../FrodoCommand';

const { getTokens } = frodo.login;

const program = new FrodoCommand('frodo something else delete');

program
Expand Down
4 changes: 1 addition & 3 deletions src/cli/_template/something-else-describe.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { frodo } from '@rockcarver/frodo-lib';
import { Option } from 'commander';

import { getTokens } from '../../ops/AuthenticateOps';
import { FrodoCommand } from '../FrodoCommand';

const { getTokens } = frodo.login;

const program = new FrodoCommand('frodo something else describe');

program
Expand Down
4 changes: 1 addition & 3 deletions src/cli/_template/something-else-export.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { frodo } from '@rockcarver/frodo-lib';
import { Option } from 'commander';

import { getTokens } from '../../ops/AuthenticateOps';
import { FrodoCommand } from '../FrodoCommand';

const { getTokens } = frodo.login;

const program = new FrodoCommand('frodo something else export');

program
Expand Down
4 changes: 1 addition & 3 deletions src/cli/_template/something-else-import.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { frodo } from '@rockcarver/frodo-lib';
import { Option } from 'commander';

import { getTokens } from '../../ops/AuthenticateOps';
import { FrodoCommand } from '../FrodoCommand';

const { getTokens } = frodo.login;

const program = new FrodoCommand('frodo something else import');

program
Expand Down
4 changes: 1 addition & 3 deletions src/cli/_template/something-else-list.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { frodo } from '@rockcarver/frodo-lib';
import { Option } from 'commander';

import { getTokens } from '../../ops/AuthenticateOps';
import { FrodoCommand } from '../FrodoCommand';

const { getTokens } = frodo.login;

const program = new FrodoCommand('frodo something else list');

program
Expand Down
4 changes: 1 addition & 3 deletions src/cli/_template/something-export.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { frodo } from '@rockcarver/frodo-lib';
import { Option } from 'commander';

import { getTokens } from '../../ops/AuthenticateOps';
import { FrodoCommand } from '../FrodoCommand';

const { getTokens } = frodo.login;

const program = new FrodoCommand('frodo something export');

program
Expand Down
4 changes: 1 addition & 3 deletions src/cli/_template/something-import.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { frodo } from '@rockcarver/frodo-lib';
import { Option } from 'commander';

import { getTokens } from '../../ops/AuthenticateOps';
import { FrodoCommand } from '../FrodoCommand';

const { getTokens } = frodo.login;

const program = new FrodoCommand('frodo something import');

program
Expand Down
4 changes: 1 addition & 3 deletions src/cli/_template/something-list.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { frodo } from '@rockcarver/frodo-lib';
import { Option } from 'commander';

import { getTokens } from '../../ops/AuthenticateOps';
import { FrodoCommand } from '../FrodoCommand';

const { getTokens } = frodo.login;

const program = new FrodoCommand('frodo something list');

program
Expand Down
4 changes: 1 addition & 3 deletions src/cli/_template/something-other-delete.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { frodo } from '@rockcarver/frodo-lib';
import { Option } from 'commander';

import { getTokens } from '../../ops/AuthenticateOps';
import { FrodoCommand } from '../FrodoCommand';

const { getTokens } = frodo.login;

const program = new FrodoCommand('frodo something other delete');

program
Expand Down
4 changes: 1 addition & 3 deletions src/cli/_template/something-other-describe.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { frodo } from '@rockcarver/frodo-lib';
import { Option } from 'commander';

import { getTokens } from '../../ops/AuthenticateOps';
import { FrodoCommand } from '../FrodoCommand';

const { getTokens } = frodo.login;

const program = new FrodoCommand('frodo something other describe');

program
Expand Down
4 changes: 1 addition & 3 deletions src/cli/_template/something-other-export.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { frodo } from '@rockcarver/frodo-lib';
import { Option } from 'commander';

import { getTokens } from '../../ops/AuthenticateOps';
import { FrodoCommand } from '../FrodoCommand';

const { getTokens } = frodo.login;

const program = new FrodoCommand('frodo something other export');

program
Expand Down
4 changes: 1 addition & 3 deletions src/cli/_template/something-other-import.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { frodo } from '@rockcarver/frodo-lib';
import { Option } from 'commander';

import { getTokens } from '../../ops/AuthenticateOps';
import { FrodoCommand } from '../FrodoCommand';

const { getTokens } = frodo.login;

const program = new FrodoCommand('frodo something other import');

program
Expand Down
4 changes: 1 addition & 3 deletions src/cli/_template/something-other-list.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { frodo } from '@rockcarver/frodo-lib';
import { Option } from 'commander';

import { getTokens } from '../../ops/AuthenticateOps';
import { FrodoCommand } from '../FrodoCommand';

const { getTokens } = frodo.login;

const program = new FrodoCommand('frodo something other list');

program
Expand Down
2 changes: 1 addition & 1 deletion src/cli/admin/admin-add-autoid-static-user-mapping.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { frodo } from '@rockcarver/frodo-lib';

import { getTokens } from '../../ops/AuthenticateOps';
import { printMessage } from '../../utils/Console.js';
import { FrodoCommand } from '../FrodoCommand';

const { getTokens } = frodo.login;
const { addAutoIdStaticUserMapping } = frodo.admin;

const program = new FrodoCommand('frodo admin add-autoid-static-user-mapping');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import Table from 'cli-table3';
import { Option } from 'commander';
import { v4 as uuidv4 } from 'uuid';

import { getTokens } from '../../ops/AuthenticateOps';
import { printMessage } from '../../utils/Console.js';
import { FrodoCommand } from '../FrodoCommand';

const { getTokens } = frodo.login;
const { createOAuth2ClientWithAdminPrivileges, createLongLivedToken } =
frodo.admin;

Expand Down
4 changes: 1 addition & 3 deletions src/cli/admin/admin-execute-rfc7523-authz-grant-flow.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import { frodo } from '@rockcarver/frodo-lib';
import { JwkRsa } from '@rockcarver/frodo-lib/types/ops/JoseOps.js';
import { Option } from 'commander';
import fs from 'fs';
import { v4 as uuidv4 } from 'uuid';

import * as s from '../../help/SampleData';
import { executeRfc7523AuthZGrantFlow } from '../../ops/AdminOps.js';
import { getTokens } from '../../ops/AuthenticateOps';
import { printMessage } from '../../utils/Console.js';
import { FrodoCommand } from '../FrodoCommand.js';

const { getTokens } = frodo.login;

const program = new FrodoCommand(
'frodo admin execute-rfc7523-authz-grant-flow'
);
Expand Down
4 changes: 1 addition & 3 deletions src/cli/admin/admin-federation-export.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import { frodo } from '@rockcarver/frodo-lib';
import { Option } from 'commander';

import {
exportAdminFederationProvidersToFile,
exportAdminFederationProvidersToFiles,
exportAdminFederationProviderToFile,
} from '../../ops/AdminFederationOps';
import { getTokens } from '../../ops/AuthenticateOps';
import { printMessage, verboseMessage } from '../../utils/Console';
import { FrodoCommand } from '../FrodoCommand';

const { getTokens } = frodo.login;

const program = new FrodoCommand('frodo admin federation export', ['realm']);

program
Expand Down
4 changes: 1 addition & 3 deletions src/cli/admin/admin-federation-import.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { frodo } from '@rockcarver/frodo-lib';
import { Option } from 'commander';

import {
Expand All @@ -7,11 +6,10 @@ import {
importAdminFederationProvidersFromFiles,
importFirstAdminFederationProviderFromFile,
} from '../../ops/AdminFederationOps';
import { getTokens } from '../../ops/AuthenticateOps';
import { printMessage, verboseMessage } from '../../utils/Console';
import { FrodoCommand } from '../FrodoCommand';

const { getTokens } = frodo.login;

const program = new FrodoCommand('frodo admin federation import', ['realm']);

program
Expand Down
5 changes: 1 addition & 4 deletions src/cli/admin/admin-federation-list.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import { frodo } from '@rockcarver/frodo-lib';

import { listAdminFederationProviders } from '../../ops/AdminFederationOps';
import { getTokens } from '../../ops/AuthenticateOps';
import { verboseMessage } from '../../utils/Console';
import { FrodoCommand } from '../FrodoCommand';

const { getTokens } = frodo.login;

const program = new FrodoCommand('frodo admin federation list', ['realm']);

program
Expand Down
5 changes: 2 additions & 3 deletions src/cli/admin/admin-generate-rfc7523-authz-grant-artefacts.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import { frodo, state } from '@rockcarver/frodo-lib';
import { state } from '@rockcarver/frodo-lib';
import { JwkRsa } from '@rockcarver/frodo-lib/types/ops/JoseOps.js';
import { Option } from 'commander';
import fs from 'fs';
import { v4 as uuidv4 } from 'uuid';

import * as s from '../../help/SampleData';
import { generateRfc7523AuthZGrantArtefacts } from '../../ops/AdminOps.js';
import { getTokens } from '../../ops/AuthenticateOps';
import { printMessage } from '../../utils/Console.js';
import { FrodoCommand } from '../FrodoCommand.js';

const { getTokens } = frodo.login;

const program = new FrodoCommand(
'frodo admin generate-rfc7523-authz-grant-artefacts'
);
Expand Down
2 changes: 1 addition & 1 deletion src/cli/admin/admin-get-access-token.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { frodo, state } from '@rockcarver/frodo-lib';
import { Option } from 'commander';

import { getTokens } from '../../ops/AuthenticateOps';
import { printMessage } from '../../utils/Console.js';
import { FrodoCommand } from '../FrodoCommand';

const { getTokens } = frodo.login;
const { clientCredentialsGrant } = frodo.oauth2oidc.endpoint;

const program = new FrodoCommand('frodo admin get-access-token');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { frodo, state } from '@rockcarver/frodo-lib';
import { Option } from 'commander';

import { getTokens } from '../../ops/AuthenticateOps';
import { printMessage } from '../../utils/Console.js';
import { FrodoCommand } from '../FrodoCommand';

const { getTokens } = frodo.login;
const { grantOAuth2ClientAdminPrivileges } = frodo.admin;

const program = new FrodoCommand(
Expand Down
2 changes: 1 addition & 1 deletion src/cli/admin/admin-hide-generic-extension-attributes.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { frodo, state } from '@rockcarver/frodo-lib';
import { Option } from 'commander';

import { getTokens } from '../../ops/AuthenticateOps';
import { printMessage } from '../../utils/Console.js';
import { FrodoCommand } from '../FrodoCommand';

const { getTokens } = frodo.login;
const { hideGenericExtensionAttributes } = frodo.admin;

const program = new FrodoCommand(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { frodo, state } from '@rockcarver/frodo-lib';

import { getTokens } from '../../ops/AuthenticateOps';
import { printMessage } from '../../utils/Console.js';
import { FrodoCommand } from '../FrodoCommand';

const { getTokens } = frodo.login;
const { listOAuth2AdminClients } = frodo.admin;

const program = new FrodoCommand(
Expand Down
Loading

0 comments on commit bff35d2

Please sign in to comment.