Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

Commit

Permalink
v1.11
Browse files Browse the repository at this point in the history
* New structure of the repository;
* Added the ability to upload large files;
* Strong name.

Fixed #12
Fixed #13
  • Loading branch information
alekseynemiro committed Jul 10, 2016
1 parent bfc77fd commit 1ff9133
Show file tree
Hide file tree
Showing 615 changed files with 4,192 additions and 58,215 deletions.
132 changes: 85 additions & 47 deletions Release Notes.md → CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,115 +1,153 @@
### Nemiro.OAuth Release Notes
# Change Log

This document summarizes the changes in recent releases.

#### v1.10 (June 21, 2015)
## [v1.11] - unreleased

This release includes minor fixes and enhancements.

### Added
* Added parameter names encoding;
* Added the ability to upload large files;
* Strong name.

### Thanks
* [Nicola Bizzoca](https://github.com/nico159)
* [Michael Collins](https://github.com/mfcollins3)

## [v1.10] - 2015-06-21

This version includes fixes for .NET 3.5 and common enhancements.

* Fixed bug in the WriteToRequestStream for .NET Framework 3.5;
### Added
* Added the ability to use any multipart requests (not only `multipart/form-data`);

### Removed
* Removed the obsolete overload of the `GetUserInfo`.

### Fixed
* Fixed bug in the `WriteToRequestStream` for .NET Framework 3.5;
* Fixed error: "Inheritance security rules violated while overriding member: UniValue.GetObjectData...". An error was detected in projects .NET Framework 3.5;
* Fixed client for LinkedIn (updated default scope);
* Added the ability to use any multipart requests (not only multipart/form-data);
* Removed the obsolete overload of the GetUserInfo.

##### Thanks:

### Thanks
* [Ramil Khazhiev](https://github.com/RamilKhazhiev)
* [Asi Nehrim](http://www.youtube.com/channel/UC6dAAoRUxMGBR3FwP_P9vAA)
* [CodeProject Member 11728803](http://www.codeproject.com/script/Membership/View.aspx?mid=11728803)

#### v1.9 (March 19, 2015)
## [v1.9] - 2015-03-19

This version includes fixes and enhancements.

### Added
* In the method GetUserInfo added ability to specify an access token;
* In the web methods of the OAuthUtility class added ability to specify an access token;
* In the web methods of the `OAuthUtility` class added ability to specify an access token;
* Implemented refreshing and revoking an access token for providers that support it.

### Changed
* Updated URLs in the `GoogleClient`;
* Reworked the `AccessToken` class;

### Fixed
* Fixed JSON:
* single quotes replaced by double;
* names are placed in quotation marks;
* added encoding special characters, and unicode characters;
* fixed the decimal separator for numbers.
* Fixed bug with overwriting the query parameters in obtaining authorization address;
* Fixed UserInfo mapper for LinkedIn;
* Fixed typo (internal): Requet -> Requests;
* Updated URLs in the GoogleClient;
* Reworked the AccessToken class;
* Implemented refreshing and revoking an access token for providers that support it.

##### Thanks:
* Fixed `UserInfo` mapper for LinkedIn;
* Fixed typo (internal): `Requet` -> `Requests`;

### Thanks
* [Mike Norgate](https://github.com/oesoftware)
* [sdbarron](https://github.com/sdbarron)
* [Steve Barron](https://github.com/sdbarron)

#### v1.8 (March 8, 2015)
## [v1.8] - 2015-03-08

This version includes enhancements for customization.

* Fixed bug with DefaultScope and Scope;
### Added
* Added the ability to register multiple client with the same name;
* Added decoding html-entities in the processing of a callback address, if provider, for some reason, perform encoding (potential problem is detected in Foursquare);
* Allowed to specify the GrantType after an instance of a client;
* Opened access (public modifier) to basic properties of the OAuth protocol;
* Added OAuth client for Assembla;
* Deleted file of the obsolete Helper class (obsolete since v1.4; use OAuthUtility).

##### Thanks:
### Changed
* Allowed to specify the `GrantType` after an instance of a client;
* Opened access (public modifier) to basic properties of the OAuth protocol;

### Removed
* Deleted file of the obsolete `Helper` class (obsolete since v1.4; use `OAuthUtility`).

### Fixed
* Fixed bug with `DefaultScope` and `Scope`;

### Thanks
* [Nacer](https://github.com/Nacer-)
* [codexboise](https://github.com/codexboise)

#### v1.7 (February 11, 2015)
## [v1.7] - 2015-02-11

The version improved for Windows Forms projects.

### Added
* Added a data binding for API responses;
* Added ability to specify grant_type: authorization_code (default), password and client_credentials;
* Added ability to specify `grant_type`: `authorization_code` (default), `password` and `client_credentials`;
* Added OAuth clients for: CodeProject and SourceForge.

#### v1.6 (January 04, 2015)
## [v1.6] - 2015-01-04

The version includes minor improvements.

* Added OAuthManager.GetClientTypeByName method to obtain the type of client;
### Added
* Added `OAuthManager.GetClientTypeByName` method to obtain the type of client;
* Added default scope.

#### v1.5 (December 27, 2014)
## [v1.5] - 2014-12-27

In this version were made significant changes and improvements, which are mainly aimed at simplifying integration with a variety of API.

* Improved transmission parameters in the web request, added support for file transfer;
* Added support for requests: PUT and DELETE;
### Added
* Added support for requests: `PUT` and `DELETE`;
* Added methods to perform asynchronous requests;
* Simplified mechanism for generating and usage of the authorization header;
* Added support for Unicode to URL encoding method (RFC-3986);
* Unified mechanism for handling responses in various data formats (XML, JSON, PLAIN). Created universal type - UniValue.
* Added OAuth clients for: Instagram and Tumblr.
* Added OAuth clients for: Instagram and Tumblr;
* Unified mechanism for handling responses in various data formats (XML, JSON, PLAIN). Created universal type - `UniValue`.

#### v1.4 (November 2, 2014)
### Changed
* Improved transmission parameters in the web request, added support for file transfer;
* Simplified mechanism for generating and usage of the authorization header.

* Fixed SSL3 problem, completely;
* Fixed problems with Content-Type;
* Fixed minor bugs in OAuthClient (for OAuth 1.0);
* Username-getting for Yandex;
* The Helpers class marked as [Obsolete]. Created new class - OAuthUtility;
* Methods for signature moved to the OAuthUtility class;
* Improved class OAuthAuthorization, added SetSignature method;
## [v1.4] - 2014-11-02

### Added
* Added the ability to register the clients class by provider name;
* Added OAuth clients for: Dropbox, Foursquare, LinkedIn, SoundCloud and Yahoo!

#### v1.3 (October 23, 2014)
### Changed
* The `Helpers` class marked as `[Obsolete]`. Created new class - `OAuthUtility`;
* Methods for signature moved to the `OAuthUtility` class;
* Improved class `OAuthAuthorization`, added SetSignature method;

### Fixed
* Fixed SSL3 problem, completely;
* Fixed problems with `Content-Type`;
* Fixed minor bugs in `OAuthClient` (for OAuth 1.0);
* Username-getting for Yandex;

## [v1.3] - 2014-10-23

### Fixed
* Fixed SSL3 problem.

#### v1.2 (October 8, 2014)
## [v1.2] - 2014-10-08

### Changed
* Updated protocol for Odnoklassniki.ru
* Improved client for VKontakte: added the ability to receive an email address.

##### Thanks:

### Thanks
* [Aleksander (KamAz) Kryatov](http://vk.com/acid_rock)
#### v1.1 (July 20, 2014)

## [v1.1] - 2014-07-20

* First version released.
62 changes: 31 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Nemiro.OAuth
# Nemiro.OAuth

**Nemiro.OAuth** is a class library for authorization via **OAuth** protocol in **.NET Framework**.

Expand All @@ -10,11 +10,11 @@ To install **Nemiro.OAuth**, run the following command in the **Package Manager

`PM> Install-Package Nemiro.OAuth`

#### Demo
## Demo

http://demo-oauth.nemiro.net/

### Features
## Features

* Support OAuth 1.0 and 2.0;
* Obtaining basic information about users: ID, name, sex, date of birth, email address and telephone number;
Expand All @@ -25,12 +25,12 @@ http://demo-oauth.nemiro.net/

Less code, more functionality!

### System Requirements
## System Requirements

* Microsoft Windows XP, 7 or later with .NET Framework 3.5, 4.0 or 4.5
* Microsoft Visual Studio 2010 (recommended Professional Edition with Service Pack 1) or later.
* Microsoft Windows XP, 7 or later with .NET Framework 3.5, 4.0, 4.5 or 4.6
* Microsoft Visual Studio 2013 (recommended Professional Edition with Service Pack 1) or later.

### How to use
## How to use

1\. Create an application at the **OAuth** provider site.

Expand All @@ -42,19 +42,19 @@ For example, **Facebook**:
```C#
OAuthManager.RegisterClient
(
"facebook",
"1435890426686808",
"c6057dfae399beee9e8dc46a4182e8fd"
"facebook",
"1435890426686808",
"c6057dfae399beee9e8dc46a4182e8fd"
);
```

**Visual Basic .NET**
```VBNet
OAuthManager.RegisterClient _
(
"facebook",
"1435890426686808",
"c6057dfae399beee9e8dc46a4182e8fd"
"facebook",
"1435890426686808",
"c6057dfae399beee9e8dc46a4182e8fd"
)
```

Expand All @@ -66,22 +66,22 @@ For example:
```C#
public partial class ExternalLoginResult : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
var result = OAuthWeb.VerifyAuthorization();
Response.Write(String.Format("Provider: {0}<br />", result.ProviderName));
if (result.IsSuccessfully)
{
var user = result.UserInfo;
Response.Write(String.Format("User ID: {0}<br />", user.UserId));
Response.Write(String.Format("Name: {0}<br />", user.DisplayName));
Response.Write(String.Format("Email: {0}", user.Email));
}
else
{
Response.Write(result.ErrorInfo.Message);
}
}
protected void Page_Load(object sender, EventArgs e)
{
var result = OAuthWeb.VerifyAuthorization();
Response.Write(String.Format("Provider: {0}<br />", result.ProviderName));
if (result.IsSuccessfully)
{
var user = result.UserInfo;
Response.Write(String.Format("User ID: {0}<br />", user.UserId));
Response.Write(String.Format("Name: {0}<br />", user.DisplayName));
Response.Write(String.Format("Email: {0}", user.Email));
}
else
{
Response.Write(result.ErrorInfo.Message);
}
}
}
```

Expand Down Expand Up @@ -125,6 +125,6 @@ OAuthWeb.RedirectToAuthorization("facebook", returnUrl)
### See Also

* [Guide Nemiro.OAuth](http://oauth.nemiro.net)
* [Web Demo](http://demo-oauth.nemiro.net/)
* [Nemiro.OAuth.LoginForms](https://github.com/alekseynemiro/Nemiro.OAuth.LoginForms)
* [Online Demo](http://demo-oauth.nemiro.net/)
* [Forms for Windows Applications](https://github.com/alekseynemiro/Nemiro.OAuth.LoginForms)
* [Other projects](http://nemiro.net)
Loading

0 comments on commit 1ff9133

Please sign in to comment.