Posts

Showing posts with the label jwt token

JWT from A to Z: A Modern Authentication Solution for Developers

Image
  JWT from A to Z: A Modern Authentication Solution for Developers In the world of software engineering, it's rare to find someone who hasn't heard of JSON Web Token (JWT) when dealing with authentication and authorization. However, even when we use it, we often remain somewhat unclear about its internal workings and security aspects. In this article, we will explore JWT from a new perspective—from its structure to its necessity in modern systems and best security practices. 1. What is JWT and Why is it Used? JSON Web Token (JWT) is an open standard (RFC 7519) primarily used as a secure means of transmitting information between two parties. It is highly popular in modern distributed systems and microservice architectures because it is Stateless . This means the server does not need to store user session data in a database; the token itself carries its own identity. 2. Dissecting the Token: The Internal Structure of JWT Generally, a JWT token is composed of three parts: header...

JWT এর আদ্যোপান্ত - ডেভেলপারদের জন্য আধুনিক অথেনটিকেশন সমাধান

Image
  JWT এর আদ্যোপান্ত - ডেভেলপারদের জন্য আধুনিক অথেনটিকেশন সমাধান সফটওয়্যার ইঞ্জিনিয়ারিংয়ের জগতে অথেনটিকেশন এবং অথোরাইজেশন নিয়ে কাজ করতে গেলে JSON Web Token (JWT) এর নাম শোনেননি এমন কাউকে খুঁজে পাওয়া দুষ্কর। তবে অনেক সময় আমরা এটি ব্যবহার করলেও এর অভ্যন্তরীণ কার্যপদ্ধতি এবং সিকিউরিটি নিয়ে কিছুটা ধোঁয়াশায় থাকি। আজকের এই আর্টিকেলে আমরা JWT-কে একটি নতুন আঙ্গিকে দেখব—এর গঠন থেকে শুরু করে আধুনিক সিস্টেমে এর প্রয়োজনীয়তা এবং সিকিউরিটি বেস্ট প্র্যাকটিস পর্যন্ত। ১. JWT আসলে কী এবং কেন? JSON Web Token (JWT) হলো একটি ওপেন স্ট্যান্ডার্ড (RFC 7519), যা মূলত দুটি পক্ষের মধ্যে তথ্য আদান-প্রদানের একটি নিরাপদ মাধ্যম। আধুনিক ডিস্ট্রিবিউটেড সিস্টেম বা মাইক্রোসার্ভিস আর্কিটেকচারে এটি অত্যন্ত জনপ্রিয় কারণ এটি Stateless । অর্থাৎ, সার্ভারকে ইউজারের সেশন ডাটাবেসে সেভ করে রাখতে হয় না; টোকেন নিজেই নিজের পরিচয় বহন করে। ২. টোকেনের ব্যবচ্ছেদ: JWT-এর অভ্যন্তরীণ গঠন সাধারণভাবে একটি JWT টোকেন header, payload এবং signature—এই তিনটি অংশের সমন্বয়ে তৈরি হয়। অংশগুলো পরস্পরের থেকে ডট ( . ) দ্বারা পৃথক থাকে এবং প্রতিটি অ...

Popular posts from this blog

12 Best Websites to Practice Coding for Beginners

Using Generic in TypeScript about types in the Code

Whiteboarding Interviews