The GenericPrincipal constructor requires an array of roles for IsInRole
to work. If null is passed in for that, then it will always return false, even if role claims are present on its identities.
The GenericPrincipal constructor requires an array of roles for IsInRole
to work. If null is passed in for that, then it will always return false, even if role claims are present on its identities.
I struggled to connect the dots to deploy a Datasette application with datasette-auth-passwords to Render, so I wrote a little post about how I did it.
Virtually anyone who has ever seriously created software for the web has (at least) one sick compulsion: we look at URLs differently.
An interesting account of a web security issue with the 2022 World Cup.
You know those annoying “subscribe to our newsletter” modals that websites display?
What’s extra annoying is that they still pop up even if you’re subscribed to the newsletter.
You can switch things around. Instead of adding lots of event handlers to lots of elements, you can add one event handler to the root element. Then figure out whether the element that just got clicked is special or not.
This is a good short article on JS event handling.