-
Notifications
You must be signed in to change notification settings - Fork 46
feat(logout): handle session expiration (AR-1556) #777
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
Merged
Merged
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
bd8cd09
feat(logout): handle logout and session expiration
mchenani 9fa3202
feat(logout): handle logout and session expiration
mchenani 8dc81a3
refactor authSession subclasses and fix some issues
mchenani 1d0d65d
refactor authSession subclasses and fix some issues
mchenani f5f41ce
handled different auth session states
mchenani bd153b0
Merge branch 'develop' of https://github.com/wireapp/wire-android-rel…
mchenani b5e2ed2
add logout reason
mchenani 2431035
Merge branch 'develop' of https://github.com/wireapp/wire-android-rel…
mchenani 7bdea20
handle all states and refactor authsession
mchenani ab64105
refactor ui message in login screen
mchenani 08f72f0
Merge branch 'develop' of https://github.com/wireapp/wire-android-rel…
mchenani cc4277a
Merge branch 'develop' of https://github.com/wireapp/wire-android-rel…
mchenani 2508baa
Merge branch 'develop' of https://github.com/wireapp/wire-android-rel…
mchenani cd2676f
ci: add kalium ref validation workflow
tmspzz 7a59139
ci: improve kalium ref validation workflow
tmspzz d6b6952
ci: improve kalium ref validation workflow
tmspzz 2487d39
ci: improve kalium ref validation workflow
tmspzz adc9e36
ci: improve kalium ref validation workflow
tmspzz c6e6c96
ci: improve kalium ref validation workflow
tmspzz ae0d406
ci: improve kalium ref validation workflow
tmspzz fa0e168
ci: improve kalium ref validation workflow
tmspzz 2891b1a
ci: improve kalium ref validation workflow
tmspzz b5656f5
ci: improve kalium ref validation workflow
tmspzz a1fd764
ci: improve kalium ref validation workflow
tmspzz 6b7c626
ci: improve kalium ref validation workflow
tmspzz 3c7441d
ci: improve kalium ref validation workflow
tmspzz 1bf7446
ci: improve kalium ref validation workflow
tmspzz ceb01f7
ci: improve kalium ref validation workflow
tmspzz 8c0a70f
ci: improve kalium ref validation workflow
tmspzz 5e1f286
ci: improve kalium ref validation workflow
tmspzz fe9073d
apply invalid session to ar
mchenani a7c8ba1
refactor LoginError
mchenani 49b4b8f
Merge branch 'develop' of https://github.com/wireapp/wire-android-rel…
mchenani 71f6bf9
fix styles
mchenani 714257d
ci: improve kalium ref validation workflow
tmspzz 73c78a0
ci: improve kalium ref validation workflow
tmspzz d33338d
ci: improve kalium ref validation workflow
tmspzz 0a79f91
ci: improve kalium ref validation workflow
tmspzz f2bf813
ci: improve kalium ref validation workflow
tmspzz 14c4c29
ci: improve kalium ref validation workflow
tmspzz 86f4783
ci: improve kalium ref validation workflow
tmspzz a404b5a
ci: improve kalium ref validation workflow
tmspzz a9683a4
update kalium ref
mchenani ff8222b
Merge branch 'develop' into feat/AR-1656_handle_session_expiration
mchenani 3112171
Merge branch 'develop' of https://github.com/wireapp/wire-android-rel…
mchenani 6dd21e1
fix tests
mchenani ebaf8af
update kalium ref
mchenani 47be419
fix showing error conditions
mchenani 00fc823
update kalium ref
mchenani 4cd3be1
Merge branch 'develop' of https://github.com/wireapp/wire-android-rel…
mchenani dd96aab
separate sso and email loading variables
mchenani File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
app/src/main/kotlin/com/wire/android/di/UserSessionsUseCaseProvider.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| package com.wire.android.di | ||
|
|
||
| import com.wire.kalium.logic.CoreLogic | ||
| import com.wire.kalium.logic.feature.session.GetSessionsUseCase | ||
| import dagger.assisted.AssistedFactory | ||
| import dagger.assisted.AssistedInject | ||
|
|
||
| class UserSessionsUseCaseProvider @AssistedInject constructor( | ||
| @KaliumCoreLogic private val coreLogic: CoreLogic, | ||
| ) { | ||
| val sessionsUseCase: GetSessionsUseCase | ||
| get() = coreLogic.getGlobalScope().getSessions | ||
|
|
||
| @AssistedFactory | ||
| interface Factory { | ||
| fun create(): UserSessionsUseCaseProvider | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.