@oauth2-cli/qui-cli 0.7.4 → 0.7.6

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,20 @@
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
+ ## [0.7.6](https://github.com/battis/oauth2-cli/compare/qui-cli-plugin/0.7.5...qui-cli-plugin/0.7.6) (2026-02-19)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * further config debugging ([95fe40f](https://github.com/battis/oauth2-cli/commit/95fe40f59669f6c498123046c6ea11f88a90fd13))
11
+
12
+ ## [0.7.5](https://github.com/battis/oauth2-cli/compare/qui-cli-plugin/0.7.4...qui-cli-plugin/0.7.5) (2026-02-19)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * improved debugging output ([a0e6cea](https://github.com/battis/oauth2-cli/commit/a0e6ceaf12dadd9b2bf1753c602165f7194cbf24))
18
+
5
19
  ## [0.7.4](https://github.com/battis/oauth2-cli/compare/qui-cli-plugin/0.7.3...qui-cli-plugin/0.7.4) (2026-02-18)
6
20
 
7
21
  ## [0.7.3](https://github.com/battis/oauth2-cli/compare/qui-cli-plugin/0.7.2...qui-cli-plugin/0.7.3) (2026-02-18)
package/dist/Client.d.ts CHANGED
@@ -1,10 +1,13 @@
1
1
  import { JSONValue } from '@battis/typescript-tricks';
2
+ import { Request } from 'express';
2
3
  import * as OAuth2CLI from 'oauth2-cli';
4
+ import { Session } from 'oauth2-cli/dist/Session.js';
3
5
  import type * as OpenIDClient from 'openid-client';
4
6
  import * as requestish from 'requestish';
5
7
  export declare class Client<C extends OAuth2CLI.Credentials = OAuth2CLI.Credentials> extends OAuth2CLI.Client<C> {
6
8
  getConfiguration(): Promise<OpenIDClient.Configuration>;
7
9
  authorize(): Promise<OAuth2CLI.Token.Response>;
10
+ handleAuthorizationCodeRedirect(request: Request, session: Session): Promise<void>;
8
11
  protected refreshTokenGrant(token: OAuth2CLI.Token.Response): Promise<OAuth2CLI.Token.Response | undefined>;
9
12
  request(url: requestish.URL.ish, method?: string, body?: OpenIDClient.FetchBody, headers?: requestish.Headers.ish, dPoPOptions?: OpenIDClient.DPoPOptions): Promise<Response>;
10
13
  requestJSON<J extends JSONValue = JSONValue>(url: requestish.URL.ish, method?: string, body?: OpenIDClient.FetchBody, headers?: requestish.Headers.ish, dPoPOptions?: OpenIDClient.DPoPOptions): Promise<J>;
package/dist/Client.js CHANGED
@@ -2,13 +2,31 @@ import { Log } from '@qui-cli/log';
2
2
  import * as OAuth2CLI from 'oauth2-cli';
3
3
  export class Client extends OAuth2CLI.Client {
4
4
  async getConfiguration() {
5
+ const creating = !this.config;
5
6
  const config = await super.getConfiguration();
6
- Log.debug('OAuth 2.0 configuration', config);
7
+ if (creating) {
8
+ Log.debug('OAuth 2.0 configuration created', {
9
+ credentials: this.credentials,
10
+ config: {
11
+ serverMetadata: config.serverMetadata(),
12
+ clientMetadata: config.clientMetadata()
13
+ }
14
+ });
15
+ }
7
16
  return config;
8
17
  }
9
18
  async authorize() {
10
19
  Log.debug('Authorizing new access token');
11
- return await super.authorize();
20
+ const response = await super.authorize();
21
+ Log.debug('Authorized new access token', { response });
22
+ return response;
23
+ }
24
+ async handleAuthorizationCodeRedirect(request, session) {
25
+ Log.debug('Handling Authorization Code flow redirect', {
26
+ request,
27
+ session
28
+ });
29
+ return super.handleAuthorizationCodeRedirect(request, session);
12
30
  }
13
31
  async refreshTokenGrant(token) {
14
32
  Log.debug('Refreshing expired access token', { token });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oauth2-cli/qui-cli",
3
- "version": "0.7.4",
3
+ "version": "0.7.6",
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.1",
21
- "oauth2-cli": "0.8.3"
20
+ "oauth2-cli": "0.8.3",
21
+ "requestish": "0.1.1"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@battis/descriptive-types": "^0.2.6",