Skip to content

Adapt OAuth2 implementation to Matrix Spec v1.18#34026

Open
t3chguy wants to merge 17 commits into
developfrom
t3chguy/oauth
Open

Adapt OAuth2 implementation to Matrix Spec v1.18#34026
t3chguy wants to merge 17 commits into
developfrom
t3chguy/oauth

Conversation

@t3chguy

@t3chguy t3chguy commented Jun 29, 2026

Copy link
Copy Markdown
Member

Requires matrix-org/matrix-js-sdk#5390
Fixes Fixes #32617

Comment thread apps/web/src/utils/oauth/persistOAuthSettings.ts Dismissed
Comment thread apps/web/src/utils/oauth/persistOAuthSettings.ts Dismissed
Comment thread apps/web/playwright/e2e/settings/account-user-settings-tab.spec.ts Fixed
…tion or class'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
…o t3chguy/oauth

# Conflicts:
#	apps/web/src/contexts/SDKContext.ts
#	apps/web/test/unit-tests/components/structures/MatrixChat-test.tsx
#	apps/web/test/unit-tests/components/views/settings/tabs/user/SessionManagerTab-test.tsx
#	apps/web/test/unit-tests/contexts/SdkContext-test.ts

const cli = useMatrixClientContext();
const sdkContext = useContext(SDKContext);
const cli = sdkContext.client!;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A reason to not use anymore the matrix client hook? To avoid circular import?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just no point using two contexts when one provides both values, MatrixClientContext is such that it claims you always have a client but it can actually return null so this is no less safe.

t3chguy added 2 commits July 6, 2026 09:26
…o t3chguy/oauth

# Conflicts:
#	apps/web/src/Lifecycle.ts
#	apps/web/src/MatrixClientPeg.ts
#	apps/web/test/unit-tests/Lifecycle-test.ts
#	apps/web/test/unit-tests/MatrixClientPeg-test.ts
#	apps/web/test/unit-tests/components/structures/MatrixChat-test.tsx
…o t3chguy/oauth

# Conflicts:
#	apps/web/src/IConfigOptions.ts
#	apps/web/src/Lifecycle.test.ts
#	apps/web/src/Lifecycle.ts
#	apps/web/src/components/views/spaces/SpacePanel.tsx
#	apps/web/src/contexts/SDKContextClass.ts
#	apps/web/src/vector/app.test.ts
#	apps/web/src/viewmodels/menus/UserMenuViewModel.ts
#	apps/web/test/unit-tests/components/structures/MatrixChat-test.tsx
#	apps/web/test/unit-tests/components/views/settings/tabs/user/AccountUserSettingsTab-test.tsx
#	apps/web/test/unit-tests/components/views/settings/tabs/user/SessionManagerTab-test.tsx
#	apps/web/test/viewmodels/menus/UserMenuViewModel-test.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OAuth 2.0-based login fail if the device clock is not in sync

3 participants