Can't authenticate gactions CLI to work with Google Assistant, Actions On Google - actions-on-google

Google Assistant Docs, Quick Start, advises to run gactions login to authenticate CLI https://developers.google.com/assistant/conversational/quickstart
When I run 'gactions login', I get this message:
Gactions needs access to your Google account. Please copy & paste the URL below into a web browser and follow the instructions there. Then copy and paste the authorization code from the browser back here. Visit this URL:...
When I visit URL, I get this message: This app is blocked. This app tried to access sensitive info in your Google Account. To keep your account safe, Google blocked this access.
On another post, it was suggested I run npm i -g #assistant/gactions and then try again. But that didn't work.

Related

Cant test FB SDK login locally even though I have set my domain and site URL (app is test mode)

I am developing a web app with Facebook integration and I can't figure out why I can't test the login function locally. I have looked through the answers here (How to Test Facebook Connect Locally) and have tried to follow the steps of having the app in test mode, setting the site URL and the domain.
Based on FBs documentation here: https://developers.facebook.com/blog/post/2018/06/08/enforce-https-facebook-login/
I should be able to use http for localhost development, but I get the error
The method FB.api can no longer be called from http pages. https://developers.facebook.com/blog/post/2018/06/08/enforce-https-facebook-login/
and can't log in. Below are pictures of my app settings (including an indication it is an app in 'test mode').
So this is really only a half answer, but it seemed easier for me to just force https for my local development using mkcert (https://github.com/FiloSottile/mkcert). After creating local certs I updated my site URL to say https://localhost:8080 and I am able to log in without issue.

Can't Authorize Dev Hub or Org in SF/VS Code Env. Setup for SF

I'm trying to Authorize Dev Hub in SF, It opens up a browser window to login and once I put my Credentials and click login, The Page Simply Keeps Loading, Never Finishes loading.
I have everything in place, SFDX is installed, VS Code Extensions for SF installed, The Dev Hub is enabled from the App settings.
Saw Various Videos and Articles on this but no solution works in my case. Tried all options available in VS Code Command Palette related to Authorization and also tried doing it using cmd.
Please Help.
Thanks in Advance
Any Other Information can be provided on demanded.
You need to make sure that your user profile has access to the connected apps like Salesforce CLI.
I had the same issue. So, I created a permission set and added this set to my user. That solved the problem.
Try to install this plugin with the following command: "sfdx plugins:install salesforcedx#48.22.11"

Eclipse: could not construct GCS client

I followed the instructions on here: https://cloud.google.com/dataflow/docs/quickstarts/quickstart-java-eclipse to set up eclipse with google cloud platform.
When trying to create a new dataflow project, I get an error message:
"Could not construct GCS client using default credentials.
Have you authenticated with 'gcloud auth'?
See https://cloud.google.com/sdk/gcloud/ for more"
I have downloaded and installed and initalized the cloud sdk...
Please advise,
Thanks for your help
Philipp
Try to run this in a shell:
gcloud auth application-default login
That will open a window in your browser to perform the authentication.

Google Sign in error 403 - Project marked for deletion

I've recently integrated play-silhouette 4.0.0 with Play 2.5 to handle authentication. I am allowing my users to login with Google and as such am using Silhouette's OAuth2 features. I am redirected to Google's authorization page properly but after pressing allow the app fails with
403 - Project marked for deletion
I have enabled the Google+ API in the developer's console and am requesting the scopes "profile email" from the service. I've also deployed the sample app and get the same error. The error codes listed by Google are not much help - anyone have an idea? I've been testing on my local machine.
I resolved this issue:
Create a new project in the Google Developer Console.
Enable Google+ API.
Create OAuth Credentials.
Perhaps I created the credentials before I enabled the API. Seems a bit silly order would matter. Hope this is helpful to someone else!

Google Analytics Embed API with Server Side Authorization - Firebase Hosting

I completed the basic setup for Google Analytics and inserted the tracking code into my webpage(s). I can log in to analytics.google.com and see historical data just fine.
I have an admin page on my website where I want to display Google Analytics information to several users automatically (no additional logon req'd) and read that this is possible using the Embed API with Server-side Authorization.
I followed the instructions and created a Service Account that shows up under Service account keys in my Google API Manager portal. I also successfully ran 'sudo pip install --upgrade google-api-python-client' on my Cloud9 IDE and pushed the change to my hosting provider, Firebase, i.e. 'firebase deploy'. Lastly, I located and pasted my Analytics View ID in to the code sample provided with the Demo/Setup. My page is served with <!DOCTYPE html> declared.
I can't get it to work. Browser console says:
Uncaught TypeError: window.google.load is not a function
I am thinking that I am not invoking the get_access_token() in that Python module. In other words, I am thinking that server-side scripting is not supported with Firebase hosting.
Anyone know if and how to get Google Analytics Embed API with Server Side Authorization running with Firebase hosting?
This is not exactly a direct answer to your question, but rather an alternative solution to this problem. At least I’m using approach.
You can use Google Design Studio to build and embed amazing analytics and BI dashboards anywhere you like (also on your Admin website). But even easier would be to use Google’s authentication (via gmail) to provide access to select dashboards directly, as Google’s authentication and authorisation is likely more secure that your website’s.