flokk
flokk copied to clipboard
Google Auth URL appears to be incorrect
the URL on the auth screen points to google.com:

Clicking on this launched google.com. I would expect some kind of auth link?
Doh. Need to add API keys
I've created and added an API key per the instructions and the URL is the same which leads me to believe the instructions for authenticating are incomplete
Try breakpointing in here, and see what you're getting back? https://github.com/gskinnerTeam/flokk/blob/b7f11cf0fa053e3d75942b1b8e130af81d0be98d/flokk_src/lib/views/welcome/welcome_page.dart#L79
All we do here is a simple API call to google, with your key, and it passes back the endpoint and auth code. if that's not happening, you should be getting some sort of 500 error or something.
The instructions are wrong.. they say to create an API key. You actually need to create an OAuth 2 app. You also need to enable the People API
Thx, we will update. Good now?
Yup, working now.
Sorry ... I'm a little confused. I enabled People API, created OAuth 2.0 client ID, then pasted ClientID and Secret in api_keys.dart (why 3 vars - googleClientId, googleClientSecret, googleWebClientId - instead 2?) But the app won't start.
Launching lib\main.dart on sdk gphone x86 in debug mode...
v Built build\app\outputs\flutter-apk\app-debug.apk.
Connecting to VM Service at ws://127.0.0.1:50370/oFk2-RhMSC0=/ws
I/flutter (14450): /##################################################
I/flutter (14450): [BootstrapCommand]
I/flutter (14450): DataDir is: /data/user/0/com.example.flokk_src/files
I/flutter (14450): ##################################################
E/flutter (14450): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: MissingPluginException(No implementation found for method setMinWindowSize on channel desktop_window)
E/flutter (14450): #0 MethodChannel._invokeMethod
E/flutter (14450):
Thx for the report, we'll take a look!
Can anyone help me? :-)
Sorry ... I'm a little confused. I enabled People API, created OAuth 2.0 client ID, then pasted ClientID and Secret in api_keys.dart (why 3 vars - googleClientId, googleClientSecret, googleWebClientId - instead 2?) But the app won't start.
When you use desktop, you create a "Computer App" type credential in Google's Console. Fill googleClientId and googleClientSecret in this case.
If you are running a web app, create a "Web App" credential in Google and fill googleClientSecret and googleWebClientId.
Don't forget to grant access to People API scope in Google Console ("https://www.googleapis.com/auth/contacts").