Skip to content

Authentication

Simon edited this page Aug 3, 2016 · 2 revisions

Authentication

To use the authentication you need to add the following properties in your .corc file:

  "auth": true,
  "user": "theUserName",
  "password": "ThePassword",
  "JWT_SECRET": "theJWTSecret"

To disable the authentication you just need to define the value of the property "auth" to false.

If the cookie which allow a user to be authenticated is not valid anymore the ajax requests will be automatically redirect to the login page. For the normal requests an unauthorised error page will be displayed to the user. So the user will need to access the url "/login"to authenticate again.

Clone this wiki locally