Skip to content
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

Skip login type selection when logging in via intent #1267

Open
wants to merge 6 commits into
base: main-ose
Choose a base branch
from

Conversation

sunkup
Copy link
Member

@sunkup sunkup commented Jan 27, 2025

Purpose

When DAVx5 is opened via intent containing a valid Email or URL (not nextcloud login flow), there is no need to show the login type page. We should open either the Email or URL login page directly.

Short description

  • Add support for "mailto" scheme
  • Always skip login type page if not default login type (Email, URL or Nextcloud)

Use for testing:

adb shell am start -d caldavs://user:[email protected]:444/path at.bitfire.davdroid/.ui.setup.LoginActivity

adb shell am start -d mailto:[email protected] at.bitfire.davdroid/.ui.setup.LoginActivity

adb shell am start -d mailto:[email protected] --es password 123 at.bitfire.davdroid/.ui.setup.LoginActivity

Checklist

  • The PR has a proper title, description and label.
  • I have self-reviewed the PR.
  • I have added documentation to complex functions and functions that can be used by other modules.
  • I have added reasonable tests or consciously decided to not add tests.

@sunkup sunkup added the bug Something isn't working label Jan 27, 2025
@sunkup sunkup self-assigned this Jan 27, 2025
@sunkup sunkup linked an issue Jan 27, 2025 that may be closed by this pull request
2 tasks
@sunkup sunkup force-pushed the 1244-login-over-intent-doesnt-directly-go-to-correct-login-page branch 4 times, most recently from 15ab34e to 7b6d20a Compare January 30, 2025 12:14
@sunkup sunkup requested a review from ArnyminerZ January 30, 2025 12:22
@sunkup sunkup marked this pull request as ready for review January 30, 2025 12:22
@sunkup sunkup force-pushed the 1244-login-over-intent-doesnt-directly-go-to-correct-login-page branch from 7b6d20a to 3a5b0b1 Compare February 3, 2025 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Login over Intent doesn't directly go to correct login page
1 participant