1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-05 23:10:41 +03:00

Iterate Multi-SSO support

This commit is contained in:
Michael Telatynski
2020-11-24 12:09:11 +00:00
parent b1ca1eb3f5
commit f7d7182dc9
7 changed files with 100 additions and 79 deletions

View File

@@ -29,8 +29,8 @@ interface ILoginOptions {
}
// TODO: Move this to JS SDK
interface ILoginFlow {
type: "m.login.password" | "m.login.cas";
interface IPasswordFlow {
type: "m.login.password";
}
export interface IIdentityProvider {
@@ -40,13 +40,13 @@ export interface IIdentityProvider {
}
export interface ISSOFlow {
type: "m.login.sso";
type: "m.login.sso" | "m.login.cas";
// eslint-disable-next-line camelcase
identity_providers: IIdentityProvider[];
"org.matrix.msc2858.identity_providers": IIdentityProvider[]; // Unstable prefix for MSC2858
}
export type LoginFlow = ISSOFlow | ILoginFlow;
export type LoginFlow = ISSOFlow | IPasswordFlow;
// TODO: Move this to JS SDK
/* eslint-disable camelcase */