Python Forum

Full Version: Google calendar pthon flask auth
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello every one
I'd like first to apologize as english is not my first language
I'm trying to implement a web app using google calendar.
I can successfuly login my user, but then, when I ask for my user's permission for google calendar, the pop-up page that would appears in localhost don't show when i'm in prod. There is the message "please connect to https:[xxx] to validate etc but nothing else.

I've been shearching for a week now and I'm becoming desesperate to find a solution...
Any help will be greatly appreciated

Do not hesitate to ask form ore info

Thanks in advance

ps: my code for calendar auth is :
    if not creds or not creds.valid:
        if creds and creds.expired and creds.refresh_token:
            creds.refresh(Request())
        else:
            flow = InstalledAppFlow.from_client_secrets_file(
                'credentials.json', SCOPES)
            creds = flow.run_local_server(port=0)