mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-24 20:14:53 +01:00
Add client_uri, tos_uri and policy_uri client metadata
This commit is contained in:
parent
f1cc22a920
commit
897fc54103
@ -129,6 +129,10 @@ export class URLRouter {
|
||||
return window.location.origin;
|
||||
}
|
||||
|
||||
absoluteAppUrl() {
|
||||
return window.location.origin;
|
||||
}
|
||||
|
||||
absoluteUrlForAsset(asset) {
|
||||
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