firebaseui-web icon indicating copy to clipboard operation
firebaseui-web copied to clipboard

Set Minimum Password Length Firebase Email & Password Authentication

Open namsor opened this issue 6 years ago • 34 comments

Hi!

Currently, Firebase will through a FirebaseAuthWeakPasswordException if the password length is less that 6.

Could additional password rules be configured on the client side, for example if we would like to encore a minimum password length of 8 ? The IT Security team of a client is requesting this minimum password length.

The minimum password length or custom rules could be specified in Other config options...
ui.start('#firebaseui-auth-container', { signInOptions: [ // List of OAuth providers supported. ... firebase.auth.EmailAuthProvider.PROVIDER_ID ], // Other config options...
});

Alternatives were discussed in this Stackoverflow thread, but none seems convincing, https://stackoverflow.com/questions/36318198/set-minimum-password-length-firebase-email-password-authentication

Thanks for considering this enhancement or suggesting an alternative approach, Elian

namsor avatar Dec 20 '19 11:12 namsor

Hey @namsor, we may consider setting a client side enforcement in firebaseui via some regex. Though the risk is if the user cannot meet the regex requirements, we still need a custom error message to guide the user beyond just a message that the password is too weak.

bojeil-google avatar Dec 20 '19 19:12 bojeil-google

Thank you, yes. The custom error message could be passed along with the regexp.

namsor avatar Dec 26 '19 15:12 namsor

I'm also interested - will the minimum password length be available for configuration?

nordknight avatar Mar 13 '20 11:03 nordknight

Also, please, don't forget about password recovery. Because it should have the same rule.

andrew-mikhailov-zfort avatar Jun 01 '20 14:06 andrew-mikhailov-zfort

Hey @namsor, we may consider setting a client side enforcement in firebaseui via some regex. Though the risk is if the user cannot meet the regex requirements, we still need a custom error message to guide the user beyond just a message that the password is too weak.

What is the status on this guys?

mohiyuddinshaikh avatar Feb 15 '21 09:02 mohiyuddinshaikh

Having some kind of built in mechanism to control password regex for firebase authentication would be amazing.

wilderuncat avatar Apr 07 '21 16:04 wilderuncat

Please guys, develop this functionality. It could look somethings like these.

const rules = [ 
  {
    rule: "some regex",
    message: "My error message for this rule"
  },
  {
    rule: "some other regex",
    message: "My error message for this rule"
  },
  // ... more rules
];

await firebase.auth().enforcePasswordRules(rules);

luanlucho avatar May 04 '21 14:05 luanlucho

Hi all, thanks for your input on this feature request! We are unable to promise any timeline for this, but if others also have this request, adding a +1 on this issue can help us prioritize adding this to the roadmap.

Internal tracking bug: b/188591575

weixifan avatar May 19 '21 01:05 weixifan

A merchant is blocking our registration because we cannot implement a stronger password requirement. I see the work arounds but it would be nice if this was implemented directly.

dangell7 avatar Jun 09 '21 22:06 dangell7

+1 I need this too

witalijx avatar Sep 19 '21 14:09 witalijx

+1

matthieunelmes avatar Nov 29 '21 22:11 matthieunelmes

+1 as it sounds super basic and important

matas-itmoos avatar Jan 06 '22 10:01 matas-itmoos

+1 please add minimum strength also

nenriquez avatar Jan 12 '22 04:01 nenriquez

+1 6 characters is a very, very basic starting point for a password. Enabling additional rules around passwords would greatly increase peace of mind while using FirebaseUI.

JoshMart avatar Jan 22 '22 18:01 JoshMart

+1

welsh11 avatar Feb 09 '22 17:02 welsh11

+1

WONDERJEWEL avatar Feb 12 '22 07:02 WONDERJEWEL

+1

turnonsc avatar Mar 02 '22 20:03 turnonsc

+1

papmodern avatar Mar 17 '22 13:03 papmodern

+1

PolVales avatar May 17 '22 08:05 PolVales

+1

benhxy avatar Jun 03 '22 04:06 benhxy