Skip to content
This repository was archived by the owner on Sep 24, 2024. It is now read-only.

Commit c89d276

Browse files
Merge pull request plotly#97 from plotly/update-plotly-url
Replace all instances of plot.ly with plotly.com.
2 parents deea459 + 7fe762e commit c89d276

6 files changed

+9
-9
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Dash Authorization and Login
22

3-
Docs: [https://plot.ly/dash/authentication](https://plot.ly/dash/authentication)
3+
Docs: [https://plotly.com/dash/authentication](https://plotly.com/dash/authentication)
44

55
License: MIT
66

js/src/login-index.react.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ const PopupCenter = (url, title, w, h) => {
3131

3232
/**
3333
* Login displays an interface that guides the user through an oauth flow.
34-
* - Clicking on a login button will launch a new window with the plot.ly
34+
* - Clicking on a login button will launch a new window with the plotly.com
3535
* oauth url
36-
* - plot.ly will redirect that window to defined redirect URL when complete
36+
* - plotly.com will redirect that window to defined redirect URL when complete
3737
* - The <OauthRedirect/> component will render the oauth redirect page
3838
* - When the <OauthRedirect/> window is closed, <Login/> will call its
3939
* `onClosed` prop
@@ -53,7 +53,7 @@ class Login extends Component {
5353
} = CONFIG;
5454
/*
5555
* There are a few things to consider when constructing the redirect_uri:
56-
* - Since Dash apps can have URLs (https://plot.ly/dash/urls), e.g.
56+
* - Since Dash apps can have URLs (https://plotly.com/dash/urls), e.g.
5757
* `/page-1/another-page`, and so just appending the /_oauth-redirect
5858
* API path to the end of the current URL (window.location.href) isn't
5959
* safe because the API endpoint is `/_oauth-redirect` not e.g.

js/src/oauth-redirect-index.react.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const IS_AUTHORIZED_PATHNAME = '_is-authorized';
1616

1717
/**
1818
* OAuth redirect component
19-
* - Looks for an oauth token in the URL as provided by the plot.ly redirect
19+
* - Looks for an oauth token in the URL as provided by the plotly.com redirect
2020
* - Make an API call to dash with that oauth token
2121
* - In response, Dash will set the oauth token as a cookie
2222
* if it is valid

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
name='dash_auth',
1010
version=main_ns['__version__'],
1111
author='Christopher Parmer',
12-
author_email='chris@plot.ly',
12+
author_email='chris@plotly.com',
1313
packages=['dash_auth'],
1414
license='MIT',
1515
description='Dash Authorization Package.',
@@ -26,7 +26,7 @@
2626
'ua_parser'
2727
],
2828
include_package_data=True,
29-
url='https://plot.ly/dash',
29+
url='https://plotly.com/dash',
3030
classifiers=[
3131
'Development Status :: 5 - Production/Stable',
3232
'Environment :: Web Environment',

tests/users.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This is a real live access token associated with the
22
# test user `dash-test-user`.
33
# This token is generated by visiting
4-
# https://plot.ly/o/authorize/?response_type=token&client_id=RcXzjux4DGfb8bWG9UNGpJUGsTaS0pUVHoEf7Ecl&redirect_uri=http://localhost:9595/oauth2/callback
4+
# https://plotly.com/o/authorize/?response_type=token&client_id=RcXzjux4DGfb8bWG9UNGpJUGsTaS0pUVHoEf7Ecl&redirect_uri=http://localhost:9595/oauth2/callback
55
# while logged in as that user and following the redirect
66
import os
77

usage_plotly_auth.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import os
77

88

9-
# Set your http://plot.ly username and api key in the environ or here.
9+
# Set your http://plotly.com username and api key in the environ or here.
1010
os.environ.setdefault('PLOTLY_USERNAME', '<insert username>')
1111
os.environ.setdefault('PLOTLY_API_KEY', '<insert_api_key>')
1212

0 commit comments

Comments
 (0)