moallemi / Film-Time

A Movie and TV shows tracking app illustrating Android development best practices with Jetpack Compose
MIT License
48 stars 10 forks source link

[FR]: Use Chrome Custom Tabs for trakt login #78

Closed moallemi closed 4 weeks ago

moallemi commented 4 weeks ago

Is there an existing issue for this?

Related app

Mobile - Android

Describe the problem

Acceptance Criteria

  1. Triggering Authentication

    • Given I am a user who is not authenticated with Trakt,
    • When I navigate to the login screen and choose to log in with Trakt,
    • Then the application should open a Chrome Custom Tab for the Trakt authentication process.
  2. Handling the Redirect URI

    • Given I have successfully authenticated with Trakt via the Chrome Custom Tab,
    • When Trakt redirects me back to the app with the authentication token,
    • Then the application should capture the token and close the Chrome Custom Tab.
  3. Fallback Mechanism

    • Given Chrome Custom Tabs are not available on my device,
    • When I initiate the login process with Trakt,
    • Then the application should fall back to using the default web browser.
  4. User Experience

    • Given the Chrome Custom Tab is opened,
    • When I am viewing the authentication page,
    • Then the tab should display the Trakt login page with a toolbar that includes the app's color scheme and a close button.
  5. Security

    • Given the use of Chrome Custom Tabs,
    • When handling the Trakt authentication,
    • Then the session should be secure, utilizing Chrome's in-built security mechanisms to prevent potential threats such as man-in-the-middle attacks.

Describe the solution

No response

Additional context

No response

Code of Conduct