Skip to content

Commit

Permalink
Add openIdconnect for swagger UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Nikitin committed Jul 5, 2023
1 parent 3a35048 commit 1081493
Show file tree
Hide file tree
Showing 3 changed files with 1,511 additions and 1,535 deletions.
9 changes: 1 addition & 8 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ dotenv.config()
import { UserInfo } from './controllers/user_info.js'
import path from 'path'

let swagger_options = {}
if (process.env.ENABLE_AUTHENTICATION === 'true') {
swagger_options = {
customJs: '/static/custom-button.js',
}
}

class App {
public express: express.Application

Expand Down Expand Up @@ -69,7 +62,7 @@ class App {
'/swagger',
swaggerUi.serve,
async (_req: express.Request, res: express.Response) => {
return res.send(swaggerUi.generateHTML(swaggerJSONDoc, swagger_options))
return res.send(swaggerUi.generateHTML(swaggerJSONDoc))
}
)
this.express.use(Authentication.handleError)
Expand Down
22 changes: 0 additions & 22 deletions src/static/custom-button.ts

This file was deleted.

Loading

0 comments on commit 1081493

Please sign in to comment.