Better adhere to MSC process
This commit is contained in:
parent
983ffe98ff
commit
940fdb8e2f
2 changed files with 1 additions and 3 deletions
|
@ -41,8 +41,6 @@ export interface IIdentityProvider {
|
||||||
|
|
||||||
export interface ISSOFlow {
|
export interface ISSOFlow {
|
||||||
type: "m.login.sso" | "m.login.cas";
|
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
|
"org.matrix.msc2858.identity_providers": IIdentityProvider[]; // Unstable prefix for MSC2858
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -79,7 +79,7 @@ interface IProps {
|
||||||
}
|
}
|
||||||
|
|
||||||
const SSOButtons: React.FC<IProps> = ({matrixClient, flow, loginType, fragmentAfterLogin, primary}) => {
|
const SSOButtons: React.FC<IProps> = ({matrixClient, flow, loginType, fragmentAfterLogin, primary}) => {
|
||||||
const providers = flow.identity_providers || flow["org.matrix.msc2858.identity_providers"] || [];
|
const providers = flow["org.matrix.msc2858.identity_providers"] || [];
|
||||||
if (providers.length < 2) {
|
if (providers.length < 2) {
|
||||||
return <div className="mx_SSOButtons">
|
return <div className="mx_SSOButtons">
|
||||||
<SSOButton
|
<SSOButton
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue