0
I followed the post about authentication and authorization in Demoiselle but I can’t redirect to the login page, follow 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>
Any specific rules in web.xml? filter?
– Welder
I don’t understand about this, but I believe it’s JSF? I added the tags, please reverse the edit if I’m wrong.
– Guilherme Nascimento
this topic is the same http://answall.com/questions/54887/redirecionar-para-p%C3%A1gina-de-login-to-access-other-p%C3%A1gina-sem-Usu%C3%A1rio-estar-loga
– Michel Simões
I followed that thread, and it didn’t work...
– Welder