-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump eslint from 8.57.0 to 9.7.0 in /Framework (#2481)
* Bump eslint from 8.57.0 to 9.7.0 in /Framework Bumps [eslint](https://github.com/eslint/eslint) from 8.57.0 to 9.7.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](eslint/eslint@v8.57.0...v9.7.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Add new eslint config file * Auto-fix eslint * Further manual migration changes * Make use of prototype has own property * Remove retries for tests * Fix potential 0 values of timeout * Remove fix from eslint command --------- Co-authored-by: George Raduta <[email protected]>
- Loading branch information
1 parent
f2d5eb9
commit dae3cb7
Showing
58 changed files
with
1,899 additions
and
1,261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,12 +12,12 @@ | |
* or submit itself to any jurisdiction. | ||
*/ | ||
|
||
const {Issuer, generators, custom} = require('openid-client'); | ||
const { Issuer, generators, custom } = require('openid-client'); | ||
const assert = require('assert'); | ||
const {LogManager} = require('../log/LogManager'); | ||
const { LogManager } = require('../log/LogManager'); | ||
|
||
/** | ||
* Authenticates and authorises users via OpenID Connect (new CERN SSO). | ||
* Authenticates and authorizes users via OpenID Connect (new CERN SSO). | ||
* @author Adam Wegrzynek <[email protected]> | ||
*/ | ||
class OpenId { | ||
|
@@ -30,7 +30,7 @@ class OpenId { | |
assert(config.secret, 'Missing config value: secret'); | ||
assert(config.well_known, 'Missing config value: well_known'); | ||
assert(config.redirect_uri, 'Missing config value: redirect_uri'); | ||
config.timeout = (!config.timeout) ? 5000 : config.timeout; | ||
config.timeout = config.timeout ?? 5000; | ||
this.config = config; | ||
this.code_verifier = generators.codeVerifier(); | ||
custom.setHttpOptionsDefaults({ | ||
|
@@ -59,7 +59,7 @@ class OpenId { | |
this.logger.info('Client initialised'); | ||
resolve(); | ||
}).catch((error) => { | ||
this.logger.error('Initialisation failed: ' + error); | ||
this.logger.error(`Initialisation failed: ${error}`); | ||
reject(error); | ||
}); | ||
}); | ||
|
Oops, something went wrong.