2022-07-14 15:03:34 +02:00
|
|
|
/*
|
2024-09-09 14:57:16 +01:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2022-07-14 15:03:34 +02:00
|
|
|
Copyright 2022 The Matrix.org Foundation C.I.C.
|
|
|
|
|
|
2025-01-06 11:18:54 +00:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
|
2024-09-09 14:57:16 +01:00
|
|
|
Please see LICENSE files in the repository root for full details.
|
2022-07-14 15:03:34 +02:00
|
|
|
*/
|
|
|
|
|
|
2025-02-05 13:25:06 +00:00
|
|
|
import { type OidcClientConfig } from "matrix-js-sdk/src/matrix";
|
2023-06-22 22:15:44 +12:00
|
|
|
|
2023-05-05 09:11:14 +01:00
|
|
|
export interface ValidatedServerConfig {
|
|
|
|
|
hsUrl: string;
|
|
|
|
|
hsName: string;
|
|
|
|
|
hsNameIsDifferent: boolean;
|
2022-07-14 15:03:34 +02:00
|
|
|
|
2023-05-05 09:11:14 +01:00
|
|
|
isUrl: string;
|
2022-07-14 15:03:34 +02:00
|
|
|
|
2023-05-05 09:11:14 +01:00
|
|
|
isDefault: boolean;
|
2022-07-14 15:03:34 +02:00
|
|
|
// when the server config is based on static URLs the hsName is not resolvable and things may wish to use hsUrl
|
2023-05-05 09:11:14 +01:00
|
|
|
isNameResolvable: boolean;
|
2022-07-14 15:03:34 +02:00
|
|
|
|
2023-05-05 09:11:14 +01:00
|
|
|
warning: string | Error;
|
2023-06-13 13:43:25 +12:00
|
|
|
|
2023-06-22 22:15:44 +12:00
|
|
|
/**
|
|
|
|
|
* Config related to delegated authentication
|
2024-02-23 16:43:14 +00:00
|
|
|
* Included when delegated auth is configured and valid, otherwise undefined.
|
|
|
|
|
* From issuer's .well-known/openid-configuration.
|
|
|
|
|
* Used for OIDC native flow authentication.
|
2023-06-22 22:15:44 +12:00
|
|
|
*/
|
2023-07-10 12:57:16 +12:00
|
|
|
delegatedAuthentication?: OidcClientConfig;
|
2022-07-14 15:03:34 +02:00
|
|
|
}
|