Skip to content

Commit

Permalink
Suppress password auth in presence of OIDC
Browse files Browse the repository at this point in the history
  • Loading branch information
KitsuneRal committed Jan 16, 2025
1 parent 61f5f5a commit 97a07d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Quotient/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -970,6 +970,9 @@ std::optional<LoginFlow> Connection::getLoginFlow(const QString& flowType) const

bool Connection::supportsPasswordAuth() const
{
if (auto ssoFlow = getLoginFlow(LoginFlowTypes::SSO);
ssoFlow && ssoFlow->delegatedOidcCompatibility)
return false; // See MSC3824
return d->supportsLoginFlow(LoginFlowTypes::Password);
}

Expand Down

0 comments on commit 97a07d4

Please sign in to comment.