Got a google AIY Authorization Error while trying to connect to google cloud - google-assistant-sdk

I was at the cd ~/AIY-projects-python/src/examples/voice ./assistant_library_demo.py
part, after i got the link and pasted it into the browser i got this error:
Error 403: access_denied The developer hasn’t given you access to this app. It’s currently being tested and it hasn’t been verified by Google. If you think you should have access, contact the developer
Keep in mind that i am logged in the account that i just got the api from. Is not like i am on another one...so..what can i do ?

The simplest solution to this is to add your e-mail address as a tester. Click OAuth Consent Screen in the left menu, then click the Add Users button under "Test Users".

Related

"Error 403: access_denied" when usign Google OAuth

I am trying to understand the basic logics for receiving GMail emails with Google OAuth. I see this document Authorizing Your App with Gmail
Now I follow the instructions in Setting Up POP3 Importing with OAuth via Google to setup POP3 with Google OAuth.
I login one Google account(Account1) and then in Google Cloud, create the Google App and OAuth Client ID.
Then I start connect to GMail account(Account2) with the web application(WHMCS). When connecting, it asks me to choose an account that create the app, so I choose Account1. But get the following error:
Error 403: access_denied
The developer hasn’t given you access to this app.
Thus I am a bit confused. Since Account1 is used to create the app and OAuth Client ID, it should be able to access the app when I choose Account1, but the app will not be able to access the data in Account2. Or does the App in the error message means Gmail, not the app I created in Google Cloud?
Should I use Account2 to create the app for receiving emails in Account2? If yes, then for each Gmail account, should I create a separate app accordingly?
Update
Now I try to do as follows:
Use Account3(The admin of Google Workspace) to create the Cloud Project, Consent Window, Client ID, etc.
Then when connecting from WHMCS on our domain datanumen.com, it asks me to choose the account, I choose Account3, and then see a new window as below:
I then select "Allow" button, but then see the following error:
Connection unsuccessful. Please close this window and try again.
Update
I try several times. And find the first time will be successful. I forget enable POP3 in my Gmail account. After enabling it, everything is fine.
I am a bit confused as to what you are trying to do here.
You created a project on Google cloud console and created client id and client secret for the authorization of your project.
All this does is create a project that will be allowed to use Oauth2 to request authorization of a user to access their data.
If I understand what WHMCS is trying to do. Its going to let you use your client id and client secret to request access of a user to access their data.
So when it asks you to authorize a user this is the user whos data you want access to. That user must be added as a test user over on Google cloud console for the project that you created.
The project you create on google cloud console is still in the testing phase. Each user you want to allow to test your application must be added as a test user. Other wise only the owner of the project can test the applicaiton.
To fix this issue for me was this simple:
Go to https://console.developers.google.com/
open the project in question.
Click "OAuth consent screen" on the left.
Under "Test users" there is a button called "+ ADD USERS"
Type the email of the account you will be testing with, press enter, then click save.
It should work now
It seems like they updated this recently because last year I did not have to do this.
workspace
The issue you may be having is that if you created this project on a workspace account then i suspect only workspace domain users are going to be able to authorize it. It cant be authorized by someone on the standard google domain. So try with a workspace domain user. The same may go the other way I have never tried tbh. I tend to keep workspace within its domain.

Azure AD B2C Sign In with Apple: Invalid web redirect url

I am implementing sign in with apple through azure AD B2C on a Xamarin cross platform app. We already have azure AD B2C set up with local accounts. I am just trying to get the option to sign in with Apple working so the app isn't rejected by Apple.
So far, I have followed the instructions here:
https://github.com/azure-ad-b2c/samples/tree/master/policies/sign-in-with-apple
My return url defined within the Apple Service Id is in the format: https://yourtenant.b2clogin.com/yourtenant.onmicrosoft.com/oauth2/authresp
When I add the identity provider to my sign up and sign in user flow and run (test) the user flow within the azure portal with the return url: 'https://yourtenant.b2clogin.com/yourtenant.onmicrosoft.com/oauth2/authresp'. It loads the up the login screen where I can tap 'sign in with Apple'. From here I am then taken to the Apple login screen.
However, if I tap the option to login with apple on a actual device (iOS/Android) I get the error 'invalid_request' 'Invalid web redirect url' instead of the Apple login form?
I have double and triple checked that everything is setup correctly (That I can see). I have spent quite a while googling around the problem but nearly all the answers just say to check the return url and make sure it's in the format described above.
Does anything need to modified in the app's code to make the sign in with apple option work?
Any help is greatly appreciated, many thanks.
Have you looked at the return URL that Apple is expecting? Regardless of what Microsoft says it should be? I had this issue also and have answered it for my specific problem here >> Apple error "Invalid web redirect url." during Azure B2C user login flow

