Skip to content

Commit c341912

Browse files
authored
Merge pull request #144 from Paul-Blanchaert/basic-auth-username-case-insensitive
Basic auth username case insensitive
2 parents f692a2f + 0facfb9 commit c341912

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/modules/ConfiguredBasicAuthAuthenticator.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ case class ConfiguredBasicAuthAuthenticator(validUserId: String, validPassword:
1818
val password = userCredentials.getPassword()
1919
if (CommonHelper.isBlank(username)) throw new CredentialsException("Username cannot be blank")
2020
if (CommonHelper.isBlank(password)) throw new CredentialsException("Password cannot be blank")
21-
if (CommonHelper.areNotEquals(username, validUserId)) throw new CredentialsException("Username : '" + username + "' does not match valid user")
21+
if (CommonHelper.areNotEquals(username.toLowerCase, validUserId.toLowerCase)) throw new CredentialsException("Username : '" + username + "' does not match valid user")
2222
if (CommonHelper.areNotEquals(password, validPassword)) throw new CredentialsException("Password does not match valid password")
2323
val profile = new CommonProfile
2424
profile.setId(username)

build.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import com.typesafe.sbt.GitBranchPrompt
22

33
name := "search-management-ui"
4-
version := "4.0.10"
4+
version := "4.0.11"
55
maintainer := "Contact productful.io <hello@productful.io>"
66

77
scalaVersion := "2.12.17"

0 commit comments

Comments
 (0)