diff --git a/src/main/kotlin/ltd/hlaeja/Application.kt b/src/main/kotlin/ltd/hlaeja/Application.kt index adca0c4..994e020 100644 --- a/src/main/kotlin/ltd/hlaeja/Application.kt +++ b/src/main/kotlin/ltd/hlaeja/Application.kt @@ -5,11 +5,13 @@ import ltd.hlaeja.property.DeviceRegistryProperty import org.springframework.boot.autoconfigure.SpringBootApplication import org.springframework.boot.context.properties.EnableConfigurationProperties import org.springframework.boot.runApplication +import org.springframework.session.data.redis.config.annotation.web.server.EnableRedisIndexedWebSession @EnableConfigurationProperties( AccountRegistryProperty::class, DeviceRegistryProperty::class, ) +@EnableRedisIndexedWebSession @SpringBootApplication class Application diff --git a/src/main/kotlin/ltd/hlaeja/security/user/RemoteAuthentication.kt b/src/main/kotlin/ltd/hlaeja/security/user/RemoteAuthentication.kt index 72cc2eb..91b4d23 100644 --- a/src/main/kotlin/ltd/hlaeja/security/user/RemoteAuthentication.kt +++ b/src/main/kotlin/ltd/hlaeja/security/user/RemoteAuthentication.kt @@ -9,7 +9,7 @@ data class RemoteAuthentication( private var authenticated: Boolean = false, ) : Authentication { - override fun getName(): String = "Hlaeja Account Registry" + override fun getName(): String = remoteUserDetail.id.toString() override fun getAuthorities(): MutableCollection = authorities diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 148fabb..6584da5 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -11,8 +11,6 @@ spring: version: "%APP_BUILD_OS_VERSION%" session: timeout: 60m - redis: - namespace: "spring:session:management" data: redis: port: 6379