mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-23 10:41:38 +01:00
Use unstable OIDC scope names
This commit is contained in:
parent
3dc4a4c690
commit
34627f498f
@ -59,7 +59,7 @@ export class StartOIDCLoginViewModel extends ViewModel {
|
||||
async startOIDCLogin() {
|
||||
const deviceScope = this._api.generateDeviceScope();
|
||||
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(),
|
||||
});
|
||||
const clientId = await this._api.clientId();
|
||||
|
@ -233,7 +233,7 @@ export class OidcApi {
|
||||
|
||||
generateDeviceScope(): String {
|
||||
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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user