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
App seems to not getUserProfile #3
Comments
Thanks for the quick response. I'll double check everything more thouroghly over the next few days and get back to you.
Sam
…________________________________
From: James Clancey <notifications@github.com>
Sent: Friday, July 27, 2018 6:17:41 PM
To: Clancey/simple_auth
Cc: samgithub-duplicate; Author
Subject: Re: [Clancey/simple_auth] App seems to not getUserProfile (#3)
on iOS or Android? Did you follow the Callback parts from the readme in iOS<https://github.com/Clancey/simple_auth#ios> and Android<https://github.com/Clancey/simple_auth#android-manifest>?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#3 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AAspxk2B0qYE2hi5CRVPTiR49ZXM6q2rks5uK5GFgaJpZM4VkubU>.
|
I have double-checked and set everything up meticulously. What I notice is that if I use your sample (in https://github.com/Clancey/simple_auth/blob/master/simple_auth_flutter_example/lib/main.dart) i.e (using the credentials in the sample link above: (blocked off in asterisks below. I get the sign in page BUT after signing-in, I get an error "invalid credentials". If I use MY app credentials I do NOT get the sign-in page, but I get an error "Custom Schemes are not allowed for Web Client Type" final simpleAuth.GoogleApi googleApi = new simpleAuth.GoogleApi("google", Sam |
Try the sample again, I just found a small bug. Also your credentials are not the right king. You created Web credentials. You need to create some for iOS/Android. |
The only problem us that when you select Android you can get ONLY a client_id. It does not give you a client_secret.
The simple_auth initializer for Google requires both a Client_id and client_secret.
Sam
…________________________________
From: James Clancey <notifications@github.com>
Sent: Monday, July 30, 2018 6:23:21 PM
To: Clancey/simple_auth
Cc: samgithub-duplicate; Author
Subject: Re: [Clancey/simple_auth] App seems to not getUserProfile (#3)
Try the sample again, I just found a small bug. Also your credentials are not the right king. You created Web credentials. You need to create some for iOS/Android.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#3 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AAspxhTZ56G52srlPfw5PxSGGDcgQba7ks5uL4dZgaJpZM4VkubU>.
|
Nope, it has a default of 'native' . https://github.com/Clancey/simple_auth/blob/master/simple_auth/lib/src/providers/google.dart#L10 |
Thanks for the 1.0.1 update. In the meantime, I decided to check out your Facebook implementation. using simple_auth_flutter 1.0.1 |
You can't use local Host as a redirect unless you use the embedded browser. It is off by default. You need to use a redirect with a custom scheme for your app. |
James, please close this issue. I found a way to authenticate with Facebook. I'll be creating another issue for Microsoft Live Acounts |
I am following the examle in "simple_auth_flutter_example"
When I get to
var user = await googleApi.getUserProfile();
The app shows the Google Sign-in page.
After 'signing' in nothing seems to happen. I have a breakpoint after the getUserProfile. It does not get hit.
Sam
The text was updated successfully, but these errors were encountered: