flutter_web_auth | Flutter plugin for authenticating a user with a web service | Plugin library
kandi X-RAY | flutter_web_auth Summary
kandi X-RAY | flutter_web_auth Summary
Flutter plugin for authenticating a user with a web service
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of flutter_web_auth
flutter_web_auth Key Features
flutter_web_auth Examples and Code Snippets
Community Discussions
Trending Discussions on flutter_web_auth
QUESTION
First of all, I'm trying to get an authorization code by authenticating my account to my app.
To do this I used this package flutter_web_auth.
After implementing all what's described on the page of the package , and opening the WebView to authorize my app to access my account data, I don't get redirected to the app from WebView, here are the changes I made to AndroidManifest.xml
and my code:
android/app/src/main/AndroidManifest.xml
:
ANSWER
Answered 2022-Mar-13 at 02:58I use the same package, as android:scheme just add your package name without the ://redirect in the end.
Please, see the example below:
QUESTION
I have built a Flutter application with Google Oauth, but I encountered an obstacle with intent-filter.
I use https://pub.dev/packages/oauth2_client package for sign in.
I created an Android Credential in Google Api Console what give me only a client_id (in this example that is: 'abc').
My sign in function is:
...ANSWER
Answered 2021-Mar-07 at 12:31I found the solution: I have to redirect to a reverse DNS notion of the client ID and have to use Android Credential (only with client_id)
In my case:
QUESTION
I'm trying to log the user into a Google API from my Flutter app, but can't get it to automatically fetch the token. The closest I got was to see the token string in the auth screen and be asked to copy/paste it back into the app. I suspect it's related to the redirect_uri parameter.
I attempted with both oauth2_client and flutter_appauth and it's pretty much the same outcome. When setting up the client, if I use the first redirect_uri provided by Google urn:ietf:wg:oauth:2.0:oob
, after granting the permissions it shows the token in the auth screen and instructs the user to copy it and paste it back in the app. If I use the uri that I set in AndroidManifest.xml and build.gradle, instead of the consent screen, I get this message in the browser:
"Invalid parameter value for redirect_url: Missing scheme: ai.autonet.afterme"
Lastly, if I use "http://localhost"
(the second uri provided by Google), I get "request timed out".
My client configuration from Google's side looks like this:
...ANSWER
Answered 2020-Sep-09 at 17:42Have you tried adding ://
to the end of your Scheme? I'm not sure you are providing a valid scheme name to Google.
Can you try ai.autonet.afterme://
or ai.autonet.afterme://auth
?
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install flutter_web_auth
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page