RE: Authenticating with third party providers in MVC5
Actually, I didn’t have much to do to get it working in MVC as it’s essentially already built in. All you have to do is uncomment some lines of code and then configure the authentication providers at the source. I will take a look at the link you’ve provided in case it does something different. Thanks for that. Interestingly enough, the only provider I had problems with was the Microsoft one. It errored out with a message that Microsoft authentication wasn’t available at this time. My solution: If they want to make things hard, forget about Microsoft. From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of William Luu Sent: Wednesday, 12 February 2014 6:36 PM To: ozDotNet Subject: Re: Authenticating with third party providers in MVC5 Hi Tony, While I don't know too much about these social/3rd party logins, there's an open source .net library that does what you've implemented. So perhaps download their lib and see if it works the way you expect it to with regards to the logout. See: https://github.com/SimpleAuthentication/SimpleAuthentication Cheers, Will On Wed, Feb 12, 2014 at 5:54 PM, Tony Wright tonyw...@gmail.com mailto:tonyw...@gmail.com wrote: Hi all, I have implemented third-party login in my MVC app. I can log in using google, facebook and twitter. When I click the Logout button, it logs out from my application, but not from the third-party provider. To log out from the third-party provider, I usually need to go directly to that provider’s page and log it out. Is this a normal behaviour that should be acceptable, or is there some sort of call I should be making to get it to log out the third-party provider? Regards, Tony
Re: Authenticating with third party providers in MVC5
IMO it shouldn't log out from third party provider. Example: I have gmail open I goto another page and open your app with google login I finish on your page, and logout I should be able to return to gmail and find it still logged in, not logged out by your app. Least surprise. On Wed, Feb 12, 2014 at 5:54 PM, Tony Wright tonyw...@gmail.com wrote: Hi all, I have implemented third-party login in my MVC app. I can log in using google, facebook and twitter. When I click the Logout button, it logs out from my application, but not from the third-party provider. To log out from the third-party provider, I usually need to go directly to that provider’s page and log it out. Is this a normal behaviour that should be acceptable, or is there some sort of call I should be making to get it to log out the third-party provider? Regards, Tony -- Meski http://courteous.ly/aAOZcv Going to Starbucks for coffee is like going to prison for sex. Sure, you'll get it, but it's going to be rough - Adam Hills
RE: Authenticating with third party providers in MVC5
I now have an excuse not to do anything more with it, so I can move on. Thanks for the advice. T. From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of mike smith Sent: Thursday, 13 February 2014 12:09 PM To: ozDotNet Subject: Re: Authenticating with third party providers in MVC5 IMO it shouldn't log out from third party provider. Example: I have gmail open I goto another page and open your app with google login I finish on your page, and logout I should be able to return to gmail and find it still logged in, not logged out by your app. Least surprise. On Wed, Feb 12, 2014 at 5:54 PM, Tony Wright tonyw...@gmail.com mailto:tonyw...@gmail.com wrote: Hi all, I have implemented third-party login in my MVC app. I can log in using google, facebook and twitter. When I click the Logout button, it logs out from my application, but not from the third-party provider. To log out from the third-party provider, I usually need to go directly to that provider’s page and log it out. Is this a normal behaviour that should be acceptable, or is there some sort of call I should be making to get it to log out the third-party provider? Regards, Tony -- Meski http://courteous.ly/aAOZcv http://courteous.ly/aAOZcv Going to Starbucks for coffee is like going to prison for sex. Sure, you'll get it, but it's going to be rough - Adam Hills
Re: Authenticating with third party providers in MVC5
Hi Tony, While I don't know too much about these social/3rd party logins, there's an open source .net library that does what you've implemented. So perhaps download their lib and see if it works the way you expect it to with regards to the logout. See: https://github.com/SimpleAuthentication/SimpleAuthentication Cheers, Will On Wed, Feb 12, 2014 at 5:54 PM, Tony Wright tonyw...@gmail.com wrote: Hi all, I have implemented third-party login in my MVC app. I can log in using google, facebook and twitter. When I click the Logout button, it logs out from my application, but not from the third-party provider. To log out from the third-party provider, I usually need to go directly to that provider's page and log it out. Is this a normal behaviour that should be acceptable, or is there some sort of call I should be making to get it to log out the third-party provider? Regards, Tony