Skip to content

Commit

Permalink
Cherry pick branch 'genexuslabs:location_token' into beta
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroP authored and genexusbot committed Sep 19, 2023
1 parent dfd97c7 commit a872811
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dotnet/src/dotnetframework/GxClasses/Domain/GxLocations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public short AuthenticationMethod
get {return _authenticationMethod;}
set {_authenticationMethod = value;}
}
public string AcessToken
public string AccessToken
{
get { return _accessToken; }
set { _accessToken = value; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,9 @@ public void RestExecute()
httpClient.AddHeader("Content-Type", _contentType);
}
}
if (this.Location.AuthenticationMethod == 4 && !String.IsNullOrEmpty(this.Location.AcessToken))
if (this.Location.AuthenticationMethod == 4 && !String.IsNullOrEmpty(this.Location.AccessToken))
{
httpClient.AddHeader("Authorization", this.Location.AcessToken);
httpClient.AddHeader("Authorization", this.Location.AccessToken);
}
string serviceuri = ((this.Location.Secure > 0) ? "https" : "http") + "://" + this.Location.Host;
serviceuri += (this.Location.Port != 80) ? ":" + this.Location.Port.ToString() : String.Empty;
Expand Down

0 comments on commit a872811

Please sign in to comment.