dotnetopenauth

Why am I not receiving a RefreshToken from a Google OAuth request?

我是研究僧i 提交于 2019-12-03 09:51:50
问题 I am attempting to integrate Google Calendar into my application and I am having some problems with the OAuth authorization passing off a RefreshToken. I receive an AccessToken with no issue, but the RefreshToken property is null. See the line marked "ERROR HERE:" for where I am having the issue My Asp.Net MVC controller (named OAuthController ) looks like the following: public ActionResult Index() { var client = CreateClient(); client.RequestUserAuthorization(new[] { "https://www.googleapis

DotNetOpenAuth and C# desktop application

穿精又带淫゛_ 提交于 2019-12-03 08:53:17
I'm using DotNetOpenAuth ( http://dotnetopenauth.net/ ) library to authenticate at linkedIn.com . I develop a desktop application and now I'm a little confused. I'm unaware if it's possible to authenticate using a desktop application. Does anybody know? If it's possible please show me how to do that. Yes, it depends on how you want to approach it, but maybe looking at the DesktopConsumer class in the API might point you in the right direction: http://docs.dotnetopenauth.net/v3.4/html/T_DotNetOpenAuth_OAuth_DesktopConsumer.htm One example usage as a desktop app is detailed here: http:/

Dotnetopenauth single sign on with custom identity provider

北城以北 提交于 2019-12-03 07:26:01
问题 I'm trying to setup the DotNetOpenAuth samples to have a working SSO solution with a custom provider. I'm using OpenIdProviderMvc sample project which appears to be working fine. My problems is setting up the "consumer", in this case the OpenIdRelyingPartyMvc sample project, I cannot configure it to use the OpenIdProvider. I tried to setup an endpoint on the consumer's web.config like this: <trustedProviders rejectAssertionsFromUntrustedProviders="true"> <add endpoint="http://localhost:4864

DotNetOpenAuth: Webforms, Getting Started

纵饮孤独 提交于 2019-12-03 07:14:09
问题 I am trying to figure out how to get DotNetOpenAuth(http://www.dotnetopenauth.net/) working in my webforms app I don't understand where to begin. I have an OpenIDSelector on my Login.aspx that lets you choose google or Yahoo. You can choose one, then a popup comes up, and lets you login. Once you login the program hangs because it is trying to do something with a database ??? Can't I just use some control(like the OpenIDSelector) and get back that the user was authenticated, get their

MembershipCreateUserException - The username supplied is invalid

断了今生、忘了曾经 提交于 2019-12-03 07:07:42
On this line i am getting an exception - OAuthWebSecurity.CreateOrUpdateAccount(provider, providerUserId, model.UserName); System.Web.Security.MembershipCreateUserException: The username supplied is invalid. The data going into this is provider - "facebook" providerUserId - "1321311387573991" model.UserName - "Max Payne" The initialization works fine using WebSecurity.InitializeDatabaseConnection("club", "User", "UserID", "UserName", autoCreateTables: true); I cannot find any examples of why it says the username is invalid? Is there a criteria somewhere that defines what is a correct user name

Best way to handle authentication on .NET WCF Web API

与世无争的帅哥 提交于 2019-12-03 06:16:35
I'm mildly familiar with DotNetOpenAuth and OAuth in general, but in terms of Web API development, what is the best way to lock down a web service in terms of the following criteria: Ease of implementation Interoperability/compatibility with end-user facing platforms (iOS, Android, Win Phone, Flex...) Whether or not it is clearly standards-based (like OAuth for example) Thanks! please take a look here: OAuth 2.0 in Web API Inside the WebApiContrib project there are also Basic Authentication samples which is straight forward but it should not be used without SSL. The DotNetOpenAuth .zip

How is OpenID implemented?

瘦欲@ 提交于 2019-12-03 05:47:30
问题 How would you design and implement OpenID components? (Was "How does OpenId work") I realize this question is somewhat of a duplicate, and yes, I have read the spec and the wikipedia article. After reading the materials mentioned above, I still don't have a complete picture in my head of how each step in the process is handled. Maybe what's missing is a good workflow diagram for how an implementation of OpenID works. I'm considering incorporating OpenID into one of my applications to

On what .NET Framework(s) is DotNetOpenAuth available?

被刻印的时光 ゝ 提交于 2019-12-03 05:09:49
Most (all?) OAuth resources - both information about the protocol and code libraries for easily using them in your own applications - one seems to find on the internet seem to assume the application you are using it in is a web application. I would however like to start using OAuth in my windows mobile Twitter client for interactions with Twitter where I now use Basic Authentication through a set of simple methods I hand rolled. If I'm correct, Basic Authentication is about to be deprecated by Twitter in June of 2010, so I have a hard deadline to keep my Twitter client working after this

Releasing an ASP.NET MVC 3 OpenId StarterKit under Open Source License [closed]

六眼飞鱼酱① 提交于 2019-12-03 03:56:49
I've build a ASP.NET MVC 3 (RC at the moment) site that uses OpenID login system. I was still learning about OpenID while implementing this so I commented the code heavily. The result is a site that let's users login/register with OpenID, add other OpenIDs to their account and also remove them. This little project can be then used as a starting point for any new project that would use OpenID login system. It can also be used as a resource for people to learn OpenID with. I decided to release this project as open source. This will be my first open source project and I need to decided what

OpenID provider on localhost with DotNetOpenAuth

你离开我真会死。 提交于 2019-12-03 03:50:27
I have the DotNetOpenAuth sample provider running locally and it appears to correctly handle requests via the web browser. I can step through the handler for authorisation in the debugger. I have a project which can authenticate with Google and other providers but fails with the sample provider. The sample provider never sees a request at all and the relying party throws an exception complaining No OpenID endpoint found. Say I do the following in the relying party: string providerURL = "http://localhost/openid/provider"; // Now try the openid relying party... var openid = new