emailengine-app 2.67.1 → 2.67.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/.github/workflows/test.yml +4 -0
- package/CHANGELOG.md +7 -0
- package/lib/oauth2-apps.js +2 -5
- package/package.json +1 -1
|
@@ -84,3 +84,7 @@ jobs:
|
|
|
84
84
|
OUTLOOK_SERVICE_TENANT_ID: ${{ secrets.OUTLOOK_SERVICE_TENANT_ID }}
|
|
85
85
|
OUTLOOK_SERVICE_CLIENT_SECRET: ${{ secrets.OUTLOOK_SERVICE_CLIENT_SECRET }}
|
|
86
86
|
OUTLOOK_SERVICE_ACCOUNT_EMAIL: ${{ secrets.OUTLOOK_SERVICE_ACCOUNT_EMAIL }}
|
|
87
|
+
GMAIL_SERVICE_POSTALSYS_CLIENT: ${{ secrets.GMAIL_SERVICE_POSTALSYS_CLIENT }}
|
|
88
|
+
GMAIL_SERVICE_POSTALSYS_SERVICE_EMAIL: ${{ secrets.GMAIL_SERVICE_POSTALSYS_SERVICE_EMAIL }}
|
|
89
|
+
GMAIL_SERVICE_POSTALSYS_KEY: ${{ secrets.GMAIL_SERVICE_POSTALSYS_KEY }}
|
|
90
|
+
GMAIL_SERVICE_POSTALSYS_ACCOUNT_EMAIL: ${{ secrets.GMAIL_SERVICE_POSTALSYS_ACCOUNT_EMAIL }}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.67.2](https://github.com/postalsys/emailengine/compare/v2.67.1...v2.67.2) (2026-04-21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* restore IMAP XOAUTH2 path for gmailService accounts ([d2ebe9b](https://github.com/postalsys/emailengine/commit/d2ebe9b3c19cd0bcaaf0fa17d40148f79dd7cd2b))
|
|
9
|
+
|
|
3
10
|
## [2.67.1](https://github.com/postalsys/emailengine/compare/v2.67.0...v2.67.1) (2026-04-17)
|
|
4
11
|
|
|
5
12
|
|
package/lib/oauth2-apps.js
CHANGED
|
@@ -1671,12 +1671,9 @@ class OAuth2AppsHandler {
|
|
|
1671
1671
|
}
|
|
1672
1672
|
}
|
|
1673
1673
|
|
|
1674
|
-
|
|
1675
|
-
* Returns true if the given OAuth2 app uses API-based access (Graph API, Gmail API)
|
|
1676
|
-
* rather than IMAP/SMTP. Service account providers always use API access.
|
|
1677
|
-
*/
|
|
1674
|
+
// gmailService uses JWT -> IMAP XOAUTH2, so it is NOT API-based even though it is a service-account provider.
|
|
1678
1675
|
function isApiBasedApp(app) {
|
|
1679
|
-
return app && (app.baseScopes === 'api' ||
|
|
1676
|
+
return app && (app.baseScopes === 'api' || app.provider === 'outlookService');
|
|
1680
1677
|
}
|
|
1681
1678
|
|
|
1682
1679
|
module.exports = {
|