Skip to content

Commit 035b3be

Browse files
abdalmajeed-yotilaurent-yoti
authored andcommitted
Support central auth token.
1 parent 49653fe commit 035b3be

30 files changed

Lines changed: 1008 additions & 153 deletions

config/yoti.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const yoti = {
66
connectApi: process.env.YOTI_CONNECT_API || process.env.YOTI_API_URL || `${constants.API_BASE_URL}/api/v1`,
77
idvApi: process.env.YOTI_IDV_API || process.env.YOTI_IDV_API_URL || `${constants.API_BASE_URL}/idverify/v1`,
88
digitalIdentityApi: process.env.YOTI_DIGITAL_IDENTITY_API_URL || `${constants.API_BASE_URL}/share`,
9+
authApi: process.env.YOTI_AUTH_API_URL || `${constants.AUTH_API_BASE_URL}/v1/oauth/token`,
910
};
1011

1112
module.exports = yoti;

index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ const {
6464
const YotiCommon = require('./src/yoti_common');
6565
const { YotiRequest } = require('./src/request/request');
6666
const IDVError = require('./src/idv_service/idv.error');
67+
const {
68+
AuthTokenStrategy,
69+
AuthTokenGenerator,
70+
CreateAuthenticationTokenResponse,
71+
} = require('./src/auth');
6772

6873
module.exports = {
6974
internals: {
@@ -124,4 +129,7 @@ module.exports = {
124129
AdvancedIdentityProfileBuilder,
125130
AdvancedIdentityProfileSchemeBuilder,
126131
AdvancedIdentityProfileRequirementsBuilder,
132+
AuthTokenStrategy,
133+
AuthTokenGenerator,
134+
CreateAuthenticationTokenResponse,
127135
};

package-lock.json

Lines changed: 187 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
},
3535
"dependencies": {
3636
"form-data": "4.0.4",
37+
"jsonwebtoken": "9.0.3",
3738
"node-forge": "1.4.0",
3839
"protobufjs": "8.0.1",
3940
"superagent": "10.3.0",

0 commit comments

Comments
 (0)