Skip to content

Commit

Permalink
Merge pull request zebrunner#6 from qaprosoft/Feature/RenameAccessToken
Browse files Browse the repository at this point in the history
Renaming access token
  • Loading branch information
vdelendik authored Sep 10, 2020
2 parents 11f26bf + 152ea09 commit acb8a8e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion http/ApiRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ public object Execute(string url)


HttpRequest = CreateRequest(); ;
LOGGER.Info("Request (6): " + HttpRequest.RequestUri.OriginalString);
LOGGER.Info("Request (6) Uri is: " + HttpRequest.RequestUri.OriginalString);
LOGGER.Info("Request (6) Headers are: " + HttpRequest.Headers);
try
{
HttpResponse = (HttpWebResponse)HttpRequest.GetResponse();
Expand Down
2 changes: 1 addition & 1 deletion listener/ZafiraListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ private void InitZafira(AttributeTargets attributeTarget)
var auth = zc.refreshToken(ZAFIRA_ACCESS_TOKEN);
if (auth != null)
{
zc.AuthToken = auth.type + " " + auth.accessToken;
zc.AuthToken = auth.type + " " + auth.authToken;
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion models/AuthTokenType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class AuthTokenType : AbstractType
[DataMember]
public String type { get; set; }
[DataMember]
public String accessToken { get; set; }
public String authToken { get; set; }
[DataMember]
public String refreshToken { get; set; }
[DataMember]
Expand Down

0 comments on commit acb8a8e

Please sign in to comment.