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

Authentication customization methods don work #167

@kristian-cabala

Description

@kristian-cabala

Describe the bug
Authentication customization methods, as documented in the official documentation, should provide a way to implement custom authentication on the user side. Documentation states that overriding functions beforeRenderCms, authCallback and logout in canner.server.js cms object enables to control the flow of authentication. However, after defining these methods, they will never get called.

To Reproduce
Steps to reproduce the behavior:

  1. Open canner.server.js configuration file.
  2. Define a function in the exports.cms object named either beforeRenderCms, authCallback or logout. Put a simple console log or error throw in it. These functions take 2 parameters - context and next, however handling these parameters doesn't affect the behaviour at all.
  3. Run the canner CMS canner start
  4. The error is not thrown nor there is anything logged to either the browser or canner console.

Expected behavior
Expected behaviour is to be able to interfere with the default authentication process by overriding/defining these methods.

Dependencies (please complete the following information):

  • OS: macOS Mojave 10.14.3
  • Browser: Chrome 73.0.3683.86
  • Node Version: v11.12.0
  • Canner Version: 3.2.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions