-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(e2ei): force login to idp to update certificate (WPB-6877) #2743
fix(e2ei): force login to idp to update certificate (WPB-6877) #2743
Conversation
Build 3351 failed. |
Build 3392 failed. |
…-cherry-pick # Conflicts: # app/src/main/kotlin/com/wire/android/ui/e2eiEnrollment/GetE2EICertificateUI.kt # kalium
@@ -43,7 +43,7 @@ fun GetE2EICertificateUI( | |||
LaunchedEffect(Unit) { | |||
viewModel.requestOAuthFlow.onEach { | |||
OAuthUseCase(context, it.target, it.oAuthClaims, it.oAuthState).launch( | |||
context.getActivity()!!.activityResultRegistry | |||
context.getActivity()!!.activityResultRegistry, forceLoginFlow = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the only place where OAuthUseCase.launch
is called so the parameter forceLoginFlow
is always true. What is the point of it then?
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #2743 +/- ##
===========================================
- Coverage 43.19% 43.14% -0.05%
===========================================
Files 409 409
Lines 13583 13583
Branches 2397 2398 +1
===========================================
- Hits 5867 5861 -6
- Misses 7029 7036 +7
+ Partials 687 686 -1
... and 2 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
APKs built during tests are available here. Scroll down to Artifacts! |
Build 3424 succeeded. The build produced the following APK's: |
Cherry pick from the original PR:
app/src/main/kotlin/com/wire/android/ui/e2eiEnrollment/GetE2EICertificateUI.kt
kalium
PR Submission Checklist for internal contributors
The PR Title
The PR Description
What's new in this PR?
Since the update mechanism and design required some extra work, and we already have couple of suggestion about other approaches, we decided to enforce the user to login everytime agains the idp and not using the refresh token.
PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References