This commit is contained in:
@@ -30,17 +30,15 @@ dependencies {
|
||||
implementation 'org.springframework.boot:spring-boot-starter-security'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'
|
||||
//implementation 'org.keycloak:keycloak-spring-boot-starter'
|
||||
|
||||
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin'
|
||||
implementation 'org.jetbrains.kotlin:kotlin-reflect'
|
||||
implementation("org.springframework.boot:spring-boot-starter-actuator:3.5.7")
|
||||
|
||||
//implementation 'org.keycloak.bom:keycloak-adapter-bom:25.0.6'
|
||||
|
||||
//implementation("org.springframework.boot:spring-boot-starter-data-jpa")
|
||||
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
|
||||
//implementation("org.flywaydb:flyway-database-postgresql:10.10.0")
|
||||
//runtimeOnly("org.postgresql:postgresql")
|
||||
runtimeOnly("org.postgresql:postgresql")
|
||||
|
||||
|
||||
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||||
|
||||
@@ -33,9 +33,4 @@ open class TestController {
|
||||
return "Home page"
|
||||
}
|
||||
|
||||
@GetMapping("/scret")
|
||||
fun secret(): String {
|
||||
return password.orEmpty()
|
||||
}
|
||||
|
||||
}
|
||||
@@ -11,9 +11,9 @@ spring:
|
||||
|
||||
# Datasource
|
||||
datasource:
|
||||
url: jdbc:postgresql://postgres.my-spring-app-6b948f469d-gdw6q.svc.cluster.local:5432/app_db
|
||||
url: jdbc:postgresql://192.168.2.101:5432/app_db
|
||||
username: postgres
|
||||
password: postgres
|
||||
password: ${SPRING_DATASOURCE_PASSWORD}
|
||||
driver-class-name: org.postgresql.Driver
|
||||
|
||||
# JPA
|
||||
@@ -34,14 +34,6 @@ spring:
|
||||
jwt:
|
||||
issuer-uri: https://keycloak.dmitriy-churmeev.tech/realms/test_realm
|
||||
|
||||
# Для использования клиентской сессии
|
||||
# client:
|
||||
# registration:
|
||||
# keycloak:
|
||||
# client-id: test_client
|
||||
# client-secret: jyO0RTH9dzPaschkpfjzwZ6WprTlMPZ6
|
||||
# redirect-uri: http://app.dmitriy-churmeev.tech/login/oauth2/code/keycloak
|
||||
|
||||
provider:
|
||||
keycloak:
|
||||
issuer-uri: https://keycloak.dmitriy-churmeev.tech/realms/test_realm
|
||||
|
||||
Reference in New Issue
Block a user