Skip to content

Cognito authentication with Google: no redirection to linux app  #5238

Open
@Romain-Guillot

Description

@Romain-Guillot

Description

When I set up Cognito authentication and run the application on Linux, the redirection does not redirect to the application when logging in with an external provider (Google): nothing happens, just a page with "Not Found"

(Note that it works as expected when running in web mode).

here the results from the repo step for running on linux :

I provided a minimal example with the demo application from the doc (Gen2) Flutter / Get Started / Quickstart.

The documentation mentions "No specific platform configuration is required." Did I miss a configuration step?

  • OS: Linux Mint 21.2 5.15.0-79-generic
  • Browsers tested: Opera 101.0.4843.58 / Chrome 116.0.5845.96
  • Packages:
amplify_flutter: ^2.3.0
amplify_auth_cognito: ^2.3.0
amplify_authenticator: ^2.1.1

Categories

  • Analytics
  • API (REST)
  • API (GraphQL)
  • Auth
  • Authenticator
  • DataStore
  • Notifications (Push)
  • Storage

Steps to Reproduce

Repro steps demo

Steps:

  • flutter create amplify_linux_demo
  • cd amplify_linux_demo
  • npm create amplify@latest -y
  • flutter pub add amplify_flutter
  • flutter pub add amplify_auth_cognito
  • flutter pub add amplify_authenticator
  • remplace main.dart by https://docs.amplify.aws/flutter/start/quickstart/
  • rm -r amplify/data amplify/auth
  • replace amplify/backend.ts with the below snippet
  • npx ampx sandbox --outputs-format dart --outputs-out-dir lib
  • run:

Screenshots

No response

Platforms

  • iOS
  • Android
  • Web
  • macOS
  • Windows
  • Linux

Flutter Version

3.22.3

Amplify Flutter Version

2.3.0

Deployment Method

Amplify CLI

Schema

No response

Metadata

Metadata

Assignees

Labels

AuthenticatorIssues related to the Authenticator UI ComponentLinuxIssues specific to the Linux PlatformquestionA question about the Amplify Flutter librariesto-be-reproducedIssues that have not been reproduced yet, but have reproduction steps provided

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions