@oauth2-cli/qui-cli 0.7.3 → 0.7.5
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 +9 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +16 -2
- package/package.json +3 -3
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
|
+
## [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)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* improved debugging output ([a0e6cea](https://github.com/battis/oauth2-cli/commit/a0e6ceaf12dadd9b2bf1753c602165f7194cbf24))
|
|
11
|
+
|
|
12
|
+
## [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)
|
|
13
|
+
|
|
5
14
|
## [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)
|
|
6
15
|
|
|
7
16
|
Incorporate fixes from oauth2-cli@0.8.2
|
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
|
@@ -3,12 +3,26 @@ import * as OAuth2CLI from 'oauth2-cli';
|
|
|
3
3
|
export class Client extends OAuth2CLI.Client {
|
|
4
4
|
async getConfiguration() {
|
|
5
5
|
const config = await super.getConfiguration();
|
|
6
|
-
Log.debug('OAuth 2.0 configuration',
|
|
6
|
+
Log.debug('OAuth 2.0 configuration', {
|
|
7
|
+
config: {
|
|
8
|
+
serverMetadata: config.serverMetadata(),
|
|
9
|
+
clientMetadata: config.clientMetadata()
|
|
10
|
+
}
|
|
11
|
+
});
|
|
7
12
|
return config;
|
|
8
13
|
}
|
|
9
14
|
async authorize() {
|
|
10
15
|
Log.debug('Authorizing new access token');
|
|
11
|
-
|
|
16
|
+
const response = await super.authorize();
|
|
17
|
+
Log.debug('Authorized new access token', { response });
|
|
18
|
+
return response;
|
|
19
|
+
}
|
|
20
|
+
async handleAuthorizationCodeRedirect(request, session) {
|
|
21
|
+
Log.debug('Handling Authorization Code flow redirect', {
|
|
22
|
+
request,
|
|
23
|
+
session
|
|
24
|
+
});
|
|
25
|
+
return super.handleAuthorizationCodeRedirect(request, session);
|
|
12
26
|
}
|
|
13
27
|
async refreshTokenGrant(token) {
|
|
14
28
|
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.
|
|
3
|
+
"version": "0.7.5",
|
|
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
|
-
"
|
|
21
|
-
"
|
|
20
|
+
"requestish": "0.1.1",
|
|
21
|
+
"oauth2-cli": "0.8.3"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@battis/descriptive-types": "^0.2.6",
|