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

Authentication customization methods don work #167

Open
kristian-cabala opened this issue Mar 28, 2019 · 0 comments
Open

Authentication customization methods don work #167

kristian-cabala opened this issue Mar 28, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@kristian-cabala
Copy link

kristian-cabala commented Mar 28, 2019

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
@kristian-cabala kristian-cabala added the bug Something isn't working label Mar 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant