Use unstable OIDC scope names

This commit is contained in:
Hugh Nimmo-Smith 2022-08-03 17:18:30 +01:00
parent 3dc4a4c690
commit 34627f498f
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -233,7 +233,7 @@ export class OidcApi {
generateDeviceScope(): String { generateDeviceScope(): String {
const deviceId = randomString(10); const deviceId = randomString(10);
return `urn:matrix:device:${deviceId}`; return `urn:matrix:org.matrix.msc2967.client:device:${deviceId}`;
} }
generateParams({ scope, redirectUri }: { scope: string, redirectUri: string }): AuthorizationParams { generateParams({ scope, redirectUri }: { scope: string, redirectUri: string }): AuthorizationParams {