Skip to content

feat: logout beta#560

Merged
LouisClisson merged 1 commit intobetafrom
feat/logout-beta
Nov 26, 2020
Merged

feat: logout beta#560
LouisClisson merged 1 commit intobetafrom
feat/logout-beta

Conversation

@LouisClisson
Copy link
Contributor

Pull Request checklist:

  • Write an explicit title for the Pull Request, following Conventional Commits specification
  • Test manually the implemented changes
  • Review my own code (indentation, syntax, style, simplicity, readability)
  • Wonder if you can improve the existing code

* @param {import('express').Response} response
* @param {import('express').NextFunction} next
*/
async function authenticationCallback(context, options, request, response, next) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function authenticationCallback has 5 arguments (exceeds 4 allowed). Consider refactoring.

* @param {import('express').Response} response
* @param {import('express').NextFunction} next
*/
async function authenticationCallback(context, options, request, response, next) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function authenticationCallback has 27 lines of code (exceeds 25 allowed). Consider refactoring.


get modelsDir() {
return this.lianaOptions && this.lianaOptions.modelsDir;
validateOptions() {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function validateOptions has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.


get modelsDir() {
return this.lianaOptions && this.lianaOptions.modelsDir;
validateOptions() {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function validateOptions has 37 lines of code (exceeds 25 allowed). Consider refactoring.

/**
* @param {import("../context/init").Context} context
*/
constructor({

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar blocks of code found in 2 locations. Consider refactoring.

@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit f03f3d0 and detected 10 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 4
Duplication 6

The test coverage on the diff in this pull request is 78.7% (49% is the threshold).

This pull request will bring the total coverage in the repository to 52.8% (2.5% change).

View more on Code Climate.

@ghusse ghusse changed the base branch from master to beta November 26, 2020 07:39
@LouisClisson LouisClisson merged commit 5188206 into beta Nov 26, 2020
@LouisClisson LouisClisson deleted the feat/logout-beta branch November 26, 2020 09:26
forest-bot added a commit that referenced this pull request Nov 26, 2020
# [8.0.0-beta.3](v8.0.0-beta.2...v8.0.0-beta.3) (2020-11-26)

### Features

* delete cookie when client logout ([#545](#545)) ([#560](#560)) ([5188206](5188206))
@forest-bot
Copy link
Member

🎉 This PR is included in version 8.0.0-beta.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

forest-bot added a commit that referenced this pull request Feb 22, 2021
# [8.0.0](v7.10.1...v8.0.0) (2021-02-22)

### Bug Fixes

* **authentication:** error when authenticating with an invalid token in cookies ([#611](#611)) ([e6d6737](e6d6737))
* send back response to frontend instead of redirecting ([#609](#609)) ([6f37521](6f37521))
* user being disconnected after 33min instead of 14 days ([#610](#610)) ([80580e7](80580e7))
* **auth:** oidc authentication when running multiple instances of the agent ([#608](#608)) ([ef25acb](ef25acb))

### Features

* merge master into beta ([131cb73](131cb73))
* **authentication:** remove old authentication routes ([#624](#624)) ([b0ffc50](b0ffc50))
* **authentication:** return a specific error during authorization if received an error about 2FA ([#622](#622)) ([3a59a12](3a59a12))
* **permissions:** handle mutliple permissions cache ([7114244](7114244))
* authenticate with openid connect ([#555](#555)) ([72b2cc8](72b2cc8))
* delete cookie when client logout ([#545](#545)) ([#560](#560)) ([5188206](5188206))

* feat!: ease the multi-database setup by providing a map of connections on liana.init (#525) ([2e9dc94](2e9dc94)), closes [#525](#525)

### BREAKING CHANGES

* **authentication:** all previous authentication routes have been removed
* onlyCrudModule, modelsDir, secretKey, authKey options are not supported anymore by Liana.init().
Instead of sequelize/mongoose & Sequelize/Mongoose, connections & objectMapping are now required.
@forest-bot
Copy link
Member

🎉 This PR is included in version 8.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments