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

Cannot edit invalid pre-filled e-mail address on Register Microsoft account screen #7324

Closed
tombogle opened this issue Jul 9, 2019 · 4 comments

Comments

@tombogle
Copy link

tombogle commented Jul 9, 2019

Description

Attempting to log in using Microsoft account. After entering credentials, it goes to https://www.nuget.org/account/register, where it asks me to provide a username. The email field is already filled in and is not editable, but since it is my Microsoft account name and is not a valid e-mail address, I'm stuck. Attempting to go forward gives the error message: This doesn't appear to be a valid email address.

To Reproduce

Steps to reproduce the behavior:

  1. Go to this URL: https://www.nuget.org/users/account/LogOn?returnUrl=%2F
  2. Click Sign in with Microsoft button
  3. Enter Skype id (I've also tried logging out of skype.com, and coming back to nuget using the e-mail address associated with the Skype/Microsoft account - same results.)
  4. When prompted, I enter my password. That opens this URL: https://www.nuget.org/users/account/authenticate/return?ReturnUrl=%2f&error=&errorDescription=
  5. As shown in the screen shot, there is no way to edit the e-mail address. When I click Register there, I get the error: This doesn't appear to be a valid email address.

Expected behavior

I either need nuget to correctly get the e-mail address associated with my Skype/Microsoft account or have it allow me to edit the e-mail address field manually.

Screenshots

image

@shishirx34
Copy link
Contributor

Hi @tombogle - it looks like the email address claim for your account doesn't actually return an email id but your skype id(?). Can you verify you have an email address linked to your Microsoft account(https://account.microsoft.com/profile/)? Perhaps, would it be possible for you to update your microsoft account(https://account.microsoft.com/profile/) and add email address as login mechanism?

@agr
Copy link
Contributor

agr commented Jul 10, 2019

OK, I managed to reproduce the issue and work around it.
Workaround:

  1. Go to https://account.microsoft.com
  2. Click on your profile picture in the top right corner and select "Sign out";
  • In my case, clicking that profile icon opened the account card that had my Skype name specified there, so I expect it would be the same for you;
  1. Page reloads and your profile picture gets replaced with the generic "Sign in" icon;
  2. Click the "sign in" icon;
  3. Make sure you use your email (and not your Skype name) in the login process;
  4. You should get back to your account page and clicking on the profile picture in the top right corner will open a card where it would have your email specified.
  5. Go to https://www.nuget.org, click the "Sign in" button, followed by "Sign in with Microsoft";
  6. Below the log in prompt you should see a "We found an account you can use here" message (with your email specified below your name):
  • image
  1. Click it.
  2. You should get to the "Register Microsoft account" page that will have your proper email specified.

After you have your account on nuget.org created, it shouldn't matter anymore whether you use email or Skype name to log in.

@shishirx34
Copy link
Contributor

@tombogle - does the workaround specified by @agr above work for you? I would like to get you unblocked and then look into the appropriate fix here.

@shishirx34
Copy link
Contributor

The issue has been fixed and is live in production.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants