UmbracoIdentity - how to get the email from Twitter?
Hi
I've been looking at UmbracoIdentity for a future project and tested it on Twitter. The Twittter app is set to provide the email and you can see it asks for permissions for email via the oauth dialog.
However it always fails because in the UmbracoIdentityAccountController the ExternalLoginCallback method fails to find the email address.
if (loginInfo.Email.IsNullOrWhiteSpace())
{
ViewBag.Description = "No email address found in the claims, ensure your OAuth provider is configured to return the Email address";
return View("ExternalLoginFailure");
}
Anyone know why the email is missing and how you get the email address?
UmbracoIdentity - how to get the email from Twitter?
Hi
I've been looking at UmbracoIdentity for a future project and tested it on Twitter. The Twittter app is set to provide the email and you can see it asks for permissions for email via the oauth dialog.
However it always fails because in the UmbracoIdentityAccountController the ExternalLoginCallback method fails to find the email address.
Anyone know why the email is missing and how you get the email address?
Many thanks!
Done it though I'm not certain this is the best way so if anyone knows better please let me know.
https://www.tanasuk.com/blog/Get%20users%20email%20from%20Twitter%20API
is working on a reply...