Skip to content

Commit

Permalink
access token bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdanm-bb committed Mar 19, 2024
1 parent 8b02912 commit 00e44c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Apps.BWX/Actions/ProjectActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public ProjectActions(InvocationContext invocationContext) : base(invocationCont
}

[Action("Search projects", Description = "Search projects")]
public async Task<List<ProjectDto>> SearchProjects([ActionParameter] GetProjectRequest input)
public async Task<List<ProjectDto>> SearchProjects()
{
var request = new BWXRequest($"/api/v3/project", Method.Get, Creds);
return await Client.Paginate<ProjectDto>(request);
Expand Down
2 changes: 1 addition & 1 deletion Apps.BWX/Api/BWXRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class BWXRequest : RestRequest
public BWXRequest(string endpoint, Method method, IEnumerable<AuthenticationCredentialsProvider> creds) : base(
endpoint, method)
{
var token = creds.First(x => x.KeyName == "accessToken").Value;
var token = creds.First(x => x.KeyName == "accessKey").Value;
var secret = creds.First(x => x.KeyName == "secret").Value;
this.AddHeader("X-AUTH-TOKEN", GetXAuthToken(token, secret));
}
Expand Down
2 changes: 1 addition & 1 deletion Apps.BWX/Connections/ConnectionPingChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public ValueTask<ConnectionValidationResponse> ValidateConnection(IEnumerable<Au
var request = new BWXRequest("/api/v3/project", Method.Get, authProviders);
try
{
var reult = client.Paginate<ProjectDto>(request).Result;
var result = client.Paginate<ProjectDto>(request).Result;
return new ValueTask<ConnectionValidationResponse>(new ConnectionValidationResponse()
{
IsValid = true,
Expand Down

0 comments on commit 00e44c2

Please sign in to comment.