2 Replies Latest reply on Oct 11, 2007 7:10 AM by atao

    extending seam Idenity with a domain

    koenhandekyn

      hello

      i'd like to extend the seam identity with a domain ( user @ domain / password )

      how can i get seam to use my extended idenity object iso the default ?

      thanx

      koen

        • 1. Re: extending seam Idenity with a domain
          koenhandekyn

          the only thing i found so far is a class parameter in components.xml cfr below

          <security:identity
          authenticate-method="#{authenticator.authenticate}"
          class="up.seam.UpIdentity"
          auto-create="true" />

          this however dos NOT make seam use my extended identity class

          • 2. Re: extending seam Idenity with a domain
            atao

            Declare your new Identity class with something like:

            @Name("org.jboss.seam.security.identity")
            @Scope(SESSION)
            @Install(precedence = APPLICATION)
            @BypassInterceptors
            @Startup
            public class ExtendedIdentity extends RuleBasedIdentity
            


            the point here is the @Install(precedence = APPLICATION) which has higher priority than:
            - @Install(precedence=FRAMEWORK) for RuleBasedIdentity
            - or @Install(precedence = BUILT_IN) for Identity

            Change nothing in components.xml