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

Can’t insert duplicate key row in object dbo.ApiScopes

I’ve had this error twice now, but since I’ve had a large Rusty Nail for Boxing-boxing day (27th) I can’t remember what causes it and Gittr is impossible to search, so I’m going to keep a log in case I’m tipsy next time I see this.

I managed to find what I did last…

By Toby Worth December 28, 2018 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:

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