webapibook / WebApiBook.Security

Security libraries and samples
Apache License 2.0
15 stars 6 forks source link

Problem + solution #1

Open lmaran opened 10 years ago

lmaran commented 10 years ago

The problem is related to Oauth.Demos.AuthzCodeGrant repository but its "Issues" option is disable: The problem: After running the project, in the last step in the OAuth flow, I receive the following message: error Cause: Running the Fiddler I found out that Github expects an user-agent header: fiddlerinfo Also the Github dev site mentions that setting the user-agent header is necessary. Solution: Add the Github username or the name of the application as a "user-agent": solution The final result: solved

Hope it will helps someone!

pmhsfelix commented 10 years ago

Many thanks for the issue. This sample is more than one year old and the GitHub User-Agent requirement is newer than that. I've just fixed it. I've also opened the issues on the repository, so please feel free to create one if you any more issues. Thanks!