Skip to content

Commit

Permalink
Merge pull request #134 from thijsdejong/patch-1
Browse files Browse the repository at this point in the history
Use correct oauth url for sandbox
  • Loading branch information
nickvandegroes committed Mar 23, 2020
2 parents 56b89da + 0b7c872 commit 028ef96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BunqSdk/Model/Core/OauthAccessToken.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class OauthAccessToken : BunqModel
/// <summary>
/// Token constants.
/// </summary>
protected const String TOKEN_URI_FORMAT_SANDBOX = "https://api.oauth.sandbox.bunq.com/v1/token?{0}";
protected const String TOKEN_URI_FORMAT_SANDBOX = "https://api-oauth.sandbox.bunq.com/v1/token?{0}";
protected const String TOKEN_URI_FORMAT_PRODUCTION = "https://api.oauth.bunq.com/v1/token?{0}";

[JsonProperty(PropertyName = "access_token")]
Expand Down Expand Up @@ -125,4 +125,4 @@ private static String DetermineTokenUriFormat()
return TOKEN_URI_FORMAT_MAP[BunqContext.ApiContext.EnvironmentType.TypeString];
}
}
}
}

0 comments on commit 028ef96

Please sign in to comment.