Skip to content

Commit

Permalink
Fix for password regex rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuki-YuXin committed May 1, 2024
1 parent 1d542e6 commit 9939418
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class NativeAuthPublicClientApplicationKotlinTest : PublicClientApplicationAbstr
private val emptyString = ""
private val allowPII = true
private val allowPIITrueToCheck = listOf(
"""(?<![,"\[\]\(])password[:=](?![,"'\[\]\)])""", // 'password:' 'password=' exclude ',password,' '[password]' '"password"' '(password)'
"""(?<![\[\(])["]password["][:=]?(?![\]\)])""", // '"password":' 'password' 'password=' 'password=' '"password"' exclude 'password' ',password,' '"challengeType":["password"]' '"password"' '(password)'
"""(?<![\s\?\(])(code)[:=]""", // 'code' 'code:' 'code=' exclude 'codeLength' 'error?code',
"""(?<![\(])continuationToken[:=]""",
"""(?<![\(])attributes[:=]""",
Expand Down

0 comments on commit 9939418

Please sign in to comment.