Commit 124ec895282d5581ba4be02c59c1175d684c7c54
1 parent
f0b14f2f
Exists in
master
Configuração do autorizador e autenticador passou a ser no
demoiselle.properties.
Showing
1 changed file
with
5 additions
and
13 deletions
Show diff stats
documentation/reference/pt-BR/security.xml
| ... | ... | @@ -221,20 +221,12 @@ public class MeuAuthorizer implements Authorizer { |
| 221 | 221 | |
| 222 | 222 | }]]></programlisting> |
| 223 | 223 | <para> |
| 224 | - Feito isso deve-se definir no arquivo META-INF/beans.xml, as classes criadas: | |
| 224 | + Feito isso deve-se definir no arquivo <filename>demoiselle.properties</filename>, as classes criadas: | |
| 225 | 225 | </para> |
| 226 | - <programlisting role="XML"><![CDATA[<?xml version="1.0"?> | |
| 227 | -<beans xmlns="http://java.sun.com/xml/ns/javaee" | |
| 228 | - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| 229 | - xsi:schemaLocation="http://java.sun.com/xml/ns/javaee | |
| 230 | - http://java.sun.com/xml/ns/javaee/beans_1_1.xsd"> | |
| 231 | - | |
| 232 | - <alternatives> | |
| 233 | - <class>projeto.MeuAuthenticator</class> | |
| 234 | - <class>projeto.MeuAuthorizer</class> | |
| 235 | - </alternatives> | |
| 236 | - | |
| 237 | -</beans>]]></programlisting> | |
| 226 | + <programlisting> | |
| 227 | + frameworkdemoiselle.security.authenticator.class=projeto.MeuAuthenticator | |
| 228 | + frameworkdemoiselle.security.authorizer.class=projeto.MeuAuthorizer | |
| 229 | + </programlisting> | |
| 238 | 230 | <para> |
| 239 | 231 | À partir desse momento, a aplicação já possui uma implementação de segurança definida. |
| 240 | 232 | </para> | ... | ... |