Skip to content

Requirement File and Config.py Issues #42

@atulverma1212

Description

@atulverma1212

Issue 1: config.py issues:

In Config class, ClientId and Client Secret is not picked from environment. Due to this, the application fails directly on VM. If we try on app-service, it is very hard to see through logs of what went wrong.
Updated line of code are shared below:

 ### These should pick from environment ###
    CLIENT_SECRET = os.environ.get('CLIENT_SECRET') or 'ENTER_CLIENT_SECRET_HERE'
    CLIENT_ID = os.environ.get('CLIENT_ID') or 'ENTER_CLIENT_ID_HERE'

Issue 2: Azure App Services now support python 3.10+, for which we need to update requirements.txt file. I have passed the project using the following library versions. Please update the requirement in main branch so that github action pipeline does not fail again and again.

azure-common==1.1.24
azure-nspkg==3.0.2
azure-storage==0.36.0
certifi==2019.11.28
cffi
chardet==3.0.4
Click==7.1.2
cryptography==2.8
Flask==2.0.3
Flask-Login==0.5.0
Flask-Session==0.4.0
Flask-SQLAlchemy==2.5.1
Flask-WTF==0.14.3
idna==2.8
itsdangerous==2.0.1
Jinja2==3.0.1
Mako
MarkupSafe==2.0.1
msal==1.13.0
pip==10.0.1
pycparser==2.20
pyodbc==5.2.0
pyopenssl==19.1.0
python-dateutil==2.8.1
python-editor==1.0.4
requests==2.22.0
setuptools==39.0.1
six==1.14.0
SQLAlchemy==1.3.13
urllib3==1.25.8
Werkzeug==2.0.3
WTForms==2.2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions