You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.
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:
Open canner.server.js configuration file.
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.
Run the canner CMS canner start
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
The text was updated successfully, but these errors were encountered:
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
andlogout
in canner.server.jscms
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:
canner.server.js
configuration file.exports.cms
object named eitherbeforeRenderCms
,authCallback
orlogout
. 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.canner start
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):
The text was updated successfully, but these errors were encountered: