@ezeep/ezeep-js 1.0.219 → 1.0.220
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 +14 -13
- package/dist/collection/services/auth.js +14 -13
- package/dist/custom-elements/index.js +14 -13
- package/dist/esm/ezp-auth_14.entry.js +14 -13
- 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-2fd079c0.entry.js → p-d8ef521f.entry.js} +1 -1
- package/dist/ezeep/{p-1b0070eb.system.entry.js → p-d9a3b012.system.entry.js} +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-2fd079c0.entry.js → p-d8ef521f.entry.js} +1 -1
- package/www/build/{p-1b0070eb.system.entry.js → p-d9a3b012.system.entry.js} +1 -1
|
@@ -3147,19 +3147,20 @@ class EzpAuthorizationService {
|
|
|
3147
3147
|
});
|
|
3148
3148
|
}
|
|
3149
3149
|
revokeRefreshToken() {
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3150
|
+
if (authStore.state.refreshToken)
|
|
3151
|
+
fetch(`https://${this.oauthUrl}/oauth/revoke/`, {
|
|
3152
|
+
credentials: 'include',
|
|
3153
|
+
headers: {
|
|
3154
|
+
Authorization: 'Basic ' + btoa(this.clientID + ':'),
|
|
3155
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
3156
|
+
},
|
|
3157
|
+
method: 'POST',
|
|
3158
|
+
body: encodeFormData({
|
|
3159
|
+
token: authStore.state.refreshToken,
|
|
3160
|
+
}),
|
|
3161
|
+
}).catch((error) => {
|
|
3162
|
+
console.log(error);
|
|
3163
|
+
});
|
|
3163
3164
|
}
|
|
3164
3165
|
}
|
|
3165
3166
|
const authStore = createStore({
|
|
@@ -100,19 +100,20 @@ export class EzpAuthorizationService {
|
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
102
|
revokeRefreshToken() {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
103
|
+
if (authStore.state.refreshToken)
|
|
104
|
+
fetch(`https://${this.oauthUrl}/oauth/revoke/`, {
|
|
105
|
+
credentials: 'include',
|
|
106
|
+
headers: {
|
|
107
|
+
Authorization: 'Basic ' + btoa(this.clientID + ':'),
|
|
108
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
109
|
+
},
|
|
110
|
+
method: 'POST',
|
|
111
|
+
body: encodeFormData({
|
|
112
|
+
token: authStore.state.refreshToken,
|
|
113
|
+
}),
|
|
114
|
+
}).catch((error) => {
|
|
115
|
+
console.log(error);
|
|
116
|
+
});
|
|
116
117
|
}
|
|
117
118
|
}
|
|
118
119
|
const authStore = createStore({
|
|
@@ -3156,19 +3156,20 @@ class EzpAuthorizationService {
|
|
|
3156
3156
|
});
|
|
3157
3157
|
}
|
|
3158
3158
|
revokeRefreshToken() {
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3159
|
+
if (authStore.state.refreshToken)
|
|
3160
|
+
fetch(`https://${this.oauthUrl}/oauth/revoke/`, {
|
|
3161
|
+
credentials: 'include',
|
|
3162
|
+
headers: {
|
|
3163
|
+
Authorization: 'Basic ' + btoa(this.clientID + ':'),
|
|
3164
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
3165
|
+
},
|
|
3166
|
+
method: 'POST',
|
|
3167
|
+
body: encodeFormData({
|
|
3168
|
+
token: authStore.state.refreshToken,
|
|
3169
|
+
}),
|
|
3170
|
+
}).catch((error) => {
|
|
3171
|
+
console.log(error);
|
|
3172
|
+
});
|
|
3172
3173
|
}
|
|
3173
3174
|
}
|
|
3174
3175
|
const authStore = createStore({
|
|
@@ -3143,19 +3143,20 @@ class EzpAuthorizationService {
|
|
|
3143
3143
|
});
|
|
3144
3144
|
}
|
|
3145
3145
|
revokeRefreshToken() {
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3146
|
+
if (authStore.state.refreshToken)
|
|
3147
|
+
fetch(`https://${this.oauthUrl}/oauth/revoke/`, {
|
|
3148
|
+
credentials: 'include',
|
|
3149
|
+
headers: {
|
|
3150
|
+
Authorization: 'Basic ' + btoa(this.clientID + ':'),
|
|
3151
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
3152
|
+
},
|
|
3153
|
+
method: 'POST',
|
|
3154
|
+
body: encodeFormData({
|
|
3155
|
+
token: authStore.state.refreshToken,
|
|
3156
|
+
}),
|
|
3157
|
+
}).catch((error) => {
|
|
3158
|
+
console.log(error);
|
|
3159
|
+
});
|
|
3159
3160
|
}
|
|
3160
3161
|
}
|
|
3161
3162
|
const authStore = createStore({
|