-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(infitx/iprod-93): used https.Agent for WSO2 requests in api-svc (#…
…457) * IPROD-93 used https.Agent for WSO2 requests * IPROD-93 used https.Agent for WSO2 requests * IPROD-93 used https.Agent for WSO2 requests * IPROD-93 used https.Agent for WSO2 requests * IPROD-93 added OUTBOUND_MUTUAL_TLS_USE_FILES env var * feat(iprod-93): added OUT_USE_CERT_FILES_FOR_AUTH env var for OIDC endpoint * fix: updated deps * fix: updated deps * fix: updated audit-ci.jsonc * fix: used updated dk-standard-components snapshot * chore(snapshot): 23.5.0-snapshot.0 * fix: used updated dk-standard-components snapshot
- Loading branch information
Showing
12 changed files
with
2,456 additions
and
1,455 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const { WSO2Auth } = require('@mojaloop/sdk-standard-components'); | ||
|
||
const createAuthClient = (conf, logger) => { | ||
const { wso2, outbound } = conf; | ||
|
||
const auth = new WSO2Auth({ | ||
...wso2.auth, | ||
logger, | ||
tlsCreds: wso2.mTlsEnabled && outbound.tls.creds, | ||
}); | ||
|
||
return Object.freeze({ | ||
auth, | ||
retryWso2AuthFailureTimes: wso2.requestAuthFailureRetryTimes, | ||
}); | ||
}; | ||
|
||
module.exports = { | ||
createAuthClient, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.