📜 ⬆️ ⬇️

OpenID and hCard: an interesting symbiosis

Ivan Sagalaev realized the most interesting thing . I can not tell you about it even briefly. So, what is the essence of the matter:

Usually, OpenID holders are subject to the following conditions:

1. They have their own OpenID - this is essentially a kind of personal URL (for example http: // username. Livejournal.com or http: // username .moikrug.ru, or some other page).
2. They log in to sites that support OpenID by entering the coveted URL (see above)
3. Having logged in, people can perform certain actions on the site (most often leave comments, etc.), and the system, without knowing their name, will call them in accordance with OpenID.
')
Sagalaev offered to introduce the hCard microformat into the page with OpenID so that when logging in, in addition to the OpenID itself, the system could also get the first name by simply analyzing the page and pulling out the necessary information (the corresponding classes of the hCard microformat serve as hooks .

Already, you can try everything out by specifying your profile page in My Circle as the OpenID - it contains an hCard.

I recommend to get acquainted with the full author's description of the foregoing .

Source: https://habr.com/ru/post/6110/


All Articles