Dash-auth for AWS elastic bean stalk

When I deployed to Heroku, the following would work. However when I deploy to AWS elasticbeanstalk, it doesn’t work when I enter the username/password. It just keeps asking. How to fix?

import dash
import dash_auth

external_stylesheets = [‘https://codepen.io/chriddyp/pen/bWLwgP.css’]

‘user’, ‘pw’]

app = dash.Dash(name, external_stylesheets=external_stylesheets, url_base_pathname=’/’)
application = app.server
app.config.suppress_callback_exceptions = True
app.scripts.config.serve_locally = True