Commit graph

3035 commits

Author SHA1 Message Date
cketti
4efbf3d0d9 Add OAuth to auto discovery flow 2023-07-31 15:16:09 +02:00
cketti
8e7a5f3541 Add an AuthStateStorage parameter to ServerSettingsValidator
Typically we use `Account` to hold the (OAuth 2.0) authorization state. But during account setup we don't have an `Account` instance yet. So we allow a `ServerSettingsValidator` caller to pass an `AuthStateStorage` that we then use with `OAuth2TokenProviderFactory` to create an `OAuth2TokenProvider` instance. When setting up an account we can use an `AuthStateStorage` implementation that will simply hold the state in memory.
2023-07-29 23:36:02 +02:00
cketti
84f132c148 Add abstraction for storing and retrieving the OAuth state 2023-07-26 15:28:34 +02:00
Wolf-Martell Montwé
35020a1cb9
Add CheckIsGoogleSignIn and use GoogleSignInButton 2023-07-26 13:52:19 +02:00
cketti
d8598a64b3 Fix hostnames for Microsoft OAuth configuration 2023-07-20 14:50:39 +02:00
Wolf-Martell Montwé
ada21aebd1
Add AuthorizationRepository 2023-07-19 17:34:34 +02:00
cketti
0392f86a63 Extract values from ServerSettings when creating an IMAP account 2023-07-17 15:49:39 +02:00
cketti
8c35dd5b34 Log error when creating an account fails 2023-07-17 12:39:18 +02:00
cketti
037b39a566 Fix setting account name and sender name when creating an account 2023-07-17 12:37:44 +02:00
cketti
8b07c61d18 Use signature when one was configured during account setup 2023-07-17 12:22:26 +02:00
cketti
248fd3dc2a Set folderPushMode to NONE when creating account 2023-07-17 12:17:44 +02:00
cketti
588d7a7329 Use theme attribute to style outlined buttons 2023-07-12 18:28:30 +02:00
cketti
5ddffb1928 Use theme attributes instead of referencing TextAppearance styles directly 2023-07-12 18:20:30 +02:00
cketti
65c7d4bddf Remove K9.TextAppearance styles 2023-07-12 17:57:26 +02:00
cketti
b0e05ca4e4
Merge pull request #7004 from gitstart/K9-OSS-18
Message view: Account chip not displayed when viewing messages in a thread (from Unified Inbox)
2023-07-11 13:09:43 +02:00
cketti
f12ae161a2
Merge pull request #7003 from gitstart/K9-OSS-16
Deleting account doesn't change current color correctly
2023-07-10 12:59:09 +02:00
cketti
06005ac9f4
Merge pull request #7046 from thundernest/fix_changelog_layout
Fix changelog layout
2023-07-10 12:35:36 +02:00
cketti
6687f5dc18 Replace or remove usages of AppCompat styles 2023-07-04 12:52:20 +02:00
cketti
0f3dbff341 Fix changelog layout
The loading state wasn't displayed properly.
2023-07-04 12:43:39 +02:00
Wolf-Martell Montwé
878cc45c04
Merge pull request #7040 from thundernest/add_feature_flags
Add feature flags
2023-07-03 16:04:27 +02:00
Wolf-Martell Montwé
c781e7032d
Add FeatureFlagFactory to K9 app and use the flag in MessageList 2023-07-03 15:37:22 +02:00
Wolf-Martell Montwé
1aa69635f5
Add launch import settings 2023-07-03 15:30:57 +02:00
Wolf-Martell Montwé
771775c6c6
Disable new onboarding 2023-07-03 10:21:16 +02:00
Wolf-Martell Montwé
6cfd9481aa
Move AccountSetupFinishedLauncher to feature launcher 2023-07-03 10:21:14 +02:00
Wolf-Martell Montwé
9bf80c2266
Change AccountSetupFinishedLauncher to use custom intent for properly launching MessageList 2023-06-30 13:18:19 +02:00
Wolf-Martell Montwé
10e89e7e3e
Add onboarding entry point 2023-06-30 13:18:19 +02:00
Wolf-Martell Montwé
fe180f282d
Add createAccount use case to account setup 2023-06-30 12:13:16 +02:00
Wolf-Martell Montwé
5c076d4f69
Change AccountSetupExternalContract to suspend and wrap IO operations with coroutine IO dispatcher 2023-06-30 12:04:27 +02:00
Wolf-Martell Montwé
32a8f23dc7
Add create account use case 2023-06-30 12:04:27 +02:00
Wolf-Martell Montwé
1c142876d0
Add AccountOptions and state mapper 2023-06-30 12:04:27 +02:00
Wolf-Martell Montwé
5384350689
Add AccountCreator as external dependency for the account setup 2023-06-30 12:04:27 +02:00
Wolf-Martell Montwé
88a4b7913f
Add AccountOwnerNameProvider 2023-06-29 12:24:28 +02:00
Wolf-Martell Montwé
dbdbb25cdb
Add AccountSetupFinishedLauncher 2023-06-29 12:24:28 +02:00
Wolf-Martell Montwé
09c00f3bf8
Rename AccountCreator to AccountCreatorHelper 2023-06-29 12:24:28 +02:00
cketti
769f92c5a8 Fix fetching SuggestServerName via Koin 2023-06-27 18:46:15 +02:00
Wolf-Martell Montwé
a5d14de34a
Merge pull request #7026 from thundernest/refactor_oauth_flow
Refactor OAuthFlow
2023-06-26 14:18:10 +02:00
Wolf-Martell Montwé
1429327c69
Extract GetOAuthRequestIntent into own use case for use in the new account flow 2023-06-26 14:06:34 +02:00
cketti
46657ba23c
Merge pull request #7025 from thundernest/improve_send_failure_logging
Write error message to log when skipping message during send
2023-06-26 13:40:53 +02:00
cketti
ed49b34412
Merge pull request #7024 from thundernest/check_imap_server_settings
Add `ImapServerSettingsValidator`
2023-06-26 13:39:37 +02:00
cketti
4c8261089b Write error message to log when skipping message during send 2023-06-24 17:36:20 +02:00
cketti
1e42e92b1b Include more information in IMAP-specific ServerSettings
The additional properties are necessary to validate server settings.
2023-06-23 17:13:22 +02:00
cketti
6d53e41114 Use constructor injection for "clientIdAppName" 2023-06-23 14:35:12 +02:00
Wolf-Martell Montwé
5dfb37bfb0
Remove OAuth dependency from app.core 2023-06-23 11:52:13 +02:00
Wolf-Martell Montwé
526a6fe933
Refactor SuggestServerName 2023-06-23 11:46:05 +02:00
Wolf-Martell Montwé
03772c6a5c
Rename to SuggestServerName 2023-06-23 11:42:28 +02:00
Wolf-Martell Montwé
bbfc232975
Add feature:account:oauth module and move ServerNameSuggester there 2023-06-23 11:24:45 +02:00
Wolf-Martell Montwé
00148f1a99
Change OAuth to not use OAuthProvider enum and delegate configuration creation to the app 2023-06-21 14:05:28 +02:00
Wolf-Martell Montwé
e64d030d22
Refactor OauthConfiguration to be placed in common module with added OAuthProvder and OAuthProviderSettings 2023-06-20 15:17:47 +02:00
Wolf-Martell Montwé
9e0f1bd815
Resolve app.core dependency blocking oauth extraction 2023-06-20 15:17:45 +02:00
Wolf-Martell Montwé
141dd0974c
Resolve app.testing dependency blocking oauth extraction 2023-06-20 14:57:44 +02:00