Updated dependencies. OAuth server from http://localhost to https://okupamicoche-keycloak

This commit is contained in:
2021-04-29 13:12:05 +02:00
parent 7c8276b2c7
commit 886579a0b3
5 changed files with 13 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "2.4.4"
id("org.springframework.boot") version "2.4.5"
id("io.spring.dependency-management") version "1.0.11.RELEASE"
war
kotlin("jvm") version "1.4.31"
@@ -28,7 +28,7 @@ dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor")
implementation("io.github.microutils:kotlin-logging-jvm:2.0.6")
// https://mvnrepository.com/artifact/net.folivo/matrix-spring-boot-bot
implementation ("net.folivo:matrix-spring-boot-bot:0.4.6")
implementation ("net.folivo:matrix-spring-boot-bot:0.4.8")
developmentOnly("org.springframework.boot:spring-boot-devtools")
runtimeOnly("com.h2database:h2")
runtimeOnly("io.r2dbc:r2dbc-h2")

View File

@@ -26,8 +26,10 @@ oidc_providers:
- idp_id: keycloak
idp_name: Keycloak
issuer: "https://okupamicoche-keycloak:8443/auth/realms/okupamicoche"
client_id: "synapse"
client_secret: "2d2b51cf-09ab-44a3-97d8-b7c3c5289c87"
client_id: "okupamicoche-frontend-angular"
client_secret: "PUBLIC-CLIENT-WITH-NO-PASSWORD"
# client_id: "synapse"
# client_secret: "2d2b51cf-09ab-44a3-97d8-b7c3c5289c87"
scopes: [ "openid", "profile" ]
user_mapping_provider:
config:

View File

@@ -8,6 +8,7 @@ import javax.persistence.*
typealias TravelId = Long
@Entity
@Table
class Travel(
@Id @GeneratedValue var id: TravelId? = null,
@ManyToOne

View File

@@ -2,14 +2,12 @@ package eu.fosil.okupamicoche.entities
import org.hibernate.annotations.LazyCollection
import org.hibernate.annotations.LazyCollectionOption
import javax.persistence.Entity
import javax.persistence.Id
import javax.persistence.ManyToMany
import javax.persistence.OneToMany
import javax.persistence.*
typealias UserId = String
@Entity
@Table
class User(
@Id var id: UserId,
var username: String,

View File

@@ -13,13 +13,16 @@ spring:
oauth2:
resourceserver:
jwt:
issuer-uri: http://localhost:8080/auth/realms/okupamicoche
issuer-uri: https://okupamicoche-keycloak:8443/auth/realms/okupamicoche
jackson:
serialization:
write-dates-as-timestamps: false
logging:
level:
org:
springframework:
security: DEBUG
eu.fosil.okupamicoche: DEBUG
matrix: