Evilcorp’s broken promise and DWeb
Unless you’re a young or fairly light internet user, you’re probably aware of the slow transition of the web from its origins as a free-for-all village marketplace to its current state as a multi-faceted front for one of a small number of very, very large companies. e.g. Google, Facebook and Amazon etc. For the sake…
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…
Docker: Tidying up containers and images during dev
Firstly, it needs to be said, you probably *shouldn’t* have a lot of containers lying around, since it’s not the ‘docker way’ to create containers as if they were permanent entities that need to preserving. That’s kind of the opposite of the idea of Docker, in fact. The things that need to be preserved are…
If life is just a simulation, what would be its purpose?
At this point, we can only imagine. But if you consider what we use current modelling systems for, we can have a good guess. RESEARCH Testing Alternate Physical Laws Changing the fundamental laws of nature to see how things play out. We already know we have a pretty good deal in this one, but how…
Identity Server 4: There was an error – invalid_scope
When trying to validate a request against an API, I’m getting this error from the IS4 host. Sorry, there was an error : invalid_scope All I’ve done it change the client config to use EF SQL storage, instead of in-memory. During setup/seeding, I’m iterating over the Config class methods to get the configuration and inserting…
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. Cannot insert duplicate key row in object ‘dbo.ApiScopes’ with…
Changing signing certificates when using DataProtection
So I’m setting up IdentityServer 4 and have swapped out the default certificates ‘damienbodserver.pfx’ in the STS host and DataEventRecords API. Now, this isn’t that simple, because the certificate was used to protect data inserted into the database and that was tied to keys, stored in a Key Store (either on filesystem or DB). Trying…
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…
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…
Securing Passwords and Keys with UserSecrets
Obviously, it’s not a good idea to keep your sensitive information like passwords, keys and secrets in your code. This will be checked in to shared repos or they can be extracted quite easily if access to the built EXEs/DLLs is obtained. There are several options and while Azure Key Vault is probably the sensible…