Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Add support for IS v2 API with authentication #3256

Merged
merged 14 commits into from
Jul 30, 2019
Merged

Conversation

jryans
Copy link
Collaborator

@jryans jryans commented Jul 29, 2019

This adds support for the IS v2 API in all existing IS usages. A new auth client object checks for an IS token as needed. All IS call sites pass along the token.

This will fall back to v1 APIs if v2 is not supported for the moment, but this will eventually be removed once servers are updated.

Implements part of MSC2140
Fixes element-hq/element-web#10408
Depends on matrix-org/matrix-js-sdk#1002

@jryans jryans requested a review from a team July 29, 2019 15:14
src/AddThreepid.js Outdated Show resolved Hide resolved
src/IdentityAuthClient.js Outdated Show resolved Hide resolved
Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

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

lgtm - just need some minor issues opened

src/IdentityAuthClient.js Show resolved Hide resolved
@turt2live
Copy link
Member

@jryans you have merge conflicts now fwiw

@jryans jryans force-pushed the jryans/is-v2-auth branch from 33f2cac to 92dbb58 Compare July 30, 2019 16:58
@jryans jryans merged commit a9a33f5 into develop Jul 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Identity server v2 API authentication
2 participants