@ezeep/ezeep-js 1.0.182 → 1.0.183
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/cjs/ezp-auth_14.cjs.entry.js +5 -4
- package/dist/collection/components/ezp-auth/ezp-auth.js +2 -2
- package/dist/collection/services/auth.js +3 -2
- package/dist/custom-elements/index.js +5 -4
- package/dist/esm/ezp-auth_14.entry.js +5 -4
- package/dist/esm-es5/ezp-auth_14.entry.js +1 -1
- package/dist/ezeep/ezeep.esm.js +1 -1
- package/dist/ezeep/p-16c7584d.system.js +1 -1
- package/dist/ezeep/{p-9187f9e4.system.entry.js → p-65f7ca7b.system.entry.js} +1 -1
- package/dist/ezeep/{p-e72329a1.entry.js → p-adb78fec.entry.js} +1 -1
- package/dist/types/services/auth.d.ts +1 -1
- package/package.json +1 -1
- package/www/build/ezeep.esm.js +1 -1
- package/www/build/p-16c7584d.system.js +1 -1
- package/www/build/{p-9187f9e4.system.entry.js → p-65f7ca7b.system.entry.js} +1 -1
- package/www/build/{p-e72329a1.entry.js → p-adb78fec.entry.js} +1 -1
|
@@ -3093,9 +3093,9 @@ class EzpAuthorizationService {
|
|
|
3093
3093
|
body: encodeFormData({
|
|
3094
3094
|
grant_type: 'authorization_code',
|
|
3095
3095
|
scope: 'printing',
|
|
3096
|
-
code:
|
|
3096
|
+
code: authStore.state.code,
|
|
3097
3097
|
redirect_uri: this.redirectURI,
|
|
3098
|
-
code_verifier:
|
|
3098
|
+
code_verifier: authStore.state.codeVerifier,
|
|
3099
3099
|
}),
|
|
3100
3100
|
})
|
|
3101
3101
|
.then((response) => {
|
|
@@ -3145,6 +3145,7 @@ class EzpAuthorizationService {
|
|
|
3145
3145
|
}
|
|
3146
3146
|
}
|
|
3147
3147
|
const authStore = createStore({
|
|
3148
|
+
code: '',
|
|
3148
3149
|
codeVerifier: '',
|
|
3149
3150
|
accessToken: '',
|
|
3150
3151
|
refreshToken: '',
|
|
@@ -3225,7 +3226,7 @@ let EzpAuth = class {
|
|
|
3225
3226
|
this.previousUrl = this.auth.authURI;
|
|
3226
3227
|
}
|
|
3227
3228
|
receiveMessage(event) {
|
|
3228
|
-
|
|
3229
|
+
authStore.state.code = event.data;
|
|
3229
3230
|
this.auth.getAccessToken().then(() => {
|
|
3230
3231
|
this.authCancel.emit();
|
|
3231
3232
|
this.authSuccess.emit();
|
|
@@ -3234,7 +3235,7 @@ let EzpAuth = class {
|
|
|
3234
3235
|
async componentWillLoad() {
|
|
3235
3236
|
this.auth = new EzpAuthorizationService(this.redirectURI, this.clientID);
|
|
3236
3237
|
if (this.code) {
|
|
3237
|
-
|
|
3238
|
+
authStore.state.code = this.code;
|
|
3238
3239
|
await this.auth.getAccessToken();
|
|
3239
3240
|
this.authCancel.emit();
|
|
3240
3241
|
this.authSuccess.emit();
|
|
@@ -55,7 +55,7 @@ export class EzpAuth {
|
|
|
55
55
|
this.previousUrl = this.auth.authURI;
|
|
56
56
|
}
|
|
57
57
|
receiveMessage(event) {
|
|
58
|
-
|
|
58
|
+
authStore.state.code = event.data;
|
|
59
59
|
this.auth.getAccessToken().then(() => {
|
|
60
60
|
this.authCancel.emit();
|
|
61
61
|
this.authSuccess.emit();
|
|
@@ -64,7 +64,7 @@ export class EzpAuth {
|
|
|
64
64
|
async componentWillLoad() {
|
|
65
65
|
this.auth = new EzpAuthorizationService(this.redirectURI, this.clientID);
|
|
66
66
|
if (this.code) {
|
|
67
|
-
|
|
67
|
+
authStore.state.code = this.code;
|
|
68
68
|
await this.auth.getAccessToken();
|
|
69
69
|
this.authCancel.emit();
|
|
70
70
|
this.authSuccess.emit();
|
|
@@ -49,9 +49,9 @@ export class EzpAuthorizationService {
|
|
|
49
49
|
body: encodeFormData({
|
|
50
50
|
grant_type: 'authorization_code',
|
|
51
51
|
scope: 'printing',
|
|
52
|
-
code:
|
|
52
|
+
code: authStore.state.code,
|
|
53
53
|
redirect_uri: this.redirectURI,
|
|
54
|
-
code_verifier:
|
|
54
|
+
code_verifier: authStore.state.codeVerifier,
|
|
55
55
|
}),
|
|
56
56
|
})
|
|
57
57
|
.then((response) => {
|
|
@@ -101,6 +101,7 @@ export class EzpAuthorizationService {
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
const authStore = createStore({
|
|
104
|
+
code: '',
|
|
104
105
|
codeVerifier: '',
|
|
105
106
|
accessToken: '',
|
|
106
107
|
refreshToken: '',
|
|
@@ -3102,9 +3102,9 @@ class EzpAuthorizationService {
|
|
|
3102
3102
|
body: encodeFormData({
|
|
3103
3103
|
grant_type: 'authorization_code',
|
|
3104
3104
|
scope: 'printing',
|
|
3105
|
-
code:
|
|
3105
|
+
code: authStore.state.code,
|
|
3106
3106
|
redirect_uri: this.redirectURI,
|
|
3107
|
-
code_verifier:
|
|
3107
|
+
code_verifier: authStore.state.codeVerifier,
|
|
3108
3108
|
}),
|
|
3109
3109
|
})
|
|
3110
3110
|
.then((response) => {
|
|
@@ -3154,6 +3154,7 @@ class EzpAuthorizationService {
|
|
|
3154
3154
|
}
|
|
3155
3155
|
}
|
|
3156
3156
|
const authStore = createStore({
|
|
3157
|
+
code: '',
|
|
3157
3158
|
codeVerifier: '',
|
|
3158
3159
|
accessToken: '',
|
|
3159
3160
|
refreshToken: '',
|
|
@@ -3236,7 +3237,7 @@ let EzpAuth$1 = class extends HTMLElement {
|
|
|
3236
3237
|
this.previousUrl = this.auth.authURI;
|
|
3237
3238
|
}
|
|
3238
3239
|
receiveMessage(event) {
|
|
3239
|
-
|
|
3240
|
+
authStore.state.code = event.data;
|
|
3240
3241
|
this.auth.getAccessToken().then(() => {
|
|
3241
3242
|
this.authCancel.emit();
|
|
3242
3243
|
this.authSuccess.emit();
|
|
@@ -3245,7 +3246,7 @@ let EzpAuth$1 = class extends HTMLElement {
|
|
|
3245
3246
|
async componentWillLoad() {
|
|
3246
3247
|
this.auth = new EzpAuthorizationService(this.redirectURI, this.clientID);
|
|
3247
3248
|
if (this.code) {
|
|
3248
|
-
|
|
3249
|
+
authStore.state.code = this.code;
|
|
3249
3250
|
await this.auth.getAccessToken();
|
|
3250
3251
|
this.authCancel.emit();
|
|
3251
3252
|
this.authSuccess.emit();
|
|
@@ -3089,9 +3089,9 @@ class EzpAuthorizationService {
|
|
|
3089
3089
|
body: encodeFormData({
|
|
3090
3090
|
grant_type: 'authorization_code',
|
|
3091
3091
|
scope: 'printing',
|
|
3092
|
-
code:
|
|
3092
|
+
code: authStore.state.code,
|
|
3093
3093
|
redirect_uri: this.redirectURI,
|
|
3094
|
-
code_verifier:
|
|
3094
|
+
code_verifier: authStore.state.codeVerifier,
|
|
3095
3095
|
}),
|
|
3096
3096
|
})
|
|
3097
3097
|
.then((response) => {
|
|
@@ -3141,6 +3141,7 @@ class EzpAuthorizationService {
|
|
|
3141
3141
|
}
|
|
3142
3142
|
}
|
|
3143
3143
|
const authStore = createStore({
|
|
3144
|
+
code: '',
|
|
3144
3145
|
codeVerifier: '',
|
|
3145
3146
|
accessToken: '',
|
|
3146
3147
|
refreshToken: '',
|
|
@@ -3221,7 +3222,7 @@ let EzpAuth = class {
|
|
|
3221
3222
|
this.previousUrl = this.auth.authURI;
|
|
3222
3223
|
}
|
|
3223
3224
|
receiveMessage(event) {
|
|
3224
|
-
|
|
3225
|
+
authStore.state.code = event.data;
|
|
3225
3226
|
this.auth.getAccessToken().then(() => {
|
|
3226
3227
|
this.authCancel.emit();
|
|
3227
3228
|
this.authSuccess.emit();
|
|
@@ -3230,7 +3231,7 @@ let EzpAuth = class {
|
|
|
3230
3231
|
async componentWillLoad() {
|
|
3231
3232
|
this.auth = new EzpAuthorizationService(this.redirectURI, this.clientID);
|
|
3232
3233
|
if (this.code) {
|
|
3233
|
-
|
|
3234
|
+
authStore.state.code = this.code;
|
|
3234
3235
|
await this.auth.getAccessToken();
|
|
3235
3236
|
this.authCancel.emit();
|
|
3236
3237
|
this.authSuccess.emit();
|