This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<envEvento versao="1.00" xmlns="http://www.portalfiscal.inf.br/nfe"> | |
<idLote>1</idLote> | |
<evento versao="1.00" xmlns="http://www.portalfiscal.inf.br/nfe"> | |
<infEvento Id="ID110111351612xxxxxxxxxxxxxx55001000000201114809581501"> | |
<cOrgao>35</cOrgao> | |
<tpAmb>2</tpAmb> | |
<CNPJ>xxxxxxxxxxxxxx</CNPJ> | |
<chNFe>35161207031405000136550010000002011148095815</chNFe> | |
<dhEvento>2016-12-06T12:22:30-02:00</dhEvento> | |
<tpEvento>110111</tpEvento> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
public class SecurityConfiguration extends WebSecurityConfigurerAdapter { | |
private static final Logger LOGGER = LoggerFactory.getLogger(SecurityConfiguration.class); | |
@Autowired | |
private WebAuthenticationProvider authenticationProvider; | |
@Autowired | |
private LoginAuthenticationSuccessHandler loginAuthenticationSuccessHandler; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.com.project.auth; | |
import org.apache.commons.lang3.Validate; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.context.annotation.Scope; | |
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; | |
import org.springframework.security.core.Authentication; | |
import org.springframework.security.core.AuthenticationException; | |
import org.springframework.security.ldap.authentication.LdapAuthenticationProvider; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:context="http://www.springframework.org/schema/context" | |
xmlns:security="http://www.springframework.org/schema/security" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.1.xsd | |
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.1.xsd | |
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.2.xsd"> | |
<security:http auto-config="true" use-expressions="true"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
<bean id="dataSourceMySql" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close"> | |
<property name="driverClassName" value="com.mysql.jdbc.Driver" /> | |
<property name="url" value="jdbc:mysql://mysql.host:3306/test" /> | |
<property name="username" value="mysql_user" /> | |
<property name="password" value="mysql_pass" /> | |
</bean> | |
<bean id="dataSourceOracle" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close"> | |
<property name="driverClassName" value="oracle.jdbc.driver.OracleDriver" /> |