Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8802333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:03:43+00:00 2026-06-14T01:03:43+00:00

So for the project I’m currently working on, prior to taking the Alfresco developers

  • 0

So for the project I’m currently working on, prior to taking the Alfresco developers course, we had created a custom JSP page that we call from within the course of our workflow that is located at: C:\Alfresco\tomcat\webapps\share\custom. Currently anyone can access this jsp page. However, when we move the location to C:\Alfresco\tomcat\webapps\alfresco\jsp\custom, a log on is always required to acces the page, which seems strange to me. However the issue here is we do not want to allow the user access to both Share and Explorer, thus we are not looking to configure an SSO here. We’d like to only allow people of group “Manager”, or the currently logged in user from the group “Manager” to access this page, while it is located on the share side. We’ve tried adding the following into the

C:\Alfresco\tomcat\webapps\share\WEB-INF\web.xml file:

<security-constraint>
        <web-resource-collection>
            <web-resource-name>All</web-resource-name>
            <url-pattern>/custom /*</url-pattern>
            <http-method>GET</http-method>
            <http-method>POST</http-method>
        </web-resource-collection>
        <auth-constraint>
            <role-name>Manager</role-name>
        </auth-constraint>
    </security-constraint>

But this did not work. Does anyone have a suggestion as to how we might get the desired authentication?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T01:03:45+00:00Added an answer on June 14, 2026 at 1:03 am

    Authentication in Share is controlled by the Surf framework, and specifically it is set at the page level.

    The JSP page site-index.jsp provides an example JSP-based page which processes authenticated users for you to copy, but you must also wire it in to the framework.

    To do this, you’ll need to create a page definition similar to the following

    <?xml version='1.0' encoding='UTF-8'?>
    <page>
       <title>My page</title>
       <description>What the page is for</description>
       <template-instance>my-page</template-instance>
       <authentication>user</authentication>
    </page>
    

    Add this file under WEB-INF/classes/alfresco/site-data/pages/site-index.xml.

    You’ll see that the page references a template instance my-page, which must be declared in a second XML file under WEB-INF/classes/alfresco/site-data/template-instances, e.g.

    <?xml version='1.0' encoding='UTF-8'?>
    <template-instance>
       <template-type>my-page</template-type>
    </template-instance>
    

    The name of the template-instance XML file (without the .xml suffix) must match the name specified in the page’s <template-instance> property.

    Lastly create a template type file my-page.xml (this name must match the <template-type> property in the template instance file) under WEB-INF/classes/alfresco/site-data/template-types, e.g.

    <?xml version="1.0" encoding="UTF-8"?>
    <template-type>
            <title>Site index landing page template type</title>
            <description>Site index landing page JSP Template Type</description>
    
            <!-- Define the rendering processors for this template type -->
            <processor mode="view">
                    <id>jsp</id>
                    <jsp-path>/my-page.jsp</jsp-path>
            </processor>
    
    </template-type>
    

    The file my-page.jsp will contain your JSP code. As I mention look at the core file site-index.jsp for an example.

    When you have all of this working you should package up your customisations in an AMP file. You can use either Ant or Maven to do this depending on your preference.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The project that I am working on (Node.js) implies lots of operations with the
The project currently has a UIviewController called Dashboard that acts as the main view
Current project is an Mvc4 application, I had Ioc working and recently it just
Project: To create dynamic multi page form that populates the fields in different ways
My project consists of an app that links to two static libraries. Each of
This project was coped almost exacatly from the example on the admob page but
Project : ASP.NET 3.5 Server : SQL Server 2008 One of the page in
Project I'm working on uses jQuery. I have a series of Ajax calls being
Project file here if you want to download: http://files.me.com/knyck2/918odc So I am working on
Project is C#. So I have a bunch of multithreaded code that is designed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.