Configuring anonymous user

Behind the anonymous user, there's a standard user named "public," which autologin to the application using a unique URL.

This feature must be enabled from the user profile with the option at Properties > Document Properties > "Share Preview."

Follow these steps to configure:

  • Create a user named "public."
  • Create a role named "ROLE_PUBLIC".
  • Assign the role named "ROLE_USER" to this user.
  • Assign the role named "ROLE_PUBLIC" to this user.
  • Log in with the user "public" in the standard UI to check which nodes and options have access ( this is mandatory to create the trash folder of the user, etc. ).

The "public" user must have READ access to the main root nodes ( okm:root, okm: templates, etc. ).

Only the share preview option will allow only the document node type with "ROLE_PUBLIC" read access.

Optional steps:

  • Create a profile for the "public" user. Disable all the features you consider should not have access.

Finally, share the autologin public URL, which will be something like http://yourhost:8080/openkm/public/

In case you want to logout the public user, please use a URL like http://yourhost:8080/openkm/kcenter/#/logout

 Other usages:

Table of contents [ Hide Show ]