add security configuration
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
dmitriy.churmeev
2026-03-28 20:44:02 +03:00
parent 8c11b695d6
commit 05116c5aaf
4 changed files with 77 additions and 5 deletions

View File

@@ -4,10 +4,10 @@ spring:
application:
name: app
security:
user:
name: admin
password: pass
# security:
# user:
# name: admin
# password: pass
# Datasource
datasource:
@@ -27,8 +27,29 @@ spring:
database: postgresql
database-platform: org.hibernate.dialect.PostgreSQLDialect
# Keycloak Security
security:
oauth2:
client:
registration:
keycloak:
client-id: test_client
client-secret: jyO0RTH9dzPaschkpfjzwZ6WprTlMPZ6
# scope: openid,profile,email
redirect-uri: http://app.dmitriy-churmeev.tech
provider:
keycloak:
issuer-uri: https://keycloak.dmitriy-churmeev.tech/realms/test_realm
# Flyway
flyway:
enabled: true
locations: classpath:db/migration
baseline-on-migrate: true
baseline-on-migrate: true
#keycloak:
# auth-server-url: http://keycloak.dmitriy-churmeev.tech/auth
# realm: test_realm
# resource: test_client
# public-client: true