Create a Python server that receives the Google token sent by Appsmith and makes a request to the Google People API.
from flask import Flask, redirect, request
import requests
from google.oauth2 import id_token
from google.auth.transport import requests as google_requests
Is there an existing issue for this?
Description
When logging into Appsmith using Google SSO, one can retrieve the token with <>. However, after one hour, the token expires and is not refreshed.
Steps To Reproduce
Enable Google SSO in your Appsmith application.
Enable the Google People API.
Create a Python server that receives the Google token sent by Appsmith and makes a request to the Google People API.
app = Flask(name)
@app.route('/test', methods=['POST']) def callback(): token = request.json['token']
Use the access token to make a request to the People API
if name == 'main': app.run()
ngrok on port 5000.
Run it, and you will see a response. Wait for 1 hour, and it will fail due to the expired token.
Public Sample App
No response
Environment
Production
Issue video log
No response
Version
Self-Hosted 1.9.19