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

Used google account to sign LinkedIn from flutter - Google Sign In does not support web view. #133

Open
savioalwd opened this issue Aug 8, 2024 · 1 comment

Comments

@savioalwd
Copy link

[INFO:CONSOLE(65)] "[GSI_LOGGER]: Google Sign In does not support web view.", source: https://ssl.gstatic.com/_/gsi/_/js/k=gsi.gsi.en_GB.pzaNX9A1hic.O/am=AACRYMAB/d=1/rs=AF0KOtWklBrc0CZDcPmw7B40d_zwfPpLqg/m=credential_page_library (65)

I have implemented the package in my flutter like below. the LinkedIn sign in page opened in web view and tried to login in LinkedIn using the google account instead providing LinkedIn pass and username. I know if we want to use google account then implementing google auth is the logic. but there is a catch, I created my LinkedIn account using google and for sign in using google account. but this flow not supported by your package. in this scenario what to do???

***MaterialPageRoute(
builder: (context) => LinkedInAuthCodeWidget(
appBar: AppBar(title: const Text("Rablo.in")),
redirectUrl: dotenv.env['LINKEDIN_REDIRECT_URI'],
clientId: dotenv.env['LINKEDIN_CLIEN_ID'],
// clientSecret: dotenv.env['LINKEDIN_CLIENT_SECRET'],
destroySession: false,
onGetAuthCode:
(final AuthorizationSucceededAction response) {
print('Auth code ${response.codeResponse.code}');
print('State: ${response.codeResponse.state}');
Navigator.pop(context);
// Navigator.pushReplacement(
// context,
// MaterialPageRoute(
// builder: (context) => const TutorHomePage(),
// ),
// );
},

                    onError: (final AuthorizationFailedAction e) {
                      print('Error: ${e.toString()}');
                      print('Error: ${e.stackTrace.toString()}');
                    },
                  ),
                ),***
@d3xt3r2909
Copy link
Owner

To be honest it sounds like that your doing something wrong. Why would you use LinkedIn signup if you already signup via Google to the LinkedIn? Wouldn't then correct approach be to use simply Google oAuth as you mentioned?

Anyhow, I don't have access right now to test it on my side but form that you see (web form) is provided directly from LinkedId and I am not able to do anything on that side.

You can verify also this behaviour on other applications like

https://www.visualcv.com/
https://www.slideshare.net/login?from_source=%2F

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants