If you are an person or organisation that thinks that empathy with other human beings is optional. Or that we can talk about diversity forever and not provide any meaningful actions to address then good luck to you. Your days are numbered !!!!!!
Imagine literally causing the cost of living crisis then having the cheek to demand money from the side hustles people are forced to do because of your absolute greed.
They built the wealth of the City of London on the slave trade.
The insurance markets. The banks. The shipping companies. The country houses. The endowed universities.
Then, when formal empire ended and the countries that had been colonized sent their people to Britain looking for work in the economy their labor had helped build...
They were told they didn't belong.
Told they were changing the culture.
Told, by the grandchildren of the people who had spent centuries treating their countries as property, that they were the problem.
The Windrush generation was invited.
Then it was detained. Deported. Told to prove it had ever belonged.
The extraction happened. The belonging was revoked.
One of a very tiny handful of countries in Africa that actually has any understanding of what freedom is and how to get there. The gap will soon become apparent.
Software companies are celebrating that AI means they need fewer engineers.
But they're only counting their own savings.
If it costs you less to build, it costs everyone less to build. Your competitors get the same discount, and so does the startup that doesn't exist yet.
Your customers also notice. They won't keep paying today's prices for software that's getting cheaper to make every month.
Cutting your costs is not the same as protecting your margins.
๐ ๐ณ๐ผ๐๐ป๐ฑ ๐๐ต๐ฒ ๐๐ฎ๐บ๐ฒ ๐๐ช๐ง ๐๐ฒ๐ฐ๐๐ฟ๐ถ๐๐ ๐๐๐น๐ป๐ฒ๐ฟ๐ฎ๐ฏ๐ถ๐น๐ถ๐๐ ๐ถ๐ป ๐ญ๐ฐ ๐๐ฆ๐ฃ .๐ก๐๐ง ๐๐ผ๐ฟ๐ฒ ๐ฎ๐ฝ๐ฝ๐
Your authentication is broken ๐
During security audits for enterprise clients, I kept seeing the same JWT configuration mistake.
It allows attackers to bypass authentication completely.
The problem? Missing token validation parameters.
Most developers copy JWT configuration from tutorials without understanding what's missing.
Here is what happens:
๐ญ. ๐ก๐ผ ๐๐๐๐๐ฒ๐ฟ ๐ฉ๐ฎ๐น๐ถ๐ฑ๐ฎ๐๐ถ๐ผ๐ป
โ Your API accepts tokens from ANY authentication server
โ An attacker creates their own auth server and issues valid tokens
โ Complete authentication bypass
๐ฎ. ๐ก๐ผ ๐๐๐ฑ๐ถ๐ฒ๐ป๐ฐ๐ฒ ๐ฉ๐ฎ๐น๐ถ๐ฑ๐ฎ๐๐ถ๐ผ๐ป
โ Tokens meant for different APIs work on yours
โ A token for staging works on production
โ Cross-application token reuse
๐ฏ. ๐ก๐ผ ๐๐ถ๐ณ๐ฒ๐๐ถ๐บ๐ฒ ๐ฉ๐ฎ๐น๐ถ๐ฑ๐ฎ๐๐ถ๐ผ๐ป
โ Expired tokens work forever
โ A stolen token from 2 months ago still grants access
โ No token expiration enforcement
๐ฐ. ๐๐ฒ๐ณ๐ฎ๐๐น๐ ๐๐น๐ผ๐ฐ๐ธ๐ฆ๐ธ๐ฒ๐
โ ASP .NET Core adds 5 minutes to token expiration by default
โ Extends the window for stolen tokens
โ Most developers don't know this exists
Here is the secure configuration you need:
โณ Set ValidateIssuer = true and specify your auth server
โณ Set ValidateAudience = true and define your API identifier
โณ Set ValidateLifetime = true to enforce expiration
โณ Set ClockSkew = https://t.co/QaHykDid1Q to remove the 5-minute grace period
The framework defaults are safe.
The copied tutorial code often isn't: many samples set these to false "to make it work" or leave ValidIssuer and ValidAudience empty.
๐ง๐ต๐ฒ ๐ฏ๐ถ๐ด๐ด๐ฒ๐๐ ๐ฟ๐ถ๐๐ธ?
Security through ignorance.
The framework protects you only when the config is right.
Want to test your API right now?
Send an expired token to your endpoint.
If it works, you have this vulnerability.
Fixing validation is step one. Here is what comes next:
โ How refresh tokens work and how to implement them
โ Security rules for refreshing tokens
โ How to revoke tokens to update user permissions on the fly
๐ I explained it step by step in this guide:
โณ https://t.co/dRwCHsjg83
The Russians threw the Europeans out of the Ukraine negotiations in Abu Dhabi and told them to wait in the lobby. The Europeans are completely locked out of international diplomacy. They do not even get a seat at the table on issues that immediately impact them. Incompetents. ๐ช๐บ
Whenever I see Africans say "the solution to censorship is to just build our own platforms", I inwardly cry at the babyfaced naivety. It's as if they think that the reason nearly all major social media platforms are American is that Americans are better at coding or something.
For those who aren't aware, social media is not profitable. Building a social media app is not particularly difficult. You can literally use AI to reverse engineer existing ones and put one together in a few minutes. There is nothing technically difficult about building or operating a social media platform. Any random Andela intern can do it.
The real problem which NOBODY is close to solving is that even if you can get everybody to sign up and use your platform, the cost of keeping its server and personnel infrastructure running is prohibitively expensive, and the cost of gaining and retaining users through platform monetisation is also extremely expensive. Twitter for example, has literally never made money. Since genesis in 2006.
That's 20 years of this site running 24/7, 365 days a year with outages happening only a few times a year for a few minutes at a time. That's 20 unbroken years of spending huge sums of money on Data centers. High latency servers. Backups and redundancy. Security. Development. Moderation. Government relations. Marketing. Who do you think pays for all this? Jack Dorsey? Elon Musk? Generous VC investors who throw money into a pit for 20 straight years with no route to profitability and keep pouring money in?
The only entity in the capitalist world that spends vast amounts of money that way is the government. Only the government invests huge sums of money in things that have immense social or political power without having any direct way to meaningfully generate profit. From the perspective of the US government, it is a super deal because instead of spending hundreds of billions annually to monitor, surveil, and collect intelligence on the rest of the world, it can instead spend tens of billions annually to be the silent backer keeping these social media platforms running, and have the rest of the world voluntarily submit vast amounts of their personal data and political intelligence that it uses for its ends.
You're not on a social media site. You're on a US government intelligence gathering and data surveillance platform. That is what Twitter is. That is what Instagram is. That is what Facebook is. That is what YouTube, Snapchat, Threads etc are. And TikTok by the way, is the Chinese version of the exact same thing, which is why it was forced to sell its US branch to Larry Ellison, a CIA contractor.
So unless you have a government behind you that is willing to spend serious money and receive no profit as you vibe-code your latest attempt at an "African social media platform", allow me to inform you that you are generously wasting your bloody time. "Social media" is not a playground and "viral user signup" or "user network effect" is not a real thing. There are thousands, maybe millions of social media apps on various app stores. The reason why you have only heard of the American and Chinese ones is that those are the 2 countries whose governments have inexhaustible sums of money to funnel into digital surveillance disguised as "social media".
So before inviting me or The Spearhead to join your umpteenth attempt at an "African social media platform", please find a government that is willing to back you first.
If you don't have a government behind you like Jack Dorsey, Elon Musk, Mark Zuckerberg, Larry Page and Sergei Brin do, please don't waste my time.
CancellationToken is one of the most underrated features in .NET.
And one of the most powerful.
Here's what happens without it. A user closes the browser tab in the middle of a slow request. Your API doesn't know. The database keeps running the query for nobody.
I tested this with 50 users who each refreshed 3 times.
51 out of 150 requests failed.
So I made a 5-minute video on it. I cover:
- What a CancellationToken actually is
- Why calling Cancel() doesn't stop your code (it only asks)
- The 3 mistakes most developers make with it
- When you should NOT pass the token at all
That last one surprises a lot of people.
It's short, it's animated, and the full demo code is on GitHub.
Watch: https://t.co/rRmRjW4VcS
@clarkaw Gaza, or rather Israel, is why everyone's bills are skyrocketing. If you don't understand that then you really ought not to have a public platform in the first place.
(let alone the fact that most British people are appalled by the ongoing genocide)
The Ukraine descending into chaos was predictable and predicted. Those of us who predicted it were blackguarded as enemy agents, marginalised, criminalised and exiled. But we were right. The attempt to use Ukraine as a weapon against Russia was both foolish and doomed. It risked thermo-nuclear World War. The gamble has failed. Who will be held to account?