In my plot dashboard project, I am using plotly simple auth,
this is standard in plolty simple HTTP auth,
Issue 1, I need to hide my password pairs,
in the ploty docs, we see this configuration,
Keep this out of source code repository - save in a file or a database VALID_USERNAME_PASSWORD_PAIRS = [ [‘hello’, ‘world’] ] app = dash.Dash(‘auth’) auth = dash_auth.BasicAuth( app, VALID_USERNAME_PASSWORD_PAIRS )
Try setting environment variables on heroku and then referencing them in your code using os.environ['MY_USERNAME'] where MY_USERNAME is a variable you set on Heroku.
Once you add the environment variables to your heroku container I think you can reference them using os.environ in your code directly where you need your password/username.