Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to securely store a user's OpenID

I'm writing a web application that allows anyone to register (using their OpenID). When a user registers, their OpenID is saved in a MySQL database.

My question is: In which format should I be storing a user's OpenID value?

If someone were to gain access to my database (I'm planning for the worst case scenario) - would it be an issue that the user's OpenID can be viewed unencrypted? Should i be encrypting it when it goes into storage?

like image 426
Jon Avatar asked Dec 30 '22 03:12

Jon


1 Answers

There is no real benefit in protecting their open id: that's the whole point of it!

OpenID is made so that the "secure info" is not available at the intermediary sites where you use it - the only secure info is held at the OpenID Provider (the site where you actually enter your password).

A compromised database on your site means that the attacker will know who your users are, but nothing more, nothing less.

like image 186
Mahmoud Al-Qudsi Avatar answered Jan 11 '23 04:01

Mahmoud Al-Qudsi