Tutorials

How to Define Public Pages (Viewable by Anonymous Users)

Updated: December 26, 2016 Page Information Edit on GitHub

To make some pages or parts of the repository visible to people without requiring them to be authenticated to the Platform, follow the following steps.

Activating the Anonymous User

The first step you need to take is to enable the anonymous user.

  1. Anonymous user needs to be registered through a configuration files, that should look like this:

    <?xml version="1.0"?>
    <component name="org.nuxeo.ecm.platform.login.anonymous.config">
      <!-- Add an Anonymous user -->
      <extension target="org.nuxeo.ecm.platform.usermanager.UserService"
        point="userManager">
        <userManager>
          <users>
            <anonymousUser id="Guest">
              <property name="firstName">Guest</property>
              <property name="lastName">User</property>
            </anonymousUser>
          </users>
        </userManager>
      </extension>
    </component>
    
    • This file needs to be named what-you-want-config.xml and to be deployed under nxserver/config/.
    • Or you can use template system and copy it into template/common/config/.
    • Or you can add the extension element as an XML Extension in Nuxeo Studio.
  2. Modify nuxeo.conf and set nuxeo.user.anonymous.enable=true.
  3. Restart the application server.  After the server is up and running, when accessing Nuxeo again, the anonymous user will be used and logged into the application.

Managing Rights of the Anonymous User

The anonymous user after the configuration above is considered as a simple user with a given rights, a user workspace, etc. Managing his rights and visible actions is the same than other users.

If you give Write access to the repository to this user, you will let anyone have access to the server to create content.

Defining the Login Page for the Anonymous User

  • If you give at least Read Access to the Default Domain for the Anonymous User case, he will be redirected at the root of the Default Domain into the Nuxeo DM view.
  • If you give no Right Access to the Default Domain for the Anonymous User, he will be redirected to the Home View. Anonymous User will have the possibility to access to his content from the Dashboard (gadgets "My Workspace", "My Documents", ...)

 

4 months ago Solen Guitter review for docday dmetzler
5 months ago manonlumeau fix related pages panel
5 months ago Andrew Goodricke Add content-review-lts2016 to labels
5 months ago Kevin Leturc NXP-19481: Update MarkLogic page to detail how to configure range element indexes
a year ago Solen Guitter 35 | ink updat
a year ago Solen Guitter 34 | Add link
a year ago Joshua Fletcher 33 | In fact the first option did not work at all, but Studio works.
2 years ago Solen Guitter 32 | Remove link
2 years ago Solen Guitter 31
3 years ago Manon Lumeau 30
3 years ago Manon Lumeau 29
3 years ago Manon Lumeau 28
3 years ago Manon Lumeau 27
3 years ago Manon Lumeau 26
3 years ago Manon Lumeau 25
3 years ago Solen Guitter 24
3 years ago Anahide Tchertchian 23
5 years ago Benjamin Jalon 21
5 years ago Benjamin Jalon 22
5 years ago Benjamin Jalon 20
7 years ago Stéfane Fermigier 19
7 years ago Stéfane Fermigier 18
7 years ago Stéfane Fermigier 17
7 years ago Stéfane Fermigier 16
7 years ago Stéfane Fermigier 15
7 years ago Stéfane Fermigier 14
7 years ago Stéfane Fermigier 13
7 years ago Stéfane Fermigier 12
7 years ago Stéfane Fermigier 11
7 years ago Stéfane Fermigier 10
7 years ago Stéfane Fermigier 9
7 years ago Stéfane Fermigier 8
7 years ago Stéfane Fermigier 7
7 years ago Stéfane Fermigier 6
7 years ago Stéfane Fermigier 5
7 years ago Stéfane Fermigier 4
7 years ago Stéfane Fermigier 3
7 years ago Stéfane Fermigier 2
7 years ago Stéfane Fermigier 1
History: Created by Stéfane Fermigier