Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email Address Input in Amplify Authentication is not Case Sensitive #4212

Open
7 of 14 tasks
Transparent-Prophet opened this issue Dec 5, 2023 · 9 comments
Open
7 of 14 tasks
Labels
auth Issues related to the Auth Category Authenticator Issues related to the Authenticator UI Component feature-request A request for a new feature or an enhancement to an existing API or category.

Comments

@Transparent-Prophet
Copy link

Transparent-Prophet commented Dec 5, 2023

Description

The title pretty much explains it. Any uppercase characters are ignored in the built in text field so long as the overall email address exists. It's not exactly a major issue but it can be an inconvenience since most authenticators DO keep in mind case sensitivity for extra validation and potential security.

You also might want to check if this is the case for other Auth configurations like usernames-based sign in.

Categories

  • Analytics
  • API (REST)
  • API (GraphQL)
  • Auth
  • Authenticator
  • DataStore
  • Notifications (Push)
  • Storage

Steps to Reproduce

No response

Screenshots

No response

Platforms

  • Android
  • iOS
  • Web
  • macOS
  • Linux
  • Windows

Flutter Version

3.16.1

Amplify Flutter Version

12.8.2

Deployment Method

Amplify CLI

Schema

No response

@khatruong2009 khatruong2009 added auth Issues related to the Auth Category Authenticator Issues related to the Authenticator UI Component pending-triage This issue is in the backlog of issues to triage labels Dec 5, 2023
@Transparent-Prophet Transparent-Prophet changed the title Email Address Input in Authenticator is not Case Sensitive Email Address Input in Amplify Authentication is not Case Sensitive Dec 6, 2023
@khatruong2009 khatruong2009 removed the pending-triage This issue is in the backlog of issues to triage label Dec 7, 2023
@haverchuck haverchuck added the feature-request A request for a new feature or an enhancement to an existing API or category. label Dec 7, 2023
@Jordan-Nelson
Copy link
Member

Apologies for the delay in response. We are tracking this as a feature request and will post here when we have further updates.

@jamontesg
Copy link

jamontesg commented Nov 11, 2024

Hi. any news about this ?
@Jordan-Nelson it is possible force email to lowerCase ?

@github-actions github-actions bot added the pending-maintainer-response Pending response from a maintainer of this repository label Nov 11, 2024
@Equartey
Copy link
Contributor

Hi @jamontesg, the Authenticator currently transforms email input as lowercase internally. This feature request would be to allow for case sensitive input.

There are no updates at this time regarding enabling this behavior.

@github-actions github-actions bot removed the pending-maintainer-response Pending response from a maintainer of this repository label Nov 13, 2024
@jamontesg
Copy link

jamontesg commented Nov 14, 2024

Hi @Equartey , Authenticator. don't apply any lower case function.
I am using
amplify_authenticator: 2.3.0 and android emulator

my code:
AuthenticatorForm( child: Padding( padding: const EdgeInsets.symmetric(horizontal: 16), child: Column( children: [ const Image( image: AssetImage('assets/images/logos10.png')), Padding( padding: const EdgeInsets.all(15.0), child: Text( AppLocalizations.of(context)! .company_name_register, textAlign: TextAlign.center, style: Theme.of(context).textTheme.titleLarge), ), SignUpFormField.custom( required: true, validator: ((value) { if (value == null || value.isEmpty) { return AppLocalizations.of(context)! .name_empty .capitalized; } return null; }), title: AppLocalizations.of(context)!.name.capitalized, attributeKey: CognitoUserAttributeKey.name, ), DropdownButtonFormField( decoration: InputDecoration( hintText: AppLocalizations.of(context)! .country .capitalized, ), validator: (value) => value == null ? AppLocalizations.of(context)! .country .capitalized : null, onChanged: (String? newValue) { setState(() { selectedValue = newValue!; state.zoneInfo = newValue; }); }, items: dropdownItems), SignUpFormField.custom( required: true, validator: ((value) { if (value == null || value.isEmpty) { return AppLocalizations.of(context)! .farm_empty .capitalized; } return null; }), title: AppLocalizations.of(context)!.far_name.capitalized, attributeKey: CognitoUserAttributeKey.nickname, ), SignUpFormField.email(required: true), SignUpFormField.password(), SignUpFormField.passwordConfirmation(), const SignUpButton(), ], ), ), ),

Thanks for your time

@github-actions github-actions bot added the pending-maintainer-response Pending response from a maintainer of this repository label Nov 14, 2024
@Equartey
Copy link
Contributor

Hi @jamontesg, I'm not sure I understand the issue. Are you expecting the UI to transform the text input to lowercase? If so, you are correct; The authenticator does not offer that. However, internally we transform the input into lowercase and use that value to fulfill the request.

If I'm right in assuming you want the UI to change to display lowercase text input, that would be a separate feature request, unrelated to this one.

@github-actions github-actions bot removed the pending-maintainer-response Pending response from a maintainer of this repository label Nov 14, 2024
@jamontesg
Copy link

thanks @Equartey , mi users are typing. emails. like. [email protected]. and. this ugly email with lower and upper case, is. stored into cognito users pool. I am trying to keep my information clean.
Any ideas for get emails in lowercase using Authenticator ?

@github-actions github-actions bot added the pending-maintainer-response Pending response from a maintainer of this repository label Nov 14, 2024
@Equartey
Copy link
Contributor

@jamontesg, could you please create a separate feature request so we can track it independently from this one?

@github-actions github-actions bot removed the pending-maintainer-response Pending response from a maintainer of this repository label Nov 15, 2024
@jamontesg
Copy link

redada @Equartey https://github.com/aws-amplify/amplify-flutter/issues/5678

@github-actions github-actions bot added the pending-maintainer-response Pending response from a maintainer of this repository label Nov 15, 2024
@NikaHsn
Copy link
Member

NikaHsn commented Nov 18, 2024

@jamontesg thanks for creating the new feature request #5678.

@github-actions github-actions bot removed the pending-maintainer-response Pending response from a maintainer of this repository label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth Issues related to the Auth Category Authenticator Issues related to the Authenticator UI Component feature-request A request for a new feature or an enhancement to an existing API or category.
Projects
None yet
Development

No branches or pull requests

7 participants