Skip to content

Commit

Permalink
Fix linting Errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Stwissel committed Oct 23, 2024
1 parent df80397 commit 7a93f89
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions app/addons/auth/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import FauxtonAPI from "../../core/api";
import app from "../../app";
import ActionTypes from './actiontypes';
import Api from './api';
import Idp from './idp';

const {
AUTH_HIDE_PASSWORD_MODAL,
Expand Down
8 changes: 4 additions & 4 deletions app/addons/auth/components/loginformidp.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class LoginFormIdp extends React.Component {
<div className="couch-login-wrapper">
<form id="login" onSubmit={this.submit.bind(this)}>
<div className="row">
<label htmlFor="idpurl">Identity Provider (IdP) URL</label>
<label htmlFor="idpurl">Identity Provider (IdP) URL</label>
<p className="help-block">
must point to your IdP&apos;s <code>/.well-known/openid-configuration</code>
</p>
Expand All @@ -98,7 +98,7 @@ class LoginFormIdp extends React.Component {
</div>
</div>
<div className="row">
<label htmlFor="idpcallback">Callback URL</label>
<label htmlFor="idpcallback">Callback URL</label>
<p className="help-block">
This should be the URL of your CouchDB instance, including the protocol and port number.{' '}
<span style={{ color: 'red' }}>Should we show this? It can be computed</span>
Expand All @@ -116,7 +116,7 @@ class LoginFormIdp extends React.Component {
</div>
</div>
<div className="row">
<label htmlFor="idpappid">Application ID</label>
<label htmlFor="idpappid">Application ID</label>
<p className="help-block">
The Application ID gets assigned by the IdP admin, suggested standard is <code>fauxton</code>
</p>
Expand Down Expand Up @@ -152,4 +152,4 @@ class LoginFormIdp extends React.Component {
}
}

export default LoginFormIdp;
export default LoginFormIdp;
2 changes: 1 addition & 1 deletion app/addons/auth/routes/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ export default FauxtonAPI.RouteObject.extend({
localStorage.setItem('fauxtonRefreshToken', refreshToken);
// Extract expiry from the access token
const expiry = Idp.getExpiry(accessToken);
// eslint-disable-next-line no-console
console.log('Expiry:', expiry);
//setTimeout(Idp.refreshToken, (expiry - 60) * 1000);
},
createAdminForNode() {
ClusterActions.fetchNodes();
Expand Down

0 comments on commit 7a93f89

Please sign in to comment.