Add openid scope when redirecting to external openid provider

This commit is contained in:
kolaente 2020-12-08 19:33:35 +01:00
parent b4e0e7e2f6
commit ffde50453a
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -165,7 +165,7 @@ export default {
const state = Math.random().toString(36).substring(2, 24) const state = Math.random().toString(36).substring(2, 24)
localStorage.setItem('state', state) localStorage.setItem('state', state)
window.location.href = `${provider.authUrl}?client_id=${provider.clientId}&redirect_uri=${this.openidConnect.redirectUrl}${provider.key}&response_type=code&scope=&state=${state}` window.location.href = `${provider.authUrl}?client_id=${provider.clientId}&redirect_uri=${this.openidConnect.redirectUrl}${provider.key}&response_type=code&scope=openid&state=${state}`
}, },
}, },
} }