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

Création du token Google Agenda depuis un container Docker #2

Open
adri1s opened this issue Apr 6, 2020 · 3 comments
Open

Création du token Google Agenda depuis un container Docker #2

adri1s opened this issue Apr 6, 2020 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@adri1s
Copy link
Member

adri1s commented Apr 6, 2020

La création du token Google Agenda ne fonctionne pas depuis un micro service. Au premier lancement de votre application, Google vous demande de valider votre token API et vous retourne une information qui est stockée dans le fichier "token.pickle".

Quand l'application est dans un docker, elle n'ouvre pas automatiquement l'onglet pour valider le token.

@adri1s adri1s added the bug Something isn't working label Apr 6, 2020
@adri1s
Copy link
Member Author

adri1s commented Apr 6, 2020

@adri1s
Copy link
Member Author

adri1s commented Apr 6, 2020

En lancent le micro service avec un TTY, nous avons bien le lien pour valider le token mais en validant la procédure le fichier n'est pas créé

# docker run -t -p 80:5000 -v ${PWD}/data:/app/data -v ${PWD}/config.yaml:/app/config.yaml -v ${PWD}/credentials.json:/app/credentials.json pg3io/osvq
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: off
 * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
Please visit this URL to authorize this application: https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=xxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost%3A36211%2F&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcalendar&state=CvTrHd2Ic2oOyBGlGS8x6Jjc7MrT3F&access_type=offline&code_challenge=xxxxxxxxxxxxxxxxxxxxxx&code_challenge_method=S256

@adri1s adri1s pinned this issue Apr 6, 2020
@adri1s adri1s self-assigned this Apr 6, 2020
@adri1s
Copy link
Member Author

adri1s commented Apr 6, 2020

Nous allons arrêter d'utiliser se module python fourni par Google. Dans l'idée de devenir plus standard et donc passer par la protocole CALDAV.

Le dev est en cours.

@adri1s adri1s unpinned this issue Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant