ICEfaces
  1. ICEfaces
  2. ICE-3013

Create authentication sample application

    Details

    • Type: Task Task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.8.2
    • Component/s: Sample Apps
    • Labels:
      None
    • Environment:
      ICEfaces

      Description

      We need to provide an example of how the login and logout process should be implemented in ICEfaces. The example should cover a few different ways one can do authentication such as:

      * basic authentication (in conjunction with the servlet container)
      * form authentication (in conjunction with the servlet container)
      * application driven authentication



        Activity

        Mircea Toma created issue -
        Mircea Toma made changes -
        Field Original Value New Value
        ICEfaces Forum Reference http://www.icefaces.org/JForum/posts/list/7658.page
        Hide
        Mircea Toma added a comment -

        We need to do the followings:

        • create page with links to the three types of authentication
        • setup app. server with users and role or at least reuse the pre-defined users in Tomcat

        Basic Authentication

        • create "logout.jspx" with a command button that triggers a redirect "logout.jspx" using navigation rules
        • bind command button to the bean that invalidates the session
        • setup servlet container with basic authentication

        Form Authentication

        • create "form-login.html" – this will avoid session creation before getting authenticated
        • reuse "logout.jspx", the bean, and related navigation rules from "Basic Authentication"

        Application Authentication

        • create "app-login.jspx" page that uses ICEfaces components for input
        • create bean that handles authentication
        • define navigation rules for successful authentication
        Show
        Mircea Toma added a comment - We need to do the followings: create page with links to the three types of authentication setup app. server with users and role or at least reuse the pre-defined users in Tomcat Basic Authentication create "logout.jspx" with a command button that triggers a redirect "logout.jspx" using navigation rules bind command button to the bean that invalidates the session setup servlet container with basic authentication Form Authentication create "form-login.html" – this will avoid session creation before getting authenticated reuse "logout.jspx", the bean, and related navigation rules from "Basic Authentication" Application Authentication create "app-login.jspx" page that uses ICEfaces components for input create bean that handles authentication define navigation rules for successful authentication
        Hide
        Adi König added a comment -

        When will you provide such a tutorial / sample app? I'm very interested about it! In the referenced form post from 22/04/2008, you wrote about "few days"...

        Show
        Adi König added a comment - When will you provide such a tutorial / sample app? I'm very interested about it! In the referenced form post from 22/04/2008, you wrote about "few days"...
        Hide
        Ken Fyten added a comment -

        Could use either Spring Security or JAAS for this, or maybe both?

        Show
        Ken Fyten added a comment - Could use either Spring Security or JAAS for this, or maybe both?
        Hide
        Igor Pustylnick added a comment -

        I created the app and put in the tutorial/samples section. It is supposed to be built from build.xml. I did not write the documentation yet because couple of issues still remain outstanding. As soon as I iron them out I will put the readme and brief explanation with the code.
        Things, which work:

        • Log in/out using spring security
        • Role access control

        Things, which were bypassed:

        • navigation to spring urls via faces-config.xml. I use redirection instead, which works fine

        Things TBD

        • method security is not working yet. It has absolutely nothing to do with icefaces. Spring does not pick @Secured annotation

        If anybody finds the code familiar, I have adopted it from Seema Richard's article in JavaWorld about using Acegi and JSF. This sample uses ICEFaces and Spring Security 2.0 ( a step up from Acegi)

        Show
        Igor Pustylnick added a comment - I created the app and put in the tutorial/samples section. It is supposed to be built from build.xml. I did not write the documentation yet because couple of issues still remain outstanding. As soon as I iron them out I will put the readme and brief explanation with the code. Things, which work: Log in/out using spring security Role access control Things, which were bypassed: navigation to spring urls via faces-config.xml. I use redirection instead, which works fine Things TBD method security is not working yet. It has absolutely nothing to do with icefaces. Spring does not pick @Secured annotation If anybody finds the code familiar, I have adopted it from Seema Richard's article in JavaWorld about using Acegi and JSF. This sample uses ICEFaces and Spring Security 2.0 ( a step up from Acegi)
        Igor Pustylnick made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Affects [Sample App./Tutorial]
        Resolution Fixed [ 1 ]
        Assignee Igor Pustylnick [ igor.pustylnick ]
        Hide
        Sravan Modugula added a comment -

        I am working on the user authentication module, can you provide sample application. As you mentioned above that the sample application has been uploaded in the tutorial/samples section, can you guide me to download this sample application.

        Show
        Sravan Modugula added a comment - I am working on the user authentication module, can you provide sample application. As you mentioned above that the sample application has been uploaded in the tutorial/samples section, can you guide me to download this sample application.
        Hide
        Jakab Radu added a comment -

        I also cannot find this sample app (was expecting it in http://www.icefaces.org/main/resources/tutorials.iface), please provide a link to it or some other means of download.

        Show
        Jakab Radu added a comment - I also cannot find this sample app (was expecting it in http://www.icefaces.org/main/resources/tutorials.iface ), please provide a link to it or some other means of download.
        Ken Fyten made changes -
        Assignee Igor Pustylnick [ igor.pustylnick ] Patrick Corless [ patrick.corless ]
        Ken Fyten made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Hide
        Ken Fyten added a comment -

        This tutorial needs to be published on the site.

        Show
        Ken Fyten added a comment - This tutorial needs to be published on the site.
        Hide
        Andrea Zorzin added a comment - - edited

        Please, can you publish this tutorial? Thanks!

        Show
        Andrea Zorzin added a comment - - edited Please, can you publish this tutorial? Thanks!
        Hide
        Patrick Corless added a comment -

        Here's the bug for our previous discussion. You should get a better sense of the history behind it.

        Show
        Patrick Corless added a comment - Here's the bug for our previous discussion. You should get a better sense of the history behind it.
        Patrick Corless made changes -
        Assignee Patrick Corless [ patrick.corless ] Brad Kroeger [ brad.kroeger ]
        Hide
        Sarath Magam added a comment - - edited

        Does, anyone know why Spring is not picking the @Secured annotation!!! Any other Alternate Suggestions for Method Level Security. I tried all three options mentioned under http://www.jroller.com/habuma/entry/method_level_security_in_spring Nothing seems to be working? I am Struck!! Thanks in advance for your Help!!!

        Show
        Sarath Magam added a comment - - edited Does, anyone know why Spring is not picking the @Secured annotation!!! Any other Alternate Suggestions for Method Level Security. I tried all three options mentioned under http://www.jroller.com/habuma/entry/method_level_security_in_spring Nothing seems to be working? I am Struck!! Thanks in advance for your Help!!!
        Hide
        Brad Kroeger added a comment -

        Revision #20790 - Committed application "ice3013" svn/repo/applications/ice3013.

        This application has BASIC, FORM, and APPLICATION methods of authenticating with ICEfaces.

        The only issue is after logging in with BASIC and logging out, the user is not prompted to authenticate the next time they attempt to reach the secure page.

        Show
        Brad Kroeger added a comment - Revision #20790 - Committed application "ice3013" svn/repo/applications/ice3013. This application has BASIC, FORM, and APPLICATION methods of authenticating with ICEfaces. The only issue is after logging in with BASIC and logging out, the user is not prompted to authenticate the next time they attempt to reach the secure page.
        Brad Kroeger made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Salesforce Case []
        Fix Version/s 1.8.2 [ 10190 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Brad Kroeger
            Reporter:
            Mircea Toma
          • Votes:
            24 Vote for this issue
            Watchers:
            27 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: