Remote sync of webdav
This commit is contained in:
parent
f01186df79
commit
483fbeafb6
44 changed files with 4842 additions and 975 deletions
52
lib/services/cloud_oauth_config.dart
Normal file
52
lib/services/cloud_oauth_config.dart
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
/// Fill these in once the corresponding OAuth apps/registrations exist —
|
||||
/// see README.md "Manual setup required" for exact steps per provider.
|
||||
class CloudOAuthConfig {
|
||||
// --- Google Drive ---
|
||||
//
|
||||
// - Android sign-in (Credential Manager-based, as of google_sign_in v7)
|
||||
// authenticates using a *Web application* type OAuth client's ID, not
|
||||
// the Android client's own ID. The separate Android OAuth client
|
||||
// (registered with the package name + debug/release SHA-1) is still
|
||||
// required, but only to let Credential Manager verify this specific
|
||||
// signed app — its client ID itself is never referenced here.
|
||||
// - iOS uses its own iOS-type OAuth client ID directly.
|
||||
|
||||
/// The Web application OAuth client ID. Required for sign-in to work on
|
||||
/// Android.
|
||||
static const String? googleAndroidServerClientId = null; // TODO: fill in
|
||||
|
||||
/// The iOS OAuth client ID. Leave null if GIDClientID is instead set
|
||||
/// directly in ios/Runner/Info.plist.
|
||||
static const String? googleIosClientId = null; // TODO: fill in
|
||||
|
||||
// --- Dropbox ---
|
||||
//
|
||||
// From a "Full Dropbox" access app at dropbox.com/developers/apps.
|
||||
|
||||
/// The app's key (client ID for OAuth2 PKCE — no secret needed).
|
||||
static const String? dropboxAppKey = null; // TODO: fill in
|
||||
|
||||
/// Custom URL scheme redirect registered in the Dropbox app console.
|
||||
/// The scheme "mofueltaxback-dropbox" is already wired up in
|
||||
/// AndroidManifest.xml / Info.plist, so unless you have a reason to pick
|
||||
/// a different scheme, use exactly:
|
||||
/// "mofueltaxback-dropbox://oauth2redirect"
|
||||
static const String? dropboxRedirectUri = null; // TODO: fill in
|
||||
|
||||
// --- OneDrive (Microsoft Graph) ---
|
||||
//
|
||||
// From an app registration in Azure Portal → Entra ID → App
|
||||
// registrations, with Graph delegated permissions Files.ReadWrite.All +
|
||||
// offline_access, redirect URI registered as a "Mobile and desktop
|
||||
// application" platform.
|
||||
|
||||
/// The Application (client) ID from the Azure app registration.
|
||||
static const String? oneDriveClientId = null; // TODO: fill in
|
||||
|
||||
/// Custom URL scheme redirect registered in Azure. The scheme
|
||||
/// "mofueltaxback-onedrive" is already wired up in AndroidManifest.xml /
|
||||
/// Info.plist, so unless you have a reason to pick a different scheme,
|
||||
/// register and use exactly:
|
||||
/// "mofueltaxback-onedrive://auth"
|
||||
static const String? oneDriveRedirectUri = null; // TODO: fill in
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue