Skip to content

Commit

Permalink
Skip oidc setup during e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Keskimaki committed Aug 25, 2023
1 parent edf1adb commit 84a6231
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server/util/oidc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
} from 'openid-client'
import passport from 'passport'

import { inE2EMode } from '../../config'
import {
OIDC_ISSUER,
OIDC_CLIENT_ID,
Expand Down Expand Up @@ -74,6 +75,8 @@ const verifyLogin = async (
}

const setupAuthentication = async () => {
if (inE2EMode) return

const client = await getClient()

passport.serializeUser((user, done) => {
Expand Down

0 comments on commit 84a6231

Please sign in to comment.