How does OpenID authentication work?

What is OpenID? OpenID is an open, decentralized, free framework for user-centric digital identity. OpenID takes advantage of already existing internet technology (URI, HTTP, SSL, Diffie-Hellman) and realizes that people are already creating identities for themselves whether it be at their blog, photostream, profile page, etc. With OpenID you can easily transform one of these … Read more

Securing my REST API with OAuth while still allowing authentication via third party OAuth providers (using DotNetOpenAuth)

First I’d like to emphasize the difference between authentication and authorization: A user authenticates to your web site by supplying some credential such as a username+password. OpenID allows this to be displaced by having the user authenticate to another service, which then asserts the user’s identity to your web site on the user’s behalf. Your … Read more

OpenID: Trying to Get Email Address from Google OP

Ok figured it out. I posted a question on Goolge’s Federated Log API group and was told to use Attribute exchange. Below is the code for DotNetOpenAuth. Please don’t use this code in production. This is for illustration purposes only! The Request: using (OpenIdRelyingParty openid = new OpenIdRelyingParty()) { IAuthenticationRequest request = openid.CreateRequest(openidurl); var fetch … Read more

How to use open id as login system

Thanks to some other comment on Stackoverflow.com I came to learn about LightOpenId. It is really easy to use. The example code just works(without any configuration): <?php require ‘openid.php’; try { $openid = new LightOpenID; if(!$openid->mode) { if(isset($_POST[‘openid_identifier’])) { $openid->identity = $_POST[‘openid_identifier’]; header(‘Location: ‘ . $openid->authUrl()); } ?> <form action=”” method=”post”> OpenID: <input type=”text” name=”openid_identifier” … Read more