Showing posts with label webdevelopment. Show all posts
Showing posts with label webdevelopment. Show all posts

Monday, 17 August 2026

90% of developers pick the wrong authentication method.

90% of developers pick the wrong authentication method.


Then spend months patching the consequences.

JWT, Session, OAuth 2.0, API Keys - they're not interchangeable. Each one solves a different problem.

Here's the breakdown every backend engineer should know 👇

🔹 𝗦𝗲𝘀𝘀𝗶𝗼𝗻

Server creates a session on login, stores it in Redis/DB, returns session ID via cookie.

→ Stateful. Easy to revoke. Best for traditional web apps with a single backend.

→ Weakness: doesn't scale across services without a shared store.


🔹 𝗝𝗪𝗧

Server signs a token with claims (user, expiry, scope). Client sends it on every request.

→ Stateless. Scales infinitely. Best for microservices, SPAs, mobile apps.

→ Weakness: hard to revoke before expiry, payload is visible by default.


🔹 𝗢𝗔𝘂𝘁𝗵 𝟮.𝟬

User grants third-party apps limited access via an authorization server.

→ Mixed state. Industry standard for delegation. Best for "Login with Google," GitHub access, third-party integrations.

→ Weakness: complex to implement correctly - auth code, PKCE, client credentials, device flows.


🔹 𝗔𝗣𝗜 𝗞𝗲𝘆𝘀

Static long-lived secret tied to a service or developer account.

→ Stateful. Simple to rotate. Best for server-to-server APIs, SDKs, internal services.

→ Weakness: no user identity, no expiry by default. Leaked keys are dangerous.


The rule:

→ Web app, one backend → Session

→ Microservices, mobile, SPA → JWT

→ Third-party access → OAuth 2.0

→ Server-to-server → API Keys


Picking the wrong one isn't a bug. It's a security incident waiting to happen

Which one do you use most?

Obs: All Right to Original Creator @Rocky Bhatia - Linkdin Profile

#Backend #SystemDesign#Authentication #WebDevelopment #Engineering

Monday, 16 September 2024

How GitHub Advanced Security for Azure DevOps Saves the Day (and Your Reputation)

Let's face it, developers: we've all accidentally committed a secret (or two) to our code repository at some point. Maybe it was an API key, a database password, or that super-secret encryption key you swore you'd never forget. ‍♂️



The problem?  Those exposed secrets can be a hacker's dream come true. A leaked secret can bring your entire application crashing down, wreaking havoc on your data and reputation. Shuddersville.  Many good developers do not pay attention to this critical aspect while working on the code, behaviour which most of the time becomes very costly and painful.

That's where GitHub Advanced Security for Azure DevOps swoops in like a superhero with a cape (well, maybe more like a shield, but you get the idea). This powerful integration brings the muscle of GitHub's security features into your Azure DevOps workflow, so you can identify and squash those secret leaks before they become a disaster.


Here's how GitHub Advanced Security for Azure DevOps saves your bacon:

  • Secret Scanning: It acts like a super-sleuth, scouring your code for any exposed secrets like passwords, tokens, and keys. No more accidental oopsies making it past your commit.
  • Dependency Scanning: Those third-party libraries you love? They can have hidden vulnerabilities. Advanced Security scans your dependencies to expose any weak spots so you can patch them up before they get exploited.
  • CodeQL Code Scanning: This built-in code analysis tool is like a security X-ray for your codebase. It hunts for potential vulnerabilities and coding errors, so you can fix them before they become a problem.

The best part? This security suite integrates seamlessly into your Azure DevOps workflow. No need to jump through hoops or learn a whole new platform. You can find, fix, and prevent security issues all within your familiar Azure DevOps environment. Win-win!

So, ditch the stress of exposed secrets and vulnerable code. Embrace the power of GitHub Advanced Security for Azure DevOps. Your future self (and your security team) will thank you for it.

P.S. Looking for more info? Check out the official documentation to see how to get started with GitHub Advanced Security for Azure DevOps and start building more secure software today!

60 Remote Job Websites That Pay in USD: The Ultimate Guide to Finding Legitimate Remote Work - Part 3

  How to Choose the Right Remote Job Website You don't need to create accounts on all 60 platforms. That would probably make your job se...