@minimaltech/node-infra 0.5.9-28 → 0.5.9-29
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.
|
@@ -94,7 +94,7 @@ class DefaultOAuth2ExpressServer extends controllers_1.AbstractExpressRequestHan
|
|
|
94
94
|
});
|
|
95
95
|
return;
|
|
96
96
|
}
|
|
97
|
-
const oauth2Service = this.
|
|
97
|
+
const oauth2Service = this.injectionGetter('services.OAuth2Service');
|
|
98
98
|
const decryptedClient = oauth2Service.decryptClientToken({ token });
|
|
99
99
|
oauth2Service
|
|
100
100
|
.doOAuth2({
|
|
@@ -184,8 +184,8 @@ class AbstractOAuth2AuthenticationHandler {
|
|
|
184
184
|
}
|
|
185
185
|
const oauth2ClientRepository = this.injectionGetter('repositories.OAuth2ClientRepository');
|
|
186
186
|
const oauth2Client = yield oauth2ClientRepository.findOne({
|
|
187
|
-
where: {
|
|
188
|
-
fields: ['id', 'identifier', 'name', 'description', 'userId'],
|
|
187
|
+
where: { clientId },
|
|
188
|
+
fields: ['id', 'identifier', 'clientId', 'name', 'description', 'userId'],
|
|
189
189
|
});
|
|
190
190
|
if (!oauth2Client) {
|
|
191
191
|
throw (0, utilities_1.getError)({
|