Skip to content

Commit

Permalink
refactor(nms): Move fbc_js_core middleware into server
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Schmitt <thomas.schmitt@tngtech.com>
  • Loading branch information
thmsschmitt committed May 12, 2022
1 parent e0f97b7 commit 6f555ef
Show file tree
Hide file tree
Showing 15 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion nms/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@ module.exports = {
'babelRegister.js',
'jest.config.js',
'jest.*.config.js',
'fbc_js_core/express_middleware/**/*.js',
'fbc_js_core/platform_server/**/*.js',
'fbc_js_core/sequelize_models/**/*.js',
'fbc_js_core/util/yarn.js',
Expand Down
2 changes: 1 addition & 1 deletion nms/server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import {
organizationMiddleware,
sessionMiddleware,
webpackSmartMiddleware,
} from '../fbc_js_core/express_middleware';
} from './middleware';
import {distPath} from '../config/paths';
import {sequelize} from '../fbc_js_core/sequelize_models';
import {unprotectedUserRoutes} from '../server/auth/express';
Expand Down
2 changes: 1 addition & 1 deletion nms/server/auth/oidc/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @format
*/

import type {OrganizationMiddlewareRequest} from '../../../fbc_js_core/express_middleware/organizationMiddleware';
import type {OrganizationMiddlewareRequest} from '../../../server/middleware/organizationMiddleware';

import {Issuer} from 'openid-client';

Expand Down
2 changes: 1 addition & 1 deletion nms/server/auth/organization.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @format
*/

import type {FBCNMSMiddleWareRequest} from '../../fbc_js_core/express_middleware';
import type {FBCNMSMiddleWareRequest} from '../../server/middleware';

export async function injectOrganizationParams<T: {[string]: any}>(
req: FBCNMSMiddleWareRequest,
Expand Down
2 changes: 1 addition & 1 deletion nms/server/auth/passport.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import passport from 'passport';
import {User} from '../../fbc_js_core/sequelize_models';

import type {FBCNMSMiddleWareRequest} from '../../fbc_js_core/express_middleware';
import type {FBCNMSMiddleWareRequest} from '../../server/middleware';
import type {UserType} from '../../fbc_js_core/sequelize_models/models/user';

type OutputRequest<T> = {
Expand Down
2 changes: 1 addition & 1 deletion nms/server/auth/strategies/BearerStrategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @format
*/

import type {FBCNMSMiddleWareRequest} from '../../../fbc_js_core/express_middleware';
import type {FBCNMSMiddleWareRequest} from '../../../server/middleware';

import {Strategy} from 'passport-http-bearer';
import {clientFromRequest} from '../oidc/client';
Expand Down
2 changes: 1 addition & 1 deletion nms/server/auth/strategies/DynamicStrategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @format
*/

import type {FBCNMSMiddleWareRequest} from '../../../fbc_js_core/express_middleware';
import type {FBCNMSMiddleWareRequest} from '../../../server/middleware';

import {Strategy} from 'passport-strategy';

Expand Down
2 changes: 1 addition & 1 deletion nms/server/auth/strategies/OrganizationLocalStrategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @format
*/

import type {FBCNMSMiddleWareRequest} from '../../../fbc_js_core/express_middleware';
import type {FBCNMSMiddleWareRequest} from '../../../server/middleware';
import type {UserType} from '../../../fbc_js_core/sequelize_models/models/user.js';

import bcrypt from 'bcryptjs';
Expand Down
2 changes: 1 addition & 1 deletion nms/server/auth/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @format
*/

import type {FBCNMSMiddleWareRequest} from '../../fbc_js_core/express_middleware';
import type {FBCNMSMiddleWareRequest} from '../../server/middleware';
import type {UserRawType} from '../../fbc_js_core/sequelize_models/models/user';
import type {UserType} from '../../fbc_js_core/sequelize_models/models/user.js';

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6f555ef

Please sign in to comment.