Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I store openid claimed_id encrypted?

Does the OpenID claimed_id of a user need to be encrypted when stored in a database? If someone had plain view access to it, could they pose as that user?

like image 429
XORcist Avatar asked Mar 20 '11 19:03

XORcist


1 Answers

The claimed_id is a lot like a username. It identifies the user according to their provider.

So, if someone gained access to a claimed_id, it would not be possible to pose as that user unless the attacker also had the password, or the user was already logged in on the attacker's system (or the attacker was able to subvert the login process some other way).

So, you can treat it like a username; encryption is not required, but you may feel better knowing it's there as an extra layer of security.

If someone gains direct access to your database, however, it's likely that they could compromise your entire site through other means.

like image 131
Cameron Avatar answered Sep 28 '22 11:09

Cameron