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
// prevent from mapping "sub" claim to nameidentifier. | |
JwtSecurityTokenHandler.DefaultInboundClaimTypeMap.Clear(); | |
var identityUrl = Configuration.GetValue<string>("IdentityUrl"); | |
services.AddAuthentication(options => | |
{ | |
options.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme; | |
options.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme; |
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
{ | |
"DownstreamPathTemplate": "/api/{version}/{everything}", | |
"DownstreamScheme": "http", | |
"DownstreamHostAndPorts": [ | |
{ | |
"Host": "basket.api", | |
"Port": 80 | |
} | |
], | |
"UpstreamPathTemplate": "/api/{version}/b/{everything}", |
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
mobileshoppingapigw: | |
environment: | |
- ASPNETCORE_ENVIRONMENT=Development | |
- IdentityUrl=http://identity.api | |
ports: | |
- "5200:80" | |
volumes: | |
- ./src/ApiGateways/Mobile.Bff.Shopping/apigw:/app/configuration | |
mobilemarketingapigw: |
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
mobileshoppingapigw: | |
image: eshop/ocelotapigw:${TAG:-latest} | |
build: | |
context: . | |
dockerfile: src/ApiGateways/ApiGw-Base/Dockerfile | |
mobilemarketingapigw: | |
image: eshop/ocelotapigw:${TAG:-latest} | |
build: | |
context: . |
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
{ | |
"DownstreamPathTemplate": "/api/{version}/{everything}", | |
"DownstreamScheme": "http", | |
"DownstreamHostAndPorts": [ | |
{ | |
"Host": "basket.api", | |
"Port": 80 | |
} | |
], | |
"UpstreamPathTemplate": "/api/{version}/b/{everything}", |
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
{ | |
"ReRoutes": [ | |
{ | |
"DownstreamPathTemplate": "/api/{version}/{everything}", | |
"DownstreamScheme": "http", | |
"DownstreamHostAndPorts": [ | |
{ | |
"Host": "catalog.api", | |
"Port": 80 | |
} |
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
Set-WindowsExplorerOptions -showProtectedOSFiles -showFileExtensions | |
Enable-RemoteDesktop | |
cinst Microsoft-Hyper-V-All -source windowsFeatures | |
cisnt markdownmonster | |
cinst zoomit | |
cinst f.lux | |
cinst google-chrome-x64 | |
cinst 7zip | |
cinst 7zip.install | |
cinst 1Password |
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
{ | |
"dependencies": { | |
"Microsoft.AspNetCore.Mvc": "1.0.0", | |
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0", | |
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0", | |
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0", | |
"Microsoft.Extensions.Configuration.FileExtensions": "1.0.0", | |
"Microsoft.Extensions.Configuration.Json": "1.0.0", | |
"Microsoft.Extensions.Logging": "1.0.0", | |
"Microsoft.Extensions.Logging.Console": "1.0.0", |
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 code can run in any Azure Service Fabric Stateful Reliable Service | |
// within the method protected override async Task RunAsync(CancellationToken cancellationToken) | |
//Aditional or similar code in: https://github.com/Azure-Samples/service-fabric-dotnet-getting-started/blob/master/Services/WordCount/WordCount.WebService/Controllers/DefaultController.cs | |
var fabricClient = new FabricClient(); | |
string serviceUri = "fabric:/MySFApp/MyStatefulService"; | |
Uri serviceUriInstance = new Uri(serviceUri); | |
System.Fabric.Query.ServicePartitionList partitionList = |