Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

Commit 693fed8

Browse files
mminnswhoisj
authored andcommitted
issue-695 Correct REST API Url used to validate credentials.
1 parent 44f1866 commit 693fed8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Bitbucket.Authentication/Src/Rest/RestClient.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ public async Task<AuthenticationResult> TryGetUser(TargetUri targetUri, int requ
2626
Authorization = authorization,
2727
Timeout = TimeSpan.FromMilliseconds(requestTimeout),
2828
};
29-
var requestUri = targetUri.CreateWith(restRootUrl);
29+
30+
var apiUrl = new Uri(restRootUrl, UserUrl);
31+
var requestUri = targetUri.CreateWith(apiUrl);
3032

3133
using (var response = await Network.HttpGetAsync(requestUri, options))
3234
{

0 commit comments

Comments
 (0)