Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Short Story: I'm a Newbie in application security. I need to implement a login via email.

Long Story: I have built a basic web chat application using SignalR, now i'm working in saving conversation in SQLServer Db. But my next challenge is to create a chat invitation email that will be send to all users from my db. The email should contain a link that when users will click they will be redirected to the chat web-page and automatically signed in.

My question is: Can it be done? And if it can, how can it be done

Thank you for your help!
Posted
Updated 17-Feb-15 5:12am
v2
Comments
Pheonyx 17-Feb-15 11:24am    
Just an idea, hence why it is a comment and not an answer but:

Why don't you generate a guid for each user when you click "Send invite", this guid is saved in a table along with with an expiration time.
Then your link you send could be something like
"http://MyChat.Website.Com/Invite/{guid here}"
This calls an action that performs the sign in based on a look up, a) checking the id is valid and b) it has a user associated with it. If successful, that is authentication done. If not it redirects to a "Link expired" page
ZurdoDev 17-Feb-15 16:54pm    
Actually I would suggest this as a solution. You don't have to write all the code for them but the idea is a solution.
Richard Deeming 17-Feb-15 13:28pm    
REPOST
You have already posted this in the C# forum:
http://www.codeproject.com/Messages/5003786/Login-to-asp-net-application-through-a-link-send-v.aspx[^]

Do not post the same question in multiple places on the same site.
Kuthuparakkal 17-Feb-15 23:01pm    
Dangerous. Have a look:
https://msdn.microsoft.com/en-us/magazine/hh580736.aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900