Skip to content

Commit 1edeb6e

Browse files
authored
Fix default in getAuthenticationUrl to pass if requested (#160)
* Fix default in getAuthenticationUrl to pass if requested * Update version
1 parent af153c7 commit 1edeb6e

File tree

4 files changed

+7
-16
lines changed

4 files changed

+7
-16
lines changed

buildall.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $nugetPath = "$nugetDir\nuget.exe"
1919
$nugetSpecPath = "$sourceDir\Dropbox.Api.nuspec"
2020
$docBuildPath = Resolve-Path "doc\StoneDocs.shfbproj"
2121
$majorVersion = "5.0"
22-
$releaseVersion = "5.1.0"
22+
$releaseVersion = "5.2.0"
2323
$assemblyInfoPath = "$sourceDir\AppProperties\AssemblyInfo.cs"
2424
$signKeyPath = "$sourceDir\dropbox_api_key.snk"
2525
$releaseNotes = @'

dropbox-sdk-dotnet/Dropbox.Api.Unit.Tests/UnitTests.cs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,8 @@ public void TestGetAuthorizationUri()
113113
Assert.IsFalse(authUri.Contains("&force_reauthentication="));
114114
}
115115

116-
if (tokenAccessType != TokenAccessType.Legacy)
117-
{
118-
Assert.IsTrue(authUri.Contains("&token_access_type=" +
119-
tokenAccessType.ToString().ToLower()));
120-
}
121-
else
122-
{
123-
Assert.IsFalse(authUri.Contains("&token_access_type="));
124-
}
116+
Assert.IsTrue(authUri.Contains("&token_access_type=" +
117+
tokenAccessType.ToString().ToLower()));
125118

126119
if (scope != null)
127120
{

dropbox-sdk-dotnet/Dropbox.Api/Dropbox.Api.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package>
33
<metadata>
44
<id>Dropbox.Api</id>
5-
<version>5.1.0</version>
5+
<version>5.2.0</version>
66
<title>Dropbox v2 API</title>
77
<authors>Dropbox</authors>
88
<owners>Dropbox</owners>
@@ -32,4 +32,4 @@
3232
<file src="bin\Release\netstandard2.0\Dropbox.Api.dll" target="lib\netstandard2.0\Dropbox.Api.dll" />
3333
<file src="bin\Release\netstandard2.0\Dropbox.Api.xml" target="lib\netstandard2.0\Dropbox.Api.xml" />
3434
</files>
35-
</package>
35+
</package>

dropbox-sdk-dotnet/Dropbox.Api/DropboxOauth2Helper.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -357,10 +357,8 @@ public static Uri GetAuthorizeUri(OAuthResponseType oauthResponseType, string cl
357357
queryBuilder.Append("&force_reauthentication=true");
358358
}
359359

360-
if (tokenAccessType != TokenAccessType.Legacy)
361-
{
362-
queryBuilder.Append("&token_access_type=").Append(tokenAccessType.ToString().ToLower());
363-
}
360+
queryBuilder.Append("&token_access_type=").Append(tokenAccessType.ToString().ToLower());
361+
364362

365363
if (scopeList != null)
366364
{

0 commit comments

Comments
 (0)