Tag: .net-core

Problems running .Net Core project in a docker container: String was not recognised as a Boolean.

I’ve been building a docker image of my Identity server 4 STS project to form part of an orchestrated cluster: IS4, AdminUI, API and Front end/Static file server. I’ll be posting about the other issues, but am currently getting an error when running ‘docker run myapp:dev’: The key part is “System.FormatException: String was not recognized…

By Toby Worth April 28, 2019 0

CORS Error in Fetch

Angular client making requests for .well-known IS4 config resource was failing with CORS error (resource did not have allow-origin header). As the error suggested, I hadn’t set up the right port on the CORS middleware in the IS4 host. And then implement that policy in the Startup.Configure method: app.UseCors(“defaultPolicy”); It’s so easy to miss this…

By Toby Worth December 21, 2018 0

Creating Self-Signed Certificates with New-SelfSignedCertificate on Windows 10

I’m using Identity Server 4 and am passing a certificate to the AddSigningCredential() method after calling the AddIdentityServer() middleware.  This certificate provides the key material for creating and validating tokens provided by the secure token server (i.e. my instance of Identity Server 4). Simple CLI testing For simple node-based or similar local testing, you can…

By Toby Worth December 19, 2018 0