зеркало из https://github.com/aspnet/MusicStore.git
Merge branch 'release' into dev
This commit is contained in:
Коммит
d75c6d47f9
|
@ -22,7 +22,7 @@ namespace MusicStore.Mocks.Facebook
|
|||
|
||||
if (request.RequestUri.AbsoluteUri.StartsWith("https://graph.facebook.com/v2.5/oauth/access_token"))
|
||||
{
|
||||
var formData = new FormCollection(await FormReader.ReadFormAsync(await request.Content.ReadAsStreamAsync()));
|
||||
var formData = new FormCollection(await new FormReader(await request.Content.ReadAsStreamAsync()).ReadFormAsync());
|
||||
if (formData["grant_type"] == "authorization_code")
|
||||
{
|
||||
if (formData["code"] == "ValidCode")
|
||||
|
|
|
@ -21,7 +21,7 @@ namespace MusicStore.Mocks.Google
|
|||
|
||||
if (request.RequestUri.AbsoluteUri.StartsWith("https://www.googleapis.com/oauth2/v3/token"))
|
||||
{
|
||||
var formData = new FormCollection(await FormReader.ReadFormAsync(await request.Content.ReadAsStreamAsync()));
|
||||
var formData = new FormCollection(await new FormReader(await request.Content.ReadAsStreamAsync()).ReadFormAsync());
|
||||
if (formData["grant_type"] == "authorization_code")
|
||||
{
|
||||
if (formData["code"] == "ValidCode")
|
||||
|
|
|
@ -21,7 +21,7 @@ namespace MusicStore.Mocks.MicrosoftAccount
|
|||
|
||||
if (request.RequestUri.AbsoluteUri.StartsWith("https://login.microsoftonline.com/common/oauth2/v2.0/token"))
|
||||
{
|
||||
var formData = new FormCollection(await FormReader.ReadFormAsync(await request.Content.ReadAsStreamAsync()));
|
||||
var formData = new FormCollection(await new FormReader(await request.Content.ReadAsStreamAsync()).ReadFormAsync());
|
||||
if (formData["grant_type"] == "authorization_code")
|
||||
{
|
||||
if (formData["code"] == "ValidCode")
|
||||
|
|
|
@ -23,7 +23,7 @@ namespace MusicStore.Mocks.Twitter
|
|||
|
||||
if (request.RequestUri.AbsoluteUri.StartsWith("https://api.twitter.com/oauth/access_token"))
|
||||
{
|
||||
var formData = new FormCollection(await FormReader.ReadFormAsync(await request.Content.ReadAsStreamAsync()));
|
||||
var formData = new FormCollection(await new FormReader(await request.Content.ReadAsStreamAsync()).ReadFormAsync());
|
||||
if (formData["oauth_verifier"] == "valid_oauth_verifier")
|
||||
{
|
||||
if (_requestTokenEndpointInvoked)
|
||||
|
|
Загрузка…
Ссылка в новой задаче