-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch logstream command to use Bearer token when basic auth is not a…
…llowed. (#3342)
- Loading branch information
Showing
4 changed files
with
69 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/Azure.Functions.Cli/Arm/Models/BasicAuthCheckResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using static NuGet.Client.ManagedCodeConventions; | ||
|
||
namespace Azure.Functions.Cli.Arm.Models | ||
{ | ||
class BasicAuthCheckResponse | ||
{ | ||
[JsonProperty(PropertyName = "id")] | ||
public string Id { get; set; } | ||
|
||
[JsonProperty(PropertyName = "name")] | ||
public string ResourceName { get; set; } | ||
|
||
[JsonProperty(PropertyName = "type")] | ||
public string ResourceType { get; set; } | ||
|
||
[JsonProperty(PropertyName = "location")] | ||
public string Location { get; set; } | ||
|
||
[JsonProperty(PropertyName = "properties")] | ||
public BasicAuthCheckResponseProperties Properties { get; set; } | ||
} | ||
|
||
class BasicAuthCheckResponseProperties | ||
{ | ||
[JsonProperty(PropertyName = "allow")] | ||
public bool Allow { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters