Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this app tried to access sensitive info in your google account. to keep your account safe, google blocked this access #199

Open
theluke opened this issue Feb 20, 2023 · 1 comment
Assignees

Comments

@theluke
Copy link

theluke commented Feb 20, 2023

Hello, I cannot authenticate in Google.

Even when I bypass the OOB issue, I am presented with this error:

This app tried to access sensitive info in your google account. To keep your account safe, google blocked this access.

I would need to ask my company admin to allow the insecure app, which will not happen.

Can you please switch to the same method used by rclone to authenticate the app?

@ejc3
Copy link

ejc3 commented Mar 21, 2023

https://stackoverflow.com/a/72117571/13299383 has a solution.

You'll also have to make this change:

diff --git a/src/auth.ts b/src/auth.ts
index 0e4fa0e..57f01d7 100644
--- a/src/auth.ts
+++ b/src/auth.ts
@@ -52,7 +52,7 @@ export interface AuthOptions {
  *   @returns {Promise.<String>} Promise yielding the authorization code
  */
 export default class UserAuthorizer {
-  private redirectUrl = 'urn:ietf:wg:oauth:2.0:oob';
+  private redirectUrl = 'http://localhost';
   private db: lowdb.LowdbSync<Credentials>;
   private clientId: string;
   private clientSecret: string;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants