Skip to content

Commit 38c707c

Browse files
committed
chore(auth): Add oauth-client-info to Container
Because: - The fxa-mailer removes calls to oauth-client-info service This Commit: - Adds the OAuthClientInfo to the di container for handerls to access Closes:
1 parent 0eda038 commit 38c707c

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

packages/fxa-auth-server/bin/key_server.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,13 @@ async function run(config) {
381381
);
382382
Container.set(FxaMailer, fxaMailer);
383383

384+
const oauthClientInfo = require('../lib/senders/oauth_client_info');
385+
const { OAuthClientInfoServiceName } = oauthClientInfo;
386+
Container.set({
387+
id: OAuthClientInfoServiceName,
388+
factory: () => oauthClientInfo(log, database),
389+
});
390+
384391
const routes = require('../lib/routes')(
385392
log,
386393
serverPublicKeys,

packages/fxa-auth-server/lib/senders/oauth_client_info.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,5 @@ module.exports = (log, config) => {
8181
__clientCache: clientCache,
8282
};
8383
};
84+
85+
export const OAuthClientInfoServiceName = 'OAuthClientInfo';

0 commit comments

Comments
 (0)