Verified Commit 018d8e62 authored by Chocobozzz's avatar Chocobozzz
Browse files

Fix openid cb route name

parent 65fdf71b
......@@ -87,9 +87,9 @@ async function register ({
})
const router = getRouter()
router.use('/id-token-cb', (req, res) => handleCb(peertubeHelpers, settingsManager, req, res))
router.use('/code-cb', (req, res) => handleCb(peertubeHelpers, settingsManager, req, res))
store.redirectUrl = peertubeHelpers.config.getWebserverUrl() + '/plugins/auth-openid-connect/router/id-token-cb'
store.redirectUrl = peertubeHelpers.config.getWebserverUrl() + '/plugins/auth-openid-connect/router/code-cb'
const secretKeyBuf = await getRandomBytes(16)
store.secretKey = secretKeyBuf.toString('hex')
......@@ -161,9 +161,6 @@ async function loadSettingsAndCreateClient (registerExternalAuth, unregisterExte
store.client = new issuer.Client(clientOptions)
// We already registered this external auth
if (store.userAuthenticated) return
const webserverUrl = config.getWebserverUrl()
const result = registerExternalAuth({
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment