Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
OpenIdWebRingSsoProvider into MVC project
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Joao Leme  
View profile  
 More options May 3 2012, 10:41 am
From: Joao Leme <joaocarlosl...@gmail.com>
Date: Thu, 3 May 2012 07:41:21 -0700 (PDT)
Local: Thurs, May 3 2012 10:41 am
Subject: OpenIdWebRingSsoProvider into MVC project

Trying to implement OpenIdWebRingSsoProvider into my MVC Project and was
having a hard time with the controls "<openid:ProviderEndpoint" so I went
to look into the sample OpenIdProviderMVC and notice that they are quite
different. So my questions are:

1) What should I use as starting point for
my OpenIdWebRingSsoProviderMVC? OpenIdWebRingSsoProvider
OR OpenIdProviderMVC?

2) Why both samples (OpenIdProviderMVC and OpenIdProviderWebForms)  seems
to be quite different? One uses "IAuthenticationRequest" while the other
just "IRequest". What are the differences other than one is implemented in
MVC and the other WebForms?

3) Has anyone already implemented a OpenIdWebRingSsoProviderMVC? Sample
code?

Thanks a lot!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Arnott  
View profile  
 More options May 3 2012, 10:50 am
From: Andrew Arnott <andrewarn...@gmail.com>
Date: Thu, 3 May 2012 07:50:48 -0700
Local: Thurs, May 3 2012 10:50 am
Subject: Re: [dotnetopenauth] OpenIdWebRingSsoProvider into MVC project

On Thursday, May 3, 2012, Joao Leme wrote:
> Trying to implement OpenIdWebRingSsoProvider into my MVC Project and was
> having a hard time with the controls "<openid:ProviderEndpoint" so I went
> to look into the sample OpenIdProviderMVC and notice that they are quite
> different. So my questions are:

> 1) What should I use as starting point for
> my OpenIdWebRingSsoProviderMVC? OpenIdWebRingSsoProvider
> OR OpenIdProviderMVC?

Neither, IMO.  These are just samples.  You should build your own, drawing
on the samples for understand of how to interact with the library.
 Besides, if MVC is ultimately what you're going to use, starting from
scratch will let you target MVC 3 or 4, whereas the sample targets MVC 2.

> 2) Why both samples (OpenIdProviderMVC and OpenIdProviderWebForms)  seems
> to be quite different? One uses "IAuthenticationRequest" while the other
> just "IRequest". What are the differences other than one is implemented in
> MVC and the other WebForms?

Probably because web forms based Providers can leverage asp.net controls
that aren't available (well, aren't "kosure" anyway) in MVC.  I suggest you
lean more heavily on the MVC sample in this case.

> 3) Has anyone already implemented a OpenIdWebRingSsoProviderMVC? Sample
> code?

Not that I'm aware of.


--
--
Andrew Arnott
"I [may] not agree with what you have to say, but I'll defend to the death
your right to say it." - S. G. Tallentyre

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joao Leme  
View profile  
 More options May 3 2012, 6:16 pm
From: Joao Leme <joaocarlosl...@gmail.com>
Date: Thu, 3 May 2012 15:16:23 -0700 (PDT)
Local: Thurs, May 3 2012 6:16 pm
Subject: Re: [dotnetopenauth] OpenIdWebRingSsoProvider into MVC project

Thanks!

The provider seems to be working but I'm getting a
AuthenticationStatus.Failed "*Error occurred while sending a direct message
or getting the response. *" when using OpenIdRelyingPartyMVC.

Using firebug I got the following response back from the provider:

http://localhost:54347/User/Authenticate?ReturnUrl=Index&dnoa.userSuppliedI dentifier=http://localhost:54750/openid&openid.claimed_id=http://localhost: 54750/user/joaocarlosl...@hotmail.com&openid.identity=http://localhost:54750/user/joaocarlosl...@hotmail.com&openid.sig=lz2xCUoGU514WKsDZOcgpFkFZ0+pYUFptL47PEc9z0g=&openid .signed=claimed_id,identity,assoc_handle,op_endpoint,return_to,response_non ce&openid.assoc_handle={634716722748186307}{/eOS4w==}{32}&openid.invalidate_handle={63471671552901 6285}{C0ovzw==}{32}&openid.op_endpoint=http://localhost:54750/openid/provider&openid.return_to=http://localh...

The difference from the MVCProvider sample is that I'm
using AspNetSqlMembershipProvider instead of
the AspNetReadOnlyXmlMembershipProvider and I didn't implement the
anonymous identifier provider.

Any idea why the status.failed?

Thanks!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joao Leme  
View profile  
 More options May 4 2012, 9:39 am
From: Joao Leme <joaocarlosl...@gmail.com>
Date: Fri, 4 May 2012 06:39:54 -0700 (PDT)
Local: Fri, May 4 2012 9:39 am
Subject: Re: [dotnetopenauth] OpenIdWebRingSsoProvider into MVC project

After having a hard time trying to debug and figuring out why the relying
party was rejecting the request (guess I'm not a good programmer) got an
idea of implementing a simple SSO solution since all sites share (have
access) the same database.

Would like your opinion on the approach:

- Trusted site (relying party in white list) make request (redirect) to
main site (provider) with a return url.
- Main site log user (if not logged), mark user as logged in database and
add temporary token to user database.
- Main site return (redirect) to RP with token.
- RP look into database using token, logs user and deletes token.

DONE! :)

SSOff also easy: just check on every request into user database into bool
record (userLogged). NO REDIRECTS. On logout simply change record
(userLogged) to false and every site will know.

Hope there are no security flaws?
Green light? Is it a go?
Thanks a lot,


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Arnott  
View profile  
 More options May 4 2012, 10:48 am
From: Andrew Arnott <andrewarn...@gmail.com>
Date: Fri, 4 May 2012 07:48:20 -0700
Local: Fri, May 4 2012 10:48 am
Subject: Re: [dotnetopenauth] OpenIdWebRingSsoProvider into MVC project

It's a new idea, to be sure.  So that alone makes me wary of it since the
security implications probably aren't thoroughly understood.

You should find that enabling logging <http://tinyurl.com/dnoalogs> will be
a great help in understanding why failures occur.

--
--
Andrew Arnott
"I [may] not agree with what you have to say, but I'll defend to the death
your right to say it." - S. G. Tallentyre

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »