refactoring(infra-auth)
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
## Test configuration for Auth Server
|
||||
## JWT Configuration
|
||||
#auth.jwt.secret=test-secret-for-testing-only-at-least-512-bits-long-for-hmac512-algorithm
|
||||
#auth.jwt.issuer=test-issuer
|
||||
#auth.jwt.audience=test-audience
|
||||
#auth.jwt.expiration=60
|
||||
#
|
||||
## Database Configuration
|
||||
#spring.datasource.url=jdbc:h2:mem:testdb
|
||||
#spring.datasource.driver-class-name=org.h2.Driver
|
||||
#spring.jpa.hibernate.ddl-auto=create-drop
|
||||
#spring.jpa.show-sql=false
|
||||
#
|
||||
## Security Configuration
|
||||
#spring.security.oauth2.resourceserver.jwt.issuer-uri=http://localhost:8080/realms/test
|
||||
#logging.level.org.springframework.security=DEBUG
|
||||
#
|
||||
## Actuator Configuration
|
||||
#management.endpoints.web.exposure.include=health,info,metrics,prometheus
|
||||
#management.endpoint.health.show-details=always
|
||||
#management.health.defaults.enabled=true
|
||||
#
|
||||
## Disable banner for cleaner test output
|
||||
#spring.main.banner-mode=off
|
||||
#logging.level.org.springframework.boot.autoconfigure=WARN
|
||||
@@ -0,0 +1,50 @@
|
||||
# Test configuration for Auth Server
|
||||
auth:
|
||||
jwt:
|
||||
secret: test-secret-for-testing-only-at-least-512-bits-long-for-hmac512-algorithm
|
||||
issuer: test-issuer
|
||||
audience: test-audience
|
||||
expiration: 60
|
||||
|
||||
# Database Configuration
|
||||
spring:
|
||||
datasource:
|
||||
url: jdbc:h2:mem:testdb
|
||||
driver-class-name: org.h2.Driver
|
||||
jpa:
|
||||
hibernate:
|
||||
ddl-auto: create-drop
|
||||
show-sql: false
|
||||
# Security Configuration - simplified for tests
|
||||
security:
|
||||
oauth2:
|
||||
resourceserver:
|
||||
jwt:
|
||||
issuer-uri: http://localhost:8080/realms/test
|
||||
# Disable banner for cleaner test output
|
||||
main:
|
||||
banner-mode: off
|
||||
# Autoconfiguration exclusions for integration tests
|
||||
autoconfigure:
|
||||
exclude:
|
||||
- org.springframework.boot.autoconfigure.security.oauth2.resource.servlet.OAuth2ResourceServerAutoConfiguration
|
||||
- org.springframework.boot.autoconfigure.security.oauth2.client.servlet.OAuth2ClientAutoConfiguration
|
||||
|
||||
# Actuator Configuration
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: health,info,metrics,prometheus
|
||||
endpoint:
|
||||
health:
|
||||
show-details: always
|
||||
health:
|
||||
defaults:
|
||||
enabled: true
|
||||
|
||||
# Logging Configuration
|
||||
logging:
|
||||
level:
|
||||
org.springframework.security: DEBUG
|
||||
org.springframework.boot.autoconfigure: WARN
|
||||
Reference in New Issue
Block a user