@nsshunt/stsoauth2plugin 1.0.169 → 1.0.171
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/dist/index.cjs +37 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +29 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -2
- package/types/commonTypes.d.ts +26 -0
- package/types/commonTypes.d.ts.map +1 -0
- package/types/index.d.ts +1 -0
- package/types/index.d.ts.map +1 -1
- package/types/stsoauth2manager.d.ts.map +1 -1
- package/types/stsoauth2worker.d.ts.map +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { inject } from "vue";
|
|
2
2
|
import * as wt from "node:worker_threads";
|
|
3
3
|
import { STSAxiosConfig, Sleep, createAgentManager, isNode } from "@nsshunt/stsutils";
|
|
4
|
-
import { OAuth2ParameterType } from "@nsshunt/stsauthclient";
|
|
5
4
|
import { ClientStorageFactory, ClientStorageType } from "@nsshunt/stsvueutils";
|
|
6
5
|
import { defineStore } from "pinia";
|
|
7
6
|
import { STSInstrumentControllerPluginKey } from "@nsshunt/stsinstrumentmanagerclient";
|
|
@@ -374,6 +373,34 @@ Object.defineProperties(createChalk.prototype, styles);
|
|
|
374
373
|
var chalk = createChalk();
|
|
375
374
|
createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
376
375
|
//#endregion
|
|
376
|
+
//#region src/commonTypes.ts
|
|
377
|
+
var OAuth2ParameterType = /* @__PURE__ */ function(OAuth2ParameterType) {
|
|
378
|
+
OAuth2ParameterType["AUDIENCE"] = "AUDIENCE";
|
|
379
|
+
OAuth2ParameterType["CLIENT_ID"] = "client_id";
|
|
380
|
+
OAuth2ParameterType["CLIENT_SECRET"] = "client_secret";
|
|
381
|
+
OAuth2ParameterType["RESPONSE_TYPE"] = "response_type";
|
|
382
|
+
OAuth2ParameterType["SCOPE"] = "scope";
|
|
383
|
+
OAuth2ParameterType["STATE"] = "state";
|
|
384
|
+
OAuth2ParameterType["REDIRECT_URI"] = "redirect_uri";
|
|
385
|
+
OAuth2ParameterType["ERROR"] = "error";
|
|
386
|
+
OAuth2ParameterType["ERROR_DESCRIPTION"] = "error_description";
|
|
387
|
+
OAuth2ParameterType["ERROR_CODES"] = "error_codes";
|
|
388
|
+
OAuth2ParameterType["ERROR_URI"] = "error_uri";
|
|
389
|
+
OAuth2ParameterType["GRANT_TYPE"] = "grant_type";
|
|
390
|
+
OAuth2ParameterType["CODE"] = "code";
|
|
391
|
+
OAuth2ParameterType["ACCESS_TOKEN"] = "access_token";
|
|
392
|
+
OAuth2ParameterType["TOKEN_TYPE"] = "token_type";
|
|
393
|
+
OAuth2ParameterType["EXPIRES_IN"] = "expires_in";
|
|
394
|
+
OAuth2ParameterType["USERNAME"] = "username";
|
|
395
|
+
OAuth2ParameterType["PASSWORD"] = "password";
|
|
396
|
+
OAuth2ParameterType["REFRESH_TOKEN"] = "refresh_token";
|
|
397
|
+
OAuth2ParameterType["RESPONSE_MODE"] = "response_mode";
|
|
398
|
+
OAuth2ParameterType["TIMESTAMP"] = "timestamp";
|
|
399
|
+
OAuth2ParameterType["TRACE_ID"] = "trace_id";
|
|
400
|
+
OAuth2ParameterType["CORRELATION_ID"] = "correlation_id";
|
|
401
|
+
return OAuth2ParameterType;
|
|
402
|
+
}({});
|
|
403
|
+
//#endregion
|
|
377
404
|
//#region src/stsoauth2types.ts
|
|
378
405
|
var AuthorizeOptionsResponseType = /* @__PURE__ */ function(AuthorizeOptionsResponseType) {
|
|
379
406
|
AuthorizeOptionsResponseType["CODE"] = "code";
|
|
@@ -2052,6 +2079,6 @@ var STSOAuth2ManagerPlugin = { install: (app, options) => {
|
|
|
2052
2079
|
app.provide(STSOAuth2ManagerPluginKey, om);
|
|
2053
2080
|
} };
|
|
2054
2081
|
//#endregion
|
|
2055
|
-
export { AuthorizeOptionsResponseMode, AuthorizeOptionsResponseType, IOauth2ListenerCommand, OAuthGrantTypes, STSOAuth2Manager, STSOAuth2ManagerPlugin, STSOAuth2ManagerPluginKey, STSOAuth2Worker, STSOauth2Store, TestStore, useSTSOAuth2ManagerPlugin };
|
|
2082
|
+
export { AuthorizeOptionsResponseMode, AuthorizeOptionsResponseType, IOauth2ListenerCommand, OAuth2ParameterType, OAuthGrantTypes, STSOAuth2Manager, STSOAuth2ManagerPlugin, STSOAuth2ManagerPluginKey, STSOAuth2Worker, STSOauth2Store, TestStore, useSTSOAuth2ManagerPlugin };
|
|
2056
2083
|
|
|
2057
2084
|
//# sourceMappingURL=index.mjs.map
|