Fix sending openid scopes when authenticating
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2021-05-19 14:45:53 +02:00
parent 0127ccf395
commit 188c97ae8f
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@
v-for="(p, k) in openidConnect.providers"
:key="k"
type="secondary"
class="is-fullwidth"
class="is-fullwidth mt-2"
>
Log in with {{ p.name }}
</x-button>
@ -179,7 +179,7 @@ export default {
const state = Math.random().toString(36).substring(2, 24)
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}`
},
},
}