Comments (18)
Looks like it cannot find Phyton.
root@misc-public:~/sync/oauth2# ./oauth2_google.py
-bash: ./oauth2_google.py: /usr/bin/python: bad interpreter: No such file or directory
root@misc-public:~/sync/oauth2#
apt install python
And now showing:
I'll try again tomorrow running the whole thing.
from imapsync.
Do you have
https://imapsync.lamiral.info/oauth2/oauth2_gmail/oauth2_google.py
in the same directory?
from imapsync.
Yes, just did a whole clone of the IMAPSYNC from github as well.
from imapsync.
It's one of those shell mysteries...
What gives
/root/sync/oauth2/oauth2_google.py
from imapsync.
@gilleslamiral I've started to try it this morning when I generate with:
./oauth2_google.py [email protected] --client_id=6395189-hbl1cs6k98a2aum.apps.googleusercontent.com --client_secret=GOCSL_sEckDXEFx --generate_oauth2_token
And i copy and past the URL your script gives me i get this error in google:
Where can I find the right guide on how to test this, so that we do not need to enable 2FA when doing a migration and creating App Passwords.
We do Many M365 Migrations that works great but Google is a pain (at the moment :-D )
from imapsync.
The script to run is ./generate_gmail_token
not ./oauth2_google.py
from imapsync.
than i get this error on Google:
so i only ran: ./generate_gmail_token [email protected]
from imapsync.
You may use an old release.
Update with:
https://imapsync.lamiral.info/oauth2/oauth2_gmail/
from imapsync.
@gilleslamiral Still having the same issue just tried again:
The Advanced button that is stated in your Documentation is not available as you can see.
from imapsync.
Do you use generate_gmail_token
release 1.12?
gilles@petite:~/public_html/imapsync/oauth2/oauth2_gmail 11$ more generate_gmail_token
#!/bin/sh
# $Id: generate_gmail_token,v 1.12 2023/05/31 09:31:42 gilles Exp gilles $
https://imapsync.lamiral.info/oauth2/oauth2_gmail/generate_gmail_token
from imapsync.
Yes I do, downloaded from the link you provided:
from imapsync.
Ok
I don't have this reject when I use it, I just have warnings I can accept
from imapsync.
I have the same problem: when I try using generate_gmail_token,v 1.12
with Google, I get the Access blocked: imapsync has not completed the Google verification process
error:
According to the Google documentation, they allow a certain number of users to be shown a warning they can click past, but when you reach a "user cap", everyone else gets blocked:
Note: Your app is still subject to a tester warning screen, as shown in figure 2, a user cap is in effect, and the refresh token lifetime is limited.
So this is not going to work for other people unless you follow the How to submit your app for verification steps.
from imapsync.
Ok.
Maybe you can try with the Thunderbird client_id
from imapsync.
Google has now blocked all OOB OAuth2 flows:
The out-of-band (OOB) flow has been blocked in order to keep users secure. Follow the Out-of-Band (OOB) flow migration guide linked in the developer docs below to migrate your app to an alternative method.
Request details: redirect_uri=urn:ietf:wg:oauth:2.0:oob
The current scripts unfortunately can't function even if you use your own Client ID and Secret.
from imapsync.
Google has now blocked all OOB OAuth2 flows:
The current scripts unfortunately can't function even if you use your own Client ID and Secret.
The script
https://imapsync.lamiral.info/oauth2/oauth2_gmail/generate_gmail_token
doesn't use OOB anymore.
from imapsync.
The script generate_gmail_token
doesn't use OOB anymore. But the script oauth2_google.py
invoked by generate_gmail_token
defines REDIRECT_URI = 'urn:ietf:wg:oauth:2.0:oob'
.
I'm unfortunately not sure what the replacement should be though, the script would have to start a HTTP listener for that at localhost, no?
from imapsync.
The script
generate_gmail_token
doesn't use OOB anymore. But the scriptoauth2_google.py
invoked bygenerate_gmail_token
definesREDIRECT_URI = 'urn:ietf:wg:oauth:2.0:oob'
.
So I was wrong about OOB. I don't understand why this still works for me.
I'm unfortunately not sure what the replacement should be though, the script would have to start a HTTP listener for that at localhost, no?
Yes. I wrote this for Office365:
https://imapsync.lamiral.info/oauth2/oauth2_office365/oauth2_office365_with_imap
It should work for Gmail, changing the values. I haven't trie it.
from imapsync.
Related Issues (20)
- mapsync Ended by a signal TERM HOT 1
- Handling slashes "/" in folder names HOT 6
- Install on M1 via brew HOT 1
- Syncing Imap Sync from Imap account to Mail Plus ? HOT 24
- log duplicates HOT 1
- Ignore "ERR_APPEND" HOT 4
- Website is down HOT 3
- Resync recommandations and Duplicates HOT 5
- Error with sieve/managesieve.sieve file and the .dovecot.sieve symlink
- Authentication failed only on host1 issue HOT 4
- Docker: Store logs on a different volume outside of the container HOT 1
- Special characters in foldernames HOT 1
- delete mail host1 based on space\quota HOT 3
- Total on host2 greater than on host1 although size is lesser HOT 1
- Invalid Perl type for string HOT 1
- line 13: 36766 Killed: 9 HOT 2
- How to use --oauthaccesstoken1 correctly with gmail? HOT 5
- Sync multiple folders into Inbox HOT 3
- Exchange inbox not synced ? HOT 2
- Problem excluding folders with spaces from sync HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imapsync.