@wbce-d9/api 12.0.1 → 12.0.2
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/auth/drivers/openid.js +8 -1
- package/package.json +10 -10
|
@@ -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.2",
|
|
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",
|
|
@@ -144,19 +144,19 @@
|
|
|
144
144
|
"uuid-validate": "0.0.3",
|
|
145
145
|
"wellknown": "0.5.0",
|
|
146
146
|
"@wbce-d9/app": "9.33.8",
|
|
147
|
-
"@wbce-d9/constants": "10.0.0",
|
|
148
147
|
"@wbce-d9/exceptions": "10.0.0",
|
|
149
|
-
"@wbce-d9/
|
|
150
|
-
"@wbce-d9/specs": "9.26.5",
|
|
148
|
+
"@wbce-d9/constants": "10.0.0",
|
|
151
149
|
"@wbce-d9/schema": "10.0.0",
|
|
152
|
-
"@wbce-d9/
|
|
150
|
+
"@wbce-d9/specs": "9.26.5",
|
|
153
151
|
"@wbce-d9/storage-driver-azure": "10.0.0",
|
|
154
|
-
"@wbce-d9/storage
|
|
152
|
+
"@wbce-d9/storage": "10.0.0",
|
|
153
|
+
"@wbce-d9/extensions-sdk": "10.0.0",
|
|
155
154
|
"@wbce-d9/storage-driver-gcs": "10.0.0",
|
|
156
|
-
"@wbce-d9/storage-driver-
|
|
157
|
-
"@wbce-d9/update-check": "10.0.0",
|
|
155
|
+
"@wbce-d9/storage-driver-cloudinary": "10.0.0",
|
|
158
156
|
"@wbce-d9/storage-driver-s3": "10.0.0",
|
|
159
|
-
"@wbce-d9/
|
|
157
|
+
"@wbce-d9/storage-driver-local": "10.0.0",
|
|
158
|
+
"@wbce-d9/utils": "10.0.0",
|
|
159
|
+
"@wbce-d9/update-check": "10.0.0"
|
|
160
160
|
},
|
|
161
161
|
"devDependencies": {
|
|
162
162
|
"@ngneat/falso": "6.4.0",
|