Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
oauth2: rename cookie
Browse files Browse the repository at this point in the history
* Renamed cookie `db-connector-client-id` to
  `db-connector-oauth2-client-id`.
  • Loading branch information
n-riesco committed Jun 6, 2018
1 parent f35bbca commit 0ee49a2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/components/Configuration.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Configuration extends Component {
super(props);
this.state = {
authEnabled: (cookie.load('db-connector-auth-enabled') === 'true'),
clientId: cookie.load('db-connector-client-id'),
clientId: cookie.load('db-connector-oauth2-client-id'),
isMenuOpen: false,
username: cookie.load('db-connector-user')
};
Expand Down
2 changes: 1 addition & 1 deletion app/components/Login.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Login extends Component {
constructor(props) {
super(props);
this.state = {
clientId: cookie.load('db-connector-client-id'),
clientId: cookie.load('db-connector-oauth2-client-id'),
domain: (isOnPrem() ? plotlyUrl() : 'https://plot.ly'),
statusMessage: '',
serverType: CLOUD,
Expand Down
2 changes: 1 addition & 1 deletion backend/plugins/authorization.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function PlotlyOAuth(electron) {

const clientId = process.env.PLOTLY_CONNECTOR_OAUTH2_CLIENT_ID ||
'isFcew9naom2f1khSiMeAtzuOvHXHuLwhPsM7oPt';
res.setCookie('db-connector-client-id', clientId, getUnsecuredCookieOptions());
res.setCookie('db-connector-oauth2-client-id', clientId, getUnsecuredCookieOptions());

const authEnabled = getSetting('AUTH_ENABLED');
res.setCookie('db-connector-auth-enabled', authEnabled, getUnsecuredCookieOptions());
Expand Down

0 comments on commit 0ee49a2

Please sign in to comment.