This is a mirror of official site: http://jasper-net.blogspot.com/

OpenId With Forms Authentication

| Tuesday, December 14, 2010
Introduction
As some of you may know from reading some of my past articles/blogs, that I am not really a web man, but I had an idea a while back to create a tool that had to be web based, so I have been busy constructing this ASP .NET MVC web site in my spare time.

It is still ongoing, but one area that the web site needed was login/authentication, which is a pretty usual requirement on web sites. In fact ASP .NET has long supplied forms authentication for this purpose (as well as other options). Thing is, I did not really want to store username/passwords in my database, then I read about this protocol called OpenId, which is a protocol that numerous web sites adhere to already. And if you have an OpenId compliant login, my site could allow its users to use those credentials directly with the OpenId compliant web site validating them. They basically handle the login/authentication process and redirect back to the original calling site (my site).

This may sound quite nuts, but it is quite probable that you yourself are already in possession of an OpenId login, as there are many many OpenId compliant web sites out there. So it seemed to make sense to allow users to simply use their existing login credentials rather than for my site to ask them to create even more credentials.

So this is all well and good, so what is this article all about. Quite simple really, this article will demonstrate how to use OpenId with Forms Authentication (to store the Authentication cookie) within a ASP .NET MVC web site.

I should mention that this demo apps web site it is not the prettiest of web sites, as I have literally applied no styling to it what so ever, I intentionally left it without trying to muddy the water so to speak. So please be aware that it is not going to win any beauty contests at all.


A Brief Discussion About OpenId

OpenID is an open standard that describes how users can be authenticated in a decentralized manner, obviating the need for services to provide their own ad hoc systems and allowing users to consolidate their digital identities.
The OpenID protocol does not rely on a central authority to authenticate a user's identity. Moreover, neither services nor the OpenID standard may mandate a specific means by which to authenticate users, allowing for approaches ranging from the common (such as passwords) to the novel (such as smart cards or biometrics).
The term OpenID may also refer to an ID as specified in the OpenID standard; these IDs take the form of a unique URL, and are managed by some 'OpenID provider' that handles authentication.

Read more: Codeproject

Posted via email from .NET Info

13 comments:

Anonymous said...

Admiring the commitment you put into your blog and in depth information you present.

It's nice to come across a blog every once in a while that isn't the same out of date rehashed material.
Excellent read! I've bookmarked your site and I'm including your RSS feeds to
my Google account.

Visit my web blog ... Home Staging MN

Anonymous said...

At this moment I am ready to do my breakfast, when having my breakfast coming
again to read other news.

Here is my site :: Slim Helper Patch

Anonymous said...

Write more, thats all I have to say. Literally, it seems
as though you relied on the video to make your point. You clearly
know what youre talking about, why throw away your intelligence on just posting videos to your site when you could be giving us something informative to read?


My web-site ... Build muscle now

Anonymous said...

Hi there very cool blog!! Guy .. Excellent .. Superb .. I'll bookmark your blog and take the feeds also? I am glad to seek out numerous useful information right here within the publish, we want work out more strategies on this regard, thank you for sharing. . . . . .

Look into my weblog - Muscle Xtreme

Anonymous said...

I have read so many articles about the blogger lovers but this paragraph is
truly a fastidious piece of writing, keep it up.


Also visit my web-site - Best Supplements for muscle growth

Anonymous said...

It's the best time to make some plans for the future and it's time to
be happy. I've learn this put up and if I could I wish to counsel you some interesting issues or suggestions. Perhaps you could write subsequent articles referring to this article. I wish to learn more issues approximately it!

Also visit my homepage ... Swiaa rose facts

Anonymous said...

Tremendous issues here. I'm very glad to look your article. Thanks a lot and I'm looking
forward to contact you. Will you kindly drop me a mail?


my web blog; power pump no formula

Anonymous said...

Hiya! Quick question that's completely off topic. Do you know how to make your site mobile friendly? My web site looks weird when browsing from my iphone4. I'm trying to find a theme or plugin that might be able to correct this issue.

If you have any recommendations, please share.
Thanks!

Here is my web site Pro Collagen Serum

Anonymous said...

Today, I went to the beachfront with my kids.
I found a sea shell and gave it to my 4 year old daughter and said "You can hear the ocean if you put this to your ear." She put the shell to her ear and screamed.
There was a hermit crab inside and it pinched her ear.

She never wants to go back! LoL I know this is totally off
topic but I had to tell someone!

Feel free to visit my web page ... Test force xtreme review

Anonymous said...

I think this is one of the so much important information for me.
And i am glad studying your article. However want to commentary on
few common things, The site style is perfect,
the articles is in point of fact nice : D. Good process, cheers

my webpage ... Liposom

Anonymous said...

Oh my goodness! Awesome article dude! Thank you so
much, However I am going through difficulties with your
RSS. I don't know the reason why I am unable to subscribe to it. Is there anybody getting the same RSS issues? Anyone who knows the answer can you kindly respond? Thanks!!

Feel free to surf to my page :: Diet Patch

Anonymous said...

An interesting discussion is worth comment. I do think that you need to write more on this subject, it
might not be a taboo matter but usually people do
not speak about these subjects. To the next! Cheers!
!

my blog Dermajuvenate

Anonymous said...

Hello, I enjoy reading through your post. I like to write a little comment to support you.


Feel free to visit my site - Enduros Male Enhancement Reviews (endurosreviews.com)