Fix sending openid scopes when authenticating

This commit is contained in:
kolaente 2021-05-19 14:45:53 +02:00
parent 0127ccf395
commit 188c97ae8f
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -88,7 +88,7 @@
v-for="(p, k) in openidConnect.providers" v-for="(p, k) in openidConnect.providers"
:key="k" :key="k"
type="secondary" type="secondary"
class="is-fullwidth" class="is-fullwidth mt-2"
> >
Log in with {{ p.name }} Log in with {{ p.name }}
</x-button> </x-button>
@ -179,7 +179,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=openid&state=${state}` window.location.href = `${provider.authUrl}?client_id=${provider.clientId}&redirect_uri=${this.openidConnect.redirectUrl}${provider.key}&response_type=code&scope=openid email profile&state=${state}`
}, },
}, },
} }