Tried to attempt the Google OAuth flow for a Flutter client app, but instead of the consent screen, it shows that access is blocked because of some loopback flow being banned. I read a bit about it, and it seems it needed an update of the mobile native SDKs. Here: https://developers.google.com/identity/protocols/oauth2/resources/loopback-migration#migrate-to-a-supported-alternative
Unable to say if it was updated for the latest Flutter packages or not, or if there is another way I can fix this?
Info: Appwrite Flutter verson: 8.3.0 Targeting Platform: iOS
interesting...For flutter, you shouldn't be passing a success or failure for the create OAuth2 session API call. In addition, the redirect uri in google should be set to point to your appwrite instance. is that what you've done?
Success and failure is empty.
Can you tell me more about the redirect URI thing, I'm a bit confused about that
When you setup oauth2 in Google, you need to put a redirect URI. That should be something like:
https://[DOMAIN]/v1/account/sessions/oauth2/callback/google/[PROJECT ID]
My bad. My application type for OAuth client Id was iOS and not web, which is why it wasnt working I guess. Created a web client Id and it works, thank you!
[SOLVED] Loopback flow blocked in Google OAuth
Recommended threads
- The current user is not authorized to pe...
I want to create a document associated with user after log in with OAuth. The user were logged in, but Appwrite said user is unauthorized. User is logged in wi...
- Attributes Confusion
```import 'package:appwrite/models.dart'; class OrdersModel { String id, email, name, phone, status, user_id, address; int discount, total, created_at; L...
- apple exchange code to token
hello guys, im new here 🙂 I have created a project and enabled apple oauth, filled all data (client id, key id, p8 file itself etc). I generate oauth code form...