Authentication not working



  • Hi, I'm hoping you can help.
    I've inherited an older project and it uses an older version of jsreport.

    Right now there is no authentication on the admin interface, which we need.

    So I followed the docs and added in this code, but it doesn't work:
    '''authentication": {
    "cookieSession": {
    "secret": "R14TFfguolODckC6GKxaaAunGmioyqCJ447LvxV"
    },
    "admin": {
    "username": "admin",
    "password": "password"
    },
    "enabled": true
    },
    '''
    Is there anything else anywhere else I should check to make sure the authentication kicked in?
    Right now it totally ignores this code and the admin UI just loads like normal.
    Any help would be appreciated.



  • Please paste the whole config so we can check it out.

    Make sure jsreport is restarted after the config is changed.
    Make sure the output log includes a line "Initializing jsreport ... using the configuration file: jsreport.config.json


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.