Sign in with Google disabled for this app in ios

we have implemented google drive API in our app. previously it's working perfectly. but now from some times, it's not working it's given me some error like "This app is not verified". so we have to verify our application from the OAuth consent screen. and it's verified successfully. now I got an error like "Sign in with Google temporarily disabled for this app". it works perfectly for the old user. but when I log in with a new user it's given me this error.
Is there any user limit like 100 users? Because we found 100 user cap limits on the OAuth consent screen. please refer below screenshot and get me out of this problem please help.

Unity-Facebook-Sdk: access token is not for current app id

I'm currently trying to integrate the Unity Facebook SDK into my game. I've downloaded the SDK and trying to test the example that it have. I've insert my app id into the settings and can do the FB Init, and when I press the Login button a pop-up appear asking for the User Access Token. I've done some searching/asking and it seems this is because I'm running it inside the Unity Editor (on mobile it would get the token by itself).
I've heard that I can use the User Token from my Facebook Developer page for testing. However, when I paste the User Token from Facebook Developer->Tools->Access Token and press login, an error appear saying "Access token is not for current app id : XXXXXXXXX". I'm not sure what's wrong here since the app id it shows is the app id I got from Facebook. Is there another User Token that I should be using? Or is there some settings that I need to do first for this to work?
Thank you.
I had this problem.
For me: I had trailing whitespace in the "App id" field in Facebook Settings.
E.g. I had in there "12345 " when I needed "12345".
Got rid of whitespace, all good.
To clarify: I'm assuming you are doing your testing in the editor, which can work you just need to get an access token from the developer site.
I'm going to assume you got the access token from here:
https://developers.facebook.com/tools/accesstoken/
I hate to assume error on your part, so let me know if you can repro this again and we can figure out what went wrong. Also, if I'm way off, please let me know.

No longer able to login to iOS app via oauth: "the page requested was not found"

I've been unable to login to Facebook via oauth in my iOS app since yesterday (3rd July), instead I'm being redirected to a page stating "the page requested was not found". This is new behaviour - Usually I'd login through oauth from a webview (iOS 5.1) without a problem, however now upon attempting to log in I'm redirected to the following page: "The page you requested was not found, Back to previous page", redirected with the following URL- ttps://m.facebook.com/developers/login_error.php?app_id=id]&type=external&refid=9&_rdr
This only occurs for returning logins. If the user is authenticating for the first time, agreeing to permissions- in this instance (publish_stream,read_stream), the user can login successfully. If the user then logs out, and attempts to login again, they get the error.
It might be worth noting that the login screen has changed in style as well, to now say "Login to Facebook to connect it to…", while requesting either a username or a phone number, and no warning if the user enters an incorrect password or username. This differs from earlier behaviour in which the user was informed of an error on the login page.
This also affects the Facebook Hackbook sample application as well- I can't log into that either.
I've tested this with three fb accounts and It's the same behaviour with each. Is this a bug, or has something changed back end that's causing this behaviour?
Thanks- the app is waiting for review with Apple, so it's a bit troubling!
Edit: This looks like it's been raised with Facebook in the following bug reports, one by me, another by someone who beat me to the punch by an hour or so (someone at Facebook assigned):
https://developers.facebook.com/bugs/161181664017031?browse=search_4ff5a6a2bf1f51f27060269
https://developers.facebook.com/bugs/151046355019557?browse=search_4ff5a76b963853613233998
Mine's is the second of the two links; in the event mine isn't a duplicate, I'll leave it's status as new.
You can fix this by changing the App Type from "Web" to "Native/Desktop"
App Settings -> advanced-> Authentication-> App Type
Hope it helps.
I know the question is extremely old, but I had a similar issue which was gone after I did the following:
developers.facebook.com -> My Apps -> Choose (create) your app -> Status & Review -> turn on the switch
Perhaps it will help someone.

Resources