Skip to content

Commit

Permalink
Merge pull request #144 from Paul-Blanchaert/basic-auth-username-case…
Browse files Browse the repository at this point in the history
…-insensitive

Basic auth username case insensitive
  • Loading branch information
epugh committed Feb 22, 2024
2 parents f692a2f + 0facfb9 commit c341912
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/modules/ConfiguredBasicAuthAuthenticator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ case class ConfiguredBasicAuthAuthenticator(validUserId: String, validPassword:
val password = userCredentials.getPassword()
if (CommonHelper.isBlank(username)) throw new CredentialsException("Username cannot be blank")
if (CommonHelper.isBlank(password)) throw new CredentialsException("Password cannot be blank")
if (CommonHelper.areNotEquals(username, validUserId)) throw new CredentialsException("Username : '" + username + "' does not match valid user")
if (CommonHelper.areNotEquals(username.toLowerCase, validUserId.toLowerCase)) throw new CredentialsException("Username : '" + username + "' does not match valid user")
if (CommonHelper.areNotEquals(password, validPassword)) throw new CredentialsException("Password does not match valid password")
val profile = new CommonProfile
profile.setId(username)
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import com.typesafe.sbt.GitBranchPrompt

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

scalaVersion := "2.12.17"
Expand Down

0 comments on commit c341912

Please sign in to comment.