added dummy.env for reference

This commit is contained in:
Swapnil 2024-01-31 12:01:28 +05:30
parent ee9b4b10a1
commit 1c0f991977
Signed by: swapnil
GPG Key ID: 58029C48BB100574
3 changed files with 16 additions and 6 deletions

6
app/dummy.env Normal file
View File

@ -0,0 +1,6 @@
CLIENT_ID=
CLIENT_SECRET=
REDIRECT_URI=
OPTIONAL_SCOPES=
DATABASE_URL=
APP_SECRET_KEY=

View File

@ -13,6 +13,7 @@ app = Flask(__name__)
# Read environment variables outside the route function
client_id = get_env_variable('CLIENT_ID')
client_secret = get_env_variable('CLIENT_SECRET')
redirect_uri = get_env_variable('REDIRECT_URI')
optional_scopes = get_env_variable('OPTIONAL_SCOPES')
database_url = get_env_variable('DATABASE_URL')
@ -67,9 +68,9 @@ def oauth_redirect():
# },
# data={
# 'code': auth_code,
# 'redirect_uri': get_env_variable('REDIRECT_URI'),
# 'client_id': get_env_variable('CLIENT_ID'),
# 'client_secret': get_env_variable('CLIENT_SECRET'),
# 'redirect_uri': redirect_uri,
# 'client_id': client_id,
# 'client_secret': client_secret,
# 'scope': '',
# 'grant_type': 'authorization_code'
# }
@ -83,9 +84,9 @@ def oauth_redirect():
},
data={
'code': auth_code,
'redirect_uri': get_env_variable('REDIRECT_URI'),
'client_id': get_env_variable('CLIENT_ID'),
'client_secret': get_env_variable('CLIENT_SECRET')
'redirect_uri': redirect_uri,
'client_id': client_id,
'client_secret': client_secret,
}
)

3
job/dummy.env Normal file
View File

@ -0,0 +1,3 @@
DATABASE_URL=
INOREADER_CLIENT_ID=
INOREADER_CLIENT_SECRET=