Custom authentication ContentType

Options
Hi,

Last question (I hope). I've written a tutorial that I'm going to post soon. I'm just ironing out details.

I have a working system, but I wanted to check something before I put up something that's actively wrong.

I'm using POST data for the username and password, and I'd like to be able to just use the model binding in ASP.NET Core. Unfortunately, I think that needs the contentType field to be set in the POST message. When I send a POST from Photon, I get a null content type. This means I have to open the body as a stream and read it in. It's not impossible, just inelegant, and a bit hard to explain :smile:

So is there a way to set the content type to something? Or does someone know of a way I can use model binding without it?

Thanks,
Steve