mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-12-04 16:53:09 +00:00
Adapt OAuth2 implementation to Matrix Spec v1.18 (#34026)
* Adapt OAuth2 implementation to Matrix Spec v1.18 * Handle more cases of oidc->oauth * Fix test * Fix read back of oauth2 context * Iterate * Fix tests * Discard changes to apps/web/playwright/e2e/settings/account-user-settings-tab.spec.ts * Fix test * Fix test * Fix test * Potential fix for pull request finding 'Unused variable, import, function or class' Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> * Iterate * Iterate * Fix test --------- Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
38e29c51c4
commit
2bc9656957
@@ -15,7 +15,7 @@ import {
|
||||
type SSOFlow,
|
||||
type SSOAction,
|
||||
type IIdentityProvider,
|
||||
DELEGATED_OIDC_COMPATIBILITY,
|
||||
OAUTH_AWARE_PREFERRED_FLOW_FIELD,
|
||||
} from "matrix-js-sdk/src/matrix";
|
||||
import { type Signup } from "@matrix-org/analytics-events/types/typescript/Signup";
|
||||
import { Button, Tooltip } from "@vector-im/compound-web";
|
||||
@@ -90,7 +90,7 @@ const SSOButton: React.FC<ISSOButtonProps> = ({
|
||||
let label: string;
|
||||
if (idp) {
|
||||
label = _t("auth|continue_with_idp", { provider: idp.name });
|
||||
} else if (DELEGATED_OIDC_COMPATIBILITY.findIn<boolean>(flow)) {
|
||||
} else if (OAUTH_AWARE_PREFERRED_FLOW_FIELD.findIn<boolean>(flow)) {
|
||||
label = _t("action|continue");
|
||||
} else {
|
||||
label = _t("auth|sign_in_with_sso");
|
||||
|
||||
Reference in New Issue
Block a user