@oauth2-cli/qui-cli 1.2.10 → 1.2.12

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/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4
4
 
5
+ ## [1.2.12](https://github.com/battis/oauth2-cli/compare/qui-cli-plugin/1.2.11...qui-cli-plugin/1.2.12) (2026-03-08)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * remove excess debugging logs ([90d196a](https://github.com/battis/oauth2-cli/commit/90d196a42749d4742dc541a3b6e6c9088f6019fa))
11
+
12
+ ## [1.2.11](https://github.com/battis/oauth2-cli/compare/qui-cli-plugin/1.2.10...qui-cli-plugin/1.2.11) (2026-03-08)
13
+
5
14
  ## [1.2.10](https://github.com/battis/oauth2-cli/compare/qui-cli-plugin/1.2.9...qui-cli-plugin/1.2.10) (2026-03-08)
6
15
 
7
16
  ## [1.2.9](https://github.com/battis/oauth2-cli/compare/qui-cli-plugin/1.2.8...qui-cli-plugin/1.2.9) (2026-03-08)
package/dist/Client.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { JSONValue } from '@battis/typescript-tricks';
2
- import { Request } from 'express';
3
2
  import * as OAuth2CLI from 'oauth2-cli';
4
3
  import type * as OpenIDClient from 'openid-client';
5
4
  import { Body, Headers, URL } from 'requestish';
@@ -15,9 +14,6 @@ import { Body, Headers, URL } from 'requestish';
15
14
  */
16
15
  export declare class Client<C extends OAuth2CLI.Credentials = OAuth2CLI.Credentials> extends OAuth2CLI.Client<C> {
17
16
  getConfiguration(): Promise<OpenIDClient.Configuration>;
18
- authorize(): Promise<OAuth2CLI.Token.Response>;
19
- handleAuthorizationCodeRedirect(request: Request, session: OAuth2CLI.Localhost.Server): Promise<OAuth2CLI.Token.Response>;
20
- protected refreshTokenGrant({ refresh_token, inject }?: Parameters<OAuth2CLI.Client['refreshTokenGrant']>[0]): Promise<OAuth2CLI.Token.Response | undefined>;
21
17
  protected prepareRequest(config: OpenIDClient.Configuration, accessToken: string, url: URL, method: string, body?: OpenIDClient.FetchBody, headers?: Headers | undefined, options?: OpenIDClient.DPoPOptions | undefined): Promise<OAuth2CLI.PreparedRequest>;
22
18
  protected prepareResponse(response: Response): Promise<Response>;
23
19
  requestJSON<J extends JSONValue = JSONValue>(url: URL.ish, method?: string, body?: Body.ish, headers?: Headers.ish, dPoPOptions?: OpenIDClient.DPoPOptions): Promise<J>;
package/dist/Client.js CHANGED
@@ -26,29 +26,6 @@ export class Client extends OAuth2CLI.Client {
26
26
  }
27
27
  return config;
28
28
  }
