Fix sending openid scopes when authenticating
This commit is contained in:
parent
0127ccf395
commit
188c97ae8f
1 changed files with 2 additions and 2 deletions
|
@ -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}`
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue