@wbce-d9/api 12.0.1 → 12.0.3
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.
|
@@ -108,7 +108,13 @@ export class OpenIDAuthDriver extends BaseOAuthDriver {
|
|
|
108
108
|
try {
|
|
109
109
|
const client = await this.client;
|
|
110
110
|
const codeChallenge = generators.codeChallenge(payload['codeVerifier']);
|
|
111
|
-
|
|
111
|
+
let finalRedirectUri = this.redirectUrl;
|
|
112
|
+
if (payload['redirect']) {
|
|
113
|
+
const redirectUriWithParams = new URL(this.redirectUrl);
|
|
114
|
+
redirectUriWithParams.searchParams.set('redirect', payload['redirect']);
|
|
115
|
+
finalRedirectUri = redirectUriWithParams.toString();
|
|
116
|
+
}
|
|
117
|
+
tokenSet = await client.callback(finalRedirectUri, { code: payload['code'], state: payload['state'], iss: payload['iss'] }, { code_verifier: payload['codeVerifier'], state: codeChallenge, nonce: codeChallenge });
|
|
112
118
|
userInfo = tokenSet.claims();
|
|
113
119
|
if (client.issuer.metadata['userinfo_endpoint']) {
|
|
114
120
|
userInfo = {
|
|
@@ -214,6 +220,7 @@ export function createOpenIDAuthRouter(providerName) {
|
|
|
214
220
|
codeVerifier: verifier,
|
|
215
221
|
state: req.query['state'],
|
|
216
222
|
iss: req.query['iss'],
|
|
223
|
+
redirect: validRedirectUrl,
|
|
217
224
|
});
|
|
218
225
|
}
|
|
219
226
|
catch (error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wbce-d9/api",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.3",
|
|
4
4
|
"description": "Directus is a real-time API and App dashboard for managing SQL database content",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"ioredis": "5.3.2",
|
|
104
104
|
"isolated-vm": "^6.0.1",
|
|
105
105
|
"joi": "17.9.1",
|
|
106
|
-
"js-yaml": "4.1.
|
|
106
|
+
"js-yaml": "4.1.1",
|
|
107
107
|
"js2xmlparser": "5.0.0",
|
|
108
108
|
"json2csv": "5.0.7",
|
|
109
109
|
"jsonwebtoken": "9.0.0",
|
|
@@ -143,19 +143,19 @@
|
|
|
143
143
|
"uuid": "9.0.0",
|
|
144
144
|
"uuid-validate": "0.0.3",
|
|
145
145
|
"wellknown": "0.5.0",
|
|
146
|
-
"@wbce-d9/app": "9.
|
|
147
|
-
"@wbce-d9/constants": "10.0.0",
|
|
146
|
+
"@wbce-d9/app": "9.34.0",
|
|
148
147
|
"@wbce-d9/exceptions": "10.0.0",
|
|
149
148
|
"@wbce-d9/extensions-sdk": "10.0.0",
|
|
150
|
-
"@wbce-d9/specs": "9.26.5",
|
|
151
149
|
"@wbce-d9/schema": "10.0.0",
|
|
150
|
+
"@wbce-d9/specs": "9.26.5",
|
|
152
151
|
"@wbce-d9/storage": "10.0.0",
|
|
152
|
+
"@wbce-d9/constants": "10.0.0",
|
|
153
153
|
"@wbce-d9/storage-driver-azure": "10.0.0",
|
|
154
154
|
"@wbce-d9/storage-driver-cloudinary": "10.0.0",
|
|
155
155
|
"@wbce-d9/storage-driver-gcs": "10.0.0",
|
|
156
|
+
"@wbce-d9/storage-driver-s3": "10.0.0",
|
|
156
157
|
"@wbce-d9/storage-driver-local": "10.0.0",
|
|
157
158
|
"@wbce-d9/update-check": "10.0.0",
|
|
158
|
-
"@wbce-d9/storage-driver-s3": "10.0.0",
|
|
159
159
|
"@wbce-d9/utils": "10.0.0"
|
|
160
160
|
},
|
|
161
161
|
"devDependencies": {
|