mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-24 12:04:57 +01:00
Add client_uri, tos_uri and policy_uri client metadata
This commit is contained in:
parent
b899b347b6
commit
7aa7af4adf
@ -156,6 +156,10 @@ export class URLRouter<T extends {session: string | boolean}> implements IURLRou
|
||||
return window.location.origin;
|
||||
}
|
||||
|
||||
absoluteAppUrl(): string {
|
||||
return window.location.origin;
|
||||
}
|
||||
|
||||
absoluteUrlForAsset(asset: string): string {
|
||||
return (new URL('/assets/' + asset, window.location.origin)).toString();
|
||||
}
|
||||
|
@ -78,6 +78,9 @@ export class OidcApi {
|
||||
return {
|
||||
client_name: "Hydrogen Web",
|
||||
logo_uri: this._urlCreator.absoluteUrlForAsset("icon.png"),
|
||||
client_uri: this._urlCreator.absoluteAppUrl(),
|
||||
tos_uri: "https://element.io/terms-of-service",
|
||||
policy_uri: "https://element.io/privacy",
|
||||
response_types: ["code"],
|
||||
grant_types: ["authorization_code", "refresh_token"],
|
||||
redirect_uris: [this._urlCreator.createOIDCRedirectURL()],
|
||||
|
Loading…
Reference in New Issue
Block a user