-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9805ed5
commit ba47bb7
Showing
11 changed files
with
23 additions
and
22 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
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
namespace Taxi.WebApi.Authentication; | ||
|
||
public class Header | ||
public static class Header | ||
{ | ||
public const string ApiKey = "X-API-KEY"; | ||
} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
namespace Taxi.WebApi.Authentication; | ||
|
||
public class Policy | ||
public static class Policy | ||
{ | ||
public const string ApiKey = "ApiKey"; | ||
} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
namespace Taxi.WebApi.Authentication; | ||
|
||
public class Scheme | ||
public static class Scheme | ||
{ | ||
public const string ApiKey = "ApiKey"; | ||
} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
namespace Taxi.WebApi.Authentication; | ||
|
||
public class SwaggerSecurity | ||
public static class SwaggerSecurity | ||
{ | ||
public const string ApiKeyHeader = "ApiKeyHeader"; | ||
} |
15 changes: 7 additions & 8 deletions
15
src/Taxi.WebApi/Configuration/HostEnvironmentEnvExtensions.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 |
---|---|---|
@@ -1,12 +1,11 @@ | ||
namespace Taxi.WebApi.Configuration | ||
namespace Taxi.WebApi.Configuration; | ||
|
||
public static class HostEnvironmentEnvExtensions | ||
{ | ||
public static class HostEnvironmentEnvExtensions | ||
{ | ||
private const string Local = nameof(Local); | ||
private const string Local = nameof(Local); | ||
|
||
public static bool IsLocal(this IHostEnvironment hostEnvironment) | ||
{ | ||
return hostEnvironment.IsEnvironment(Local); | ||
} | ||
public static bool IsLocal(this IHostEnvironment hostEnvironment) | ||
{ | ||
return hostEnvironment.IsEnvironment(Local); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
namespace Taxi.WebApi.FeatureFlags | ||
namespace Taxi.WebApi.FeatureFlags; | ||
|
||
public static class CustomFeatureFlags | ||
{ | ||
public class CustomFeatureFlags | ||
{ | ||
public const string Driver = "Driver"; | ||
public const string Passenger = "Passenger"; | ||
} | ||
public const string Driver = "Driver"; | ||
public const string Passenger = "Passenger"; | ||
} |