# dash\_auth.PlotlyAuth AttributeError

**URL:** <https://community.plotly.com/t/dash-auth-plotlyauth-attributeerror/36481>\
**Category:** Dash Python\
**Created:** [March 21, 2020, 8:05am UTC](https://community.plotly.com/t/dash-auth-plotlyauth-attributeerror/36481 "2020-03-21T08:05:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![florescorreia](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/florescorreia/32/12422_2.png) [@florescorreia](https://community.plotly.com/u/florescorreia)\
**Post date:** [March 21, 2020, 8:05am UTC](https://community.plotly.com/t/dash-auth-plotlyauth-attributeerror/36481/1 "2020-03-21T08:05:52Z")

</div>

Hi,  
I’m trying to make Plotly OAuth work using the example given in [https://dash.plot.ly/authentication](https://dash.plot.ly/authentication)  
but no matter what I try I always get this error

File “/home/pedro/.local/lib/python3.6/site-packages/dash\_auth/api\_requests.py”, line 43, in config  
value = plotly.tools.get\_config\_file().get(key)  
AttributeError: module ‘plotly.tools’ has no attribute ‘get\_config\_file’

By the way, the Basic Auth works just fine, as expected.

The snippet of code in question is

APP\_NAME = ‘XXXXXXXX’  
APP\_URL = ‘[https://xxxxxxxxx.herokuapps.com](https://xxxxxxxxx.herokuapps.com)’

auth = dash\_auth.PlotlyAuth(  
app,  
APP\_NAME,  
‘private’,  
APP\_URL  
)

I suspect that it has to do with the fact that some plotly features have moved to the chart-studio package, but I really don’t know how to correct this in the code.

Thanks.
