Skip to content

Commit

Permalink
Merge pull request #1277 from gchq/bugfix-remove-urlencoded-bodyparser
Browse files Browse the repository at this point in the history
  • Loading branch information
a3957273 authored May 20, 2024
2 parents ced98b4 + 66d1a94 commit 9089ee6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions backend/src/connectors/authentication/oauth.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import parser from 'body-parser'
import MongoStore from 'connect-mongo'
import { NextFunction, Request, Response, Router } from 'express'
import session from 'express-session'
Expand Down Expand Up @@ -34,7 +33,6 @@ export class OauthAuthenticationConnector extends BaseAuthenticationConnector {
mongoUrl: getConnectionURI(),
}),
}),
parser.urlencoded({ extended: true }),
grant.default.express(config.oauth.grant),
this.getRoutes(),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ exports[`connectors > authentication > oauth > authenticationMiddleware > return
{
"session": "session middleware",
},
"body parser middleware",
"grant middleware",
[Function],
],
Expand Down

0 comments on commit 9089ee6

Please sign in to comment.