Coder Social home page Coder Social logo

Comments (9)

Clancey avatar Clancey commented on September 15, 2024

on iOS or Android? Did you follow the Callback parts from the readme in iOS and Android?

from simple_auth.

samgithub-duplicate avatar samgithub-duplicate commented on September 15, 2024

from simple_auth.

samgithub-duplicate avatar samgithub-duplicate commented on September 15, 2024

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",
"992461286651-k3tsbcreniknqptanrugsetiimt0lkvo.apps.googleusercontent.com",
clientSecret: "avrYAIxweNZwcHpsBlIzTp04",
scopes: [
"https://www.googleapis.com/auth/userinfo.email",
"https://www.googleapis.com/auth/userinfo.profile"
]);


Sam

from simple_auth.

Clancey avatar Clancey commented on September 15, 2024

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.

from simple_auth.

samgithub-duplicate avatar samgithub-duplicate commented on September 15, 2024

from simple_auth.

Clancey avatar Clancey commented on September 15, 2024

Nope, it has a default of 'native' . https://github.com/Clancey/simple_auth/blob/master/simple_auth/lib/src/providers/google.dart#L10
This is how it works on Android/iOS without a secret.

from simple_auth.

samgithub-duplicate avatar samgithub-duplicate commented on September 15, 2024

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
After logging in, I get an error localhost refused to connect.

from simple_auth.

Clancey avatar Clancey commented on September 15, 2024

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.

from simple_auth.

samgithub-duplicate avatar samgithub-duplicate commented on September 15, 2024

James, please close this issue. I found a way to authenticate with Facebook. I'll be creating another issue for Microsoft Live Acounts

from simple_auth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.