Compare commits

..

2 Commits

Author SHA1 Message Date
TeamCity
c36720e548 ci: bump version to v4.50.0 2026-01-21 11:24:51 +00:00
4b74de1261 feat: Update ID mapping in OpenIDUserInfo to use hashed value and remove name field 2026-01-21 12:22:19 +01:00
3 changed files with 8 additions and 3 deletions

View File

@@ -438,3 +438,8 @@
### Features
* Change log level to warn for OpenID callback in OpenIDController ([4a6598f](https://git.janis-eccarius.de/KnockOutWhist/KnockOutWhist-Web/commit/4a6598f102d8934c7502944a0addd400dd0cbcac))
## (2026-01-21)
### Features
* Update ID mapping in OpenIDUserInfo to use hashed value and remove name field ([4b74de1](https://git.janis-eccarius.de/KnockOutWhist/KnockOutWhist-Web/commit/4b74de12610120831fc1529f0409db66aafd4d03))

View File

@@ -138,9 +138,9 @@ class OpenIDConnectService@Inject(ws: WSClient, config: Configuration)(implicit
if (response.status == 200) {
val json = response.json
Some(OpenIDUserInfo(
id = (json \ provider.idClaimName).as[String],
id = (json \ provider.idClaimName).as[String].hashCode.toString,
email = (json \ "email").asOpt[String],
name = (json \ "name").asOpt[String].orElse((json \ "login").asOpt[String]),
name = None,
picture = (json \ "picture").asOpt[String].orElse((json \ "avatar_url").asOpt[String]),
provider = providerName,
providerName = provider.name

View File

@@ -1,3 +1,3 @@
MAJOR=4
MINOR=49
MINOR=50
PATCH=0