async function enableOidc(config) {
  if (config.oidcConfigured()) {
    appLog.info('Enabling OIDC authentication strategy (via openid-client).');

    const baseUrl = config.get('baseUrl');
    const publicUrl = config.get('publicUrl');

    const issuer = await Issuer.discover(config.get('oidcIssuer'));

    const client = new issuer.Client({
      client_id: config.get('oidcClientId'),
      client_secret: config.get('oidcClientSecret'),
      redirect_uris: [`${publicUrl}${baseUrl}/auth/oidc/callback`],
      post_logout_redirect_uris: [`${publicUrl}${baseUrl}`],
    });

    passport.use(
      'oidc',
      new Strategy(
        {
          passReqToCallback: true,
          client,
          params: {
            scope: config.get('oidcScope') || 'openid profile email roles',
          },
        },
        openidClientHandler
      )
    );
  }
}
Adds OIDC auth strategy if OIDC auth is configured
@param {object} config