Skip to content

Commit a636d4c

Browse files
fix: Update JWT in application-dsv.properties
1 parent af5c91a commit a636d4c

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

src/main/java/com/helper/vavahelper/infra/security/SecurityFilter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
import com.helper.vavahelper.repositories.UserRepository;
1515

1616
import java.io.IOException;
17+
1718
@Component
1819
public class SecurityFilter extends OncePerRequestFilter{
20+
1921
@Autowired
2022
TokenService tokenService;
2123

src/main/java/com/helper/vavahelper/infra/security/TokenService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
import com.auth0.jwt.algorithms.Algorithm;
1313
import com.auth0.jwt.exceptions.JWTCreationException;
1414
import com.auth0.jwt.exceptions.JWTVerificationException;
15-
import com.helper.vavahelper.models.User.User;
1615

16+
import com.helper.vavahelper.models.User.User;
1717

1818

1919
@Service

src/main/resources/application-dsv.properties

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@ spring.jpa.show-sql=true
1313
spring.h2.console.path=/h2
1414
spring.jpa.defer-datasource-initialization=true
1515

16-
debug=true
16+
# JWT
17+
jwt.secret=secretkey
18+
jwt.expiration=3600000 # 1 hour in milliseconds
19+
api.security.token.secret=${JWT_SECRET:my_secret_key}

src/main/resources/application.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
spring.application.name=vavahelper
22

3+
debug=true
4+
35
# Define que o perfil ativo é o "dsv", carregando o arquivo application-dsv.properties
46
spring.profiles.active=dsv
57

0 commit comments

Comments
 (0)