GithubHelp home page GithubHelp logo

dotnetopenauth / dotnetopenauth.samples Goto Github PK

View Code? Open in Web Editor NEW
214.0 43.0 178.0 2.52 MB

License: Other

C# 26.73% CSS 67.06% ASP 5.57% JavaScript 0.26% HTML 0.20% PowerShell 0.16% Smalltalk 0.02%

dotnetopenauth.samples's Introduction

DotNetOpenAuth Samples

Build status

This repository contains sample code for DotNetOpenAuth and aims to help developers toward a successful implementation.

How to use

  1. Download the source via the ZIP file option (typically on the right hand side) or clone the repository
  2. Open in Visual Studio

Call To Action

We need developers to help produce more comprehensive demonstrations of implementation and best practice. If you are interested in helping out or have code that you feel others will benefit from please contact [email protected]

dotnetopenauth.samples's People

Contributors

davidchristiansen avatar pete-kirkham avatar pwalke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dotnetopenauth.samples's Issues

Combobox flowBox of OAuthConsumerWpf project not used...

Hello

Trying the OAuthConsumerWpf project, I saw that the combobox flowBox is not used. This combobox defines 3 items :

  • Authorization Code
  • Implicit Grant
  • Resource Owner Password Credentials

Note that Client Credential is not defined...
So I supposed that all these cases are not implemented...

Can you confirm that this client is not complete ?

Regards
Sybaris

[DotNetOpenAuth] Requesting help to address Protocol error

@AArnott @DavidChristiansen

I have problem with DotNetOpenAuth v4.3.4.13329. During the relying party discovery, it throws following error.

DEBUG [2019-06-28 14:32:20,789] - HTTP GET http://localhost/sub/
DEBUG [2019-06-28 14:32:20,792] - HTTP GET http://localhost/sub/en
ERROR [2019-06-28 14:32:20,815] - Protocol error: An HTTP request to the realm URL (http://localhost/sub/) resulted in a redirect, which is not allowed during relying party discovery.
   at DotNetOpenAuth.Messaging.ErrorUtilities.VerifyProtocol(Boolean condition, String unformattedMessage, Object[] args)
   at DotNetOpenAuth.OpenId.Realm.Discover(IDirectWebRequestHandler requestHandler, Boolean allowRedirects)
   at DotNetOpenAuth.OpenId.Realm.DiscoverReturnToEndpoints(IDirectWebRequestHandler requestHandler, Boolean allowRedirects)
   at DotNetOpenAuth.OpenId.Provider.HostProcessedRequest.IsReturnUrlDiscoverableCore(IDirectWebRequestHandler requestHandler)
   at DotNetOpenAuth.OpenId.Provider.HostProcessedRequest.IsReturnUrlDiscoverable(IDirectWebRequestHandler requestHandler)

I pretty much understood the problem here. Its trying to find the URL http://localhost/sub/, but it gets redirected to http://localhost/sub/en because of i18n localization. Could you please help me to get rid of this error message ?

Sign with Facebook exception

I just downloaded the last dotnetopenauth samples to follow Facebook sign in.

After configure (to mine) facebookAppID and facebookAppSecret I started the project and clicked "Sign in with Facebook", the exception is: "At least one parameter is required for the Bearer scheme in its WWW-Authenticate header."

How to use from WPF application?

DotNetOpenAuth..OAuth2.Client.UI.ClientAuthorizationView seems to require windows forms. Are there any resources for WPF applications?

Question: Twitter Urls

I found I needed to change all the TwitterConsumer.cs Urls to be "https://api.twitter.com" from "http://twitter.com".

I'm not sure if this needs updated or was just because I have setup my Twitter account differently from yours.

If it needs updated, I'm happy to fix and send a pull request, but wanted to check first.

Thanks

this implemented on asp.net controls, expected MVC

i expected to see razor+html+js solution but this sample provide some strange ASP.NET controls.
i trying to add steam account to my aps.net mvc 4 razor web-site, but documentation is not enough - all samples not working.

OAuthAuthorizationServer Unauthorized

I cloned the samples repository and opened the project in Visual Studio 2012. Aside from the OAuthClient project file not loading (couldn't find the v10 Microsoft.WebApplication.targets file), things built fine. But when I try to run the authorization server project, I get a 401.2 Unauthorized error. This comes up on the Account/LogOn page, which shouldn't require me to already be authenticated. Is this an issue using VS 2012 instead of 2010? Is there a change I can make to update the project so it'll work?

Samples don't run (VS 2015)

I've just downloaded the samples and tried to run OAuthConsumerWpf but sadly it doesn't build. After updating the nuget packages I had to manually open pretty much any file for VS to recognize there aren't any errors.

Still there are a couple errors left.

Schweregrad Code    Beschreibung    Projekt Datei   Zeile
Fehler      Package restore is disabled by default. To give consent, open the Visual Studio Options dialog, click on Package Manager node and check 'Allow NuGet to download missing packages during build.' You can also give consent by setting the environment variable 'EnableNuGetPackageRestore' to 'true'.   DotNetOpenAuth.ApplicationBlock     

(actually the mentioned option is enabled ...)

Schweregrad Code    Beschreibung    Projekt Datei   Zeile
Fehler      Der Befehl ""C:\Users\developer\Downloads\DotNetOpenAuth.Samples-master\DotNetOpenAuth.Samples-master\.nuget\nuget.exe" install "C:\Users\developer\Downloads\DotNetOpenAuth.Samples-master\DotNetOpenAuth.Samples-master\src\DotNetOpenAuth.ApplicationBlock\packages.config" -source "" -o "C:\Users\developer\Downloads\DotNetOpenAuth.Samples-master\DotNetOpenAuth.Samples-master\packages"" wurde mit dem Code 1 beendet. DotNetOpenAuth.ApplicationBlock     

Also there's a reference to Microsoft.Contracts that can't be followed. And it says it can't open OAuth/OAuth 2/OAuthClient.

Any guesses?

Azure AD - Failed to obtain access token. Authorization Server reports reason: invalid_grant

I am running your samples and have run into this issue while trying to use the OAuth2Client to authenticate with Azure AD.

I have a multi-tenant app in my Azure AD - i've connected to it in MVC5, but I need to use MVC4 for a project, so i started looking into this project because it uses OAuth2 with MVC4.

Out of the box, after just adding my keys to the web.config, the OAuth2Client (\DotNetOpenAuth-develop\samples\OAuthClient) fails to connect to Google using OAuth2 - saying the "Scope" parameter is missing (which i fixed by adding the scope).

The one that has me stumped is this Azure AD issue - I get to the windows auth screen and when it calls the callback (AzureAD.aspx) I get this error.

Any help would be greatly appreciated.

Thanks!

Yammer sample doesn't return data

The Yammer sample shows how to create a yammer client, but it doesn't retrieve messages. It would be nice to see it function like the Google sample.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.