security - Securing an OAuth / OpenID Connect identity in a cookie for easy login -


I have a website that uses the Azure Active Directory or Google+ to sign in. I have their identities through an OAuth2 login flow and the users

the user email address, and foreign resources (tokens and other things) are stored using an email address as a foreign key. Right now I am saving the user's email address in a heavily encrypted string, and when the page loads, I find the cookie, decrypt it, and find the email address and open that account.

Is it safe? Is there a good pattern to keep users identifiable?

Tablets:

I do not want to force my users to log in every time

But More important

It needs to be safe.

For the Azure Eddy part, you can use our web sign just on any sample Configure the cookie to be consistent The cookies produced by the OWIN middleware are signed and encrypted, so you will be fine on that side, but this will not save you from the general issues of the session's stubbornness. It is not recommended because this is all Types of terms Will continue to do so - it will be impossible to cancel the token of Azure Eddy (unless you have a server side logic that attempts to redeem the latest token in every new session), you will open walking-ins, cookie The attack scenario on theft and lost equipment, and so on. "I do not want to force my users to login every time they go to the website." It can be persuaded by your users that often your maximum probability is that your users are entertaining a session with that identification system at all times - which means that if you have made your web site a SSO with that identification system , The user will also experience a smooth sign if you do not live in sessions, then what you lose is that you want Semi-finely not sure that the user's identity will have an active session with the system, but you can achieve a lot in the period of security - for example the user can not sign in because he is removed from that directory That's why he has not reached so far. Hhh v

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -