Request urn:matrix:api:* scope for OIDC

This commit is contained in:
Hugh Nimmo-Smith 2022-07-25 08:58:04 +01:00 committed by Quentin Gliech
parent 154bae239a
commit 391e696bed
No known key found for this signature in database
GPG Key ID: 22D62B84552719FC

View File

@ -48,7 +48,7 @@ export class StartOIDCLoginViewModel extends ViewModel {
async startOIDCLogin() {
const deviceScope = this._api.generateDeviceScope();
const p = this._api.generateParams({
scope: `openid ${deviceScope}`,
scope: `openid urn:matrix:api:* ${deviceScope}`,
redirectUri: this.urlCreator.createOIDCRedirectURL(),
});
const clientId = await this._api.clientId();