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…

By Toby Worth May 22, 2019 0

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

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.

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 that into the database, there shouldn’t…

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