@oauth2-cli/qui-cli 0.5.10 → 0.5.11
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 +7 -0
- package/dist/Client.d.ts +4 -1
- package/dist/Client.js +15 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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.5.11](https://github.com/battis/oauth2-cli/compare/qui-cli-plugin/0.5.10...qui-cli-plugin/0.5.11) (2026-01-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* further token managment debugging output ([fda83da](https://github.com/battis/oauth2-cli/commit/fda83da8794d2f7b7221224619b34148ae0a8fe1))
|
|
11
|
+
|
|
5
12
|
## [0.5.10](https://github.com/battis/oauth2-cli/compare/qui-cli-plugin/0.5.9...qui-cli-plugin/0.5.10) (2026-01-18)
|
|
6
13
|
|
|
7
14
|
|
package/dist/Client.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { JSONValue } from '@battis/typescript-tricks';
|
|
2
2
|
import * as OAuth2CLI from 'oauth2-cli';
|
|
3
|
-
import { DPoPOptions, FetchBody } from 'openid-client';
|
|
3
|
+
import { Configuration, DPoPOptions, FetchBody } from 'openid-client';
|
|
4
4
|
export declare class Client extends OAuth2CLI.Client {
|
|
5
|
+
protected getConfiguration(): Promise<Configuration>;
|
|
6
|
+
protected authorize(): Promise<OAuth2CLI.Token | undefined>;
|
|
7
|
+
protected refreshToken(token: OAuth2CLI.Token): Promise<OAuth2CLI.Token | undefined>;
|
|
5
8
|
request(url: URL | string, method?: string, body?: FetchBody, headers?: Headers, dPoPOptions?: DPoPOptions): Promise<Response>;
|
|
6
9
|
requestJSON<T extends JSONValue = JSONValue>(url: URL | string, method?: string, body?: FetchBody, headers?: Headers, dPoPOptions?: DPoPOptions): Promise<T>;
|
|
7
10
|
}
|
package/dist/Client.js
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
import { Log } from '@qui-cli/log';
|
|
2
2
|
import * as OAuth2CLI from 'oauth2-cli';
|
|
3
3
|
export class Client extends OAuth2CLI.Client {
|
|
4
|
+
async getConfiguration() {
|
|
5
|
+
const config = await super.getConfiguration();
|
|
6
|
+
Log.debug('OAuth 2.0 configuration', config);
|
|
7
|
+
return config;
|
|
8
|
+
}
|
|
9
|
+
async authorize() {
|
|
10
|
+
Log.debug('Authorizing new access token');
|
|
11
|
+
return await super.authorize();
|
|
12
|
+
}
|
|
13
|
+
async refreshToken(token) {
|
|
14
|
+
Log.debug('Refreshing expired access token', { token });
|
|
15
|
+
const refreshed = await super.refreshToken(token);
|
|
16
|
+
Log.debug('Received refreshed access token', { token: refreshed });
|
|
17
|
+
return refreshed;
|
|
18
|
+
}
|
|
4
19
|
async request(url, method, body, headers, dPoPOptions) {
|
|
5
20
|
Log.debug({ request: { method, url, headers, body, dPoPOptions } });
|
|
6
21
|
const response = await super.request(url, method, body, headers, dPoPOptions);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oauth2-cli/qui-cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.11",
|
|
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": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@qui-cli/colors": "^3.2.1",
|
|
20
20
|
"openid-client": "^6.8.1",
|
|
21
|
-
"oauth2-cli": "0.5.
|
|
21
|
+
"oauth2-cli": "0.5.1"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@battis/descriptive-types": "^0.2.6",
|