Bookmark does not redirect to login page

0

I followed the post about authentication and authorization in demoiselle but I can not redirect to the login page, it follows files:

frameworkdemoiselle.security.enabled=true 
frameworkdemoiselle.security.authorizer.class=br.gov.serpro.bookmark.security.Autorizacao    
frameworkdemoiselle.security.authenticator.class=br.gov.serpro.bookmark.security.Autenticacao 
frameworkdemoiselle.security.login.page=/login.xhtml
frameworkdemoiselle.security.redirect.after.login=/index.xhtml
frameworkdemoiselle.security.redirect.after.logout=/login.xhtml
frameworkdemoiselle.security.redirect.enable=true

login screen.xhtml

<h:head>
    <title>#{messages['main.app.title']}</title>
</h:head>

<h:body>
    <h:form>
        <p:growl id="messages" />
        <p:menubar style="font-weight: bold; font-size: small">
            <p:menuitem value="Portal Sistema" url="#" />
            <f:facet name="options">
                <p:outputLabel for="login" value="Usuário: " />
                <p:inputText id="login" style="margin-right:10px"
                    value="#{loginMB.usuario}" required="true"/>
                <p:outputLabel for="senha" value="Senha: " />
                <p:inputText id="senha" style="margin-right:10px"
                    value="#{loginMB.senha}" required="true"/>
                <p:commandButton value="Login" icon="ui-icon-locked"
                    action="#{loginMB.doLogin()}" />
            </f:facet>
        </p:menubar>
    </h:form>
</h:body>

    
asked by anonymous 02.06.2015 / 15:05

1 answer

1

Check the Example Application for the required settings depending on the version of Demoiselle you are using

    
03.06.2015 / 21:31