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

Update readme with proper documentation for configuration #23

Open
alihassan143 opened this issue May 23, 2022 · 14 comments
Open

Update readme with proper documentation for configuration #23

alihassan143 opened this issue May 23, 2022 · 14 comments

Comments

@alihassan143
Copy link

i am trying to implement google sign in with my app when i enter my own firebase client id and redirect url google show 400:redirect ur miss match when i added plugin client id and redirect url it working fine how is this possible?

@developerfix
Copy link

any solution to this please? and what exactly the purpose of redirect url here if i ask? I am not getting it.

@alihassan143
Copy link
Author

any solution to this please? and what exactly the purpose of redirect url here if i ask? I am not getting it.

actually redirect url use for the websites to provide the login data to the website working same as for the desktop apps we need to add this so it can work perfectly and redirect the user to our app

@developerfix
Copy link

okay so where can i find my redirect url? i mean i have the client id from google developer console after Oauth configuration but what about redirect url? also did you find the solution for this issue "400:redirect ur miss match"?

Please answer, Thanks.

@alihassan143
Copy link
Author

alihassan143 commented Jul 7, 2022

Screenshot 2022-07-07 at 10 07 12 AM

s http:localhost:port

@developerfix
Copy link

https://127.0.0.1:5429/
so this will be mt redirect url
redirect Url
?

@alihassan143
Copy link
Author

add localhost at start

@developerfix
Copy link

developerfix commented Jul 7, 2022

http:localhost:127.0.0.1:5429 like this?
or
https://localhost:127.0.0.1:5429/ like this?

@alihassan143
Copy link
Author

alihassan143 commented Jul 7, 2022

No just localhost;5429

@developerfix
Copy link

await DesktopWebviewAuth.signIn(GoogleSignInArgs(
clientId: Client_Id,
scope: 'https://www.googleapis.com/auth/plus.me '
'https://www.googleapis.com/auth/userinfo.email',
redirectUri: 'https://localhost:2720/',
));

from the above code i am getting the following error. seems like its coming from redirect url. also i copy pasted the scope from the documentation, i dont know about it.

image

@alihassan143
Copy link
Author

did you added this in google cloud console also?

@developerfix
Copy link

yup, For the web and desktop
image

@developerfix
Copy link

@alihassan143 brother, any suggestion please?

@amorenew
Copy link

@developerfix I found that I need to enable google login in firebase and I used the web client id in google login details form
Screen Shot 2022-10-14 at 7 42 58 AM

@danielmahon
Copy link

For anyone else getting here, you need to use your "auth" domain for a firebase web app.
Will probably just need to put your project id into the following url:
https://your-project-id.firebaseapp.com/__/auth/handler

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

4 participants