29
- async authorize() {
30
- Log.debug(`Authorizing ${this.name} new access token`);
31
- const response = await super.authorize();
32
- Log.debug(`Authorized ${this.name} new access token: ${Log.syntaxColor(response)}`);
33
- return response;
34
- }
35
- async handleAuthorizationCodeRedirect(request, session) {
36
- Log.debug(`Handling ${this.name} authorization code redirect: ${Log.syntaxColor(request)}`);
37
- const response = await super.handleAuthorizationCodeRedirect(request, session);
38
- Log.debug(`Received ${this.name} authorization code response: ${Log.syntaxColor(response)}`);
39
- return response;
40
- }
41
- async refreshTokenGrant({ refresh_token, inject } = {}) {
42
- Log.debug(`Attempting to refresh ${this.name} access token: ${Log.syntaxColor({ refresh_token, inject })}`);
43
- const refreshed = await super.refreshTokenGrant({ refresh_token, inject });
44
- if (refreshed) {
45
- Log.debug(`Received refreshed ${this.name} access token: ${Log.syntaxColor(refreshed)}`);
46
- }
47
- else {
48
- Log.debug(`${this.name} token refresh failed`);
49
- }
50
- return refreshed;
51
- }
52
29
  async prepareRequest(config, accessToken, url, method, body, headers, options) {
53
30
  Log.debug(`Sending request to ${this.name}: ${Log.syntaxColor({ method, url, headers: Object.fromEntries(headers?.entries() || []), body: `${body}` })}`);
54
31
  return [config, accessToken, url, method, body, headers, options];
@@ -1,5 +1,4 @@
1
1
  import { JSONValue } from '@battis/typescript-tricks';
2
- import { Request } from 'express';
3
2
  import * as OAuth2CLI from 'oauth2-cli';
4
3
  import type * as OpenIDClient from 'openid-client';
5
4
  import { Body, Headers, URL } from 'requestish';
@@ -15,9 +14,6 @@ import { Body, Headers, URL } from 'requestish';
15
14
  */
16
15
  export declare class Client<C extends OAuth2CLI.Credentials = OAuth2CLI.Credentials> extends OAuth2CLI.Client<C> {
17
16
  getConfiguration(): Promise<OpenIDClient.Configuration>;
18
- authorize(): Promise<OAuth2CLI.Token.Response>;
19
- handleAuthorizationCodeRedirect(request: Request, session: OAuth2CLI.Localhost.Server): Promise<OAuth2CLI.Token.Response>;
20
- protected refreshTokenGrant({ refresh_token, inject }?: Parameters<OAuth2CLI.Client['refreshTokenGrant']>[0]): Promise<OAuth2CLI.Token.Response | undefined>;
21
17
  protected prepareRequest(config: OpenIDClient.Configuration, accessToken: string, url: URL, method: string, body?: OpenIDClient.FetchBody, headers?: Headers | undefined, options?: OpenIDClient.DPoPOptions | undefined): Promise<OAuth2CLI.PreparedRequest>;
22
18
  protected prepareResponse(response: Response): Promise<Response>;
23
19
  requestJSON<J extends JSONValue = JSONValue>(url: URL.ish, method?: string, body?: Body.ish, headers?: Headers.ish, dPoPOptions?: OpenIDClient.DPoPOptions): Promise<J>;
@@ -26,29 +26,6 @@ export class Client extends OAuth2CLI.Client {
26
26
  }
27
27
  return config;
28
28
  }
29
- async authorize() {
30
- Log.debug(`Authorizing ${this.name} new access token`);
31
- const response = await super.authorize();
32
- Log.debug(`Authorized ${this.name} new access token: ${Log.syntaxColor(response)}`);
33
- return response;
34
- }
35
- async handleAuthorizationCodeRedirect(request, session) {
36
- Log.debug(`Handling ${this.name} authorization code redirect: ${Log.syntaxColor(request)}`);
37
- const response = await super.handleAuthorizationCodeRedirect(request, session);
38
- Log.debug(`Received ${this.name} authorization code response: ${Log.syntaxColor(response)}`);
39
- return response;
40
- }
41
- async refreshTokenGrant({ refresh_token, inject } = {}) {
42
- Log.debug(`Attempting to refresh ${this.name} access token: ${Log.syntaxColor({ refresh_token, inject })}`);
43
- const refreshed = await super.refreshTokenGrant({ refresh_token, inject });
44
- if (refreshed) {
45
- Log.debug(`Received refreshed ${this.name} access token: ${Log.syntaxColor(refreshed)}`);
46
- }
47
- else {
48
- Log.debug(`${this.name} token refresh failed`);
49
- }
50
- return refreshed;
51
- }
52
29
  async prepareRequest(config, accessToken, url, method, body, headers, options) {
53
30
  Log.debug(`Sending request to ${this.name}: ${Log.syntaxColor({ method, url, headers: Object.fromEntries(headers?.entries() || []), body: `${body}` })}`);
54
31
  return [config, accessToken, url, method, body, headers, options];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oauth2-cli/qui-cli",
3
- "version": "1.2.10",
3
+ "version": "1.2.12",
4
4
  "description": "@qui-cli/plugin wrapper for oauth2-cli",
5
5
  "homepage": "https://github.com/battis/oauth2-cli/tree/main/packages/qui-cli#readme",
6
6
  "repository": {
@@ -17,8 +17,8 @@
17
17
  "types": "./dist/index.d.ts",
18
18
  "dependencies": {
19
19
  "@qui-cli/colors": "^3.2.3",
20
- "requestish": "0.1.10",
21
- "oauth2-cli": "1.2.4"
20
+ "oauth2-cli": "1.2.5",
21
+ "requestish": "0.1.10"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@battis/descriptive-types": "^0.2.6",