Secure authentication in e-government 2.0: a comparative analysis of traditional session-based and modern jwt-based authentication
Open Access
- 1 December 2024
- journal article
- Published by International Science Group in International Science Journal of Engineering & Agriculture
- Vol. 3 (6) , 117-129
Abstract
In the era of e-Government 2.0, the security of web applications is paramount, particularly in terms of user authentication. This article provides a comprehensive examination of two primary authentication methods: session-based authentication and JSON Web Token (JWT)-based authentication. It begins by discussing the foundational aspects of secure authentication, emphasizing its importance in e-Government platforms. The article then delves into the mechanics of session-based authentication, highlighting its reliance on server-side session management and the associated challenges. In contrast, JWT-based authentication is explored in depth, showcasing its stateless nature, structure, and the advantages of using access and refresh tokens in theory and also in practice. Through a detailed code example in Express.js, the article demonstrates the implementation of JWT-based authentication in a web application. The analysis concludes by summarizing the benefits of JWT, including enhanced security, scalability, and improved user experience, making it a suitable choice for modern e-Government applications.Keywords
This publication has 14 references indexed in Scilit:
- A citizen-centric approach to understand the effectiveness of e-government web portals: Empirical evidence from IndiaInformation Polity, 2022
- Comparison of Different Authentication Techniques and Steps to Implement Robust JWT Authentication2022
- CSRF Protection in JavaScript Frameworks and the Security of JavaScript ApplicationsHigh-Confidence Computing, 2021
- An authentication based scheme for applications using JSON web token2019
- Introduction to HTTP security headers and implementation of HTTP strict transport security (HSTS) header for HTTPS enforcing2017
- Cloud Adoption by Fine-Grained Resource Adaptation: Price Determination of Diagonally Scalable IaaS2016
- Opportunities and threats: A security assessment of state e-government websitesGovernment Information Quarterly, 2010
- The Effects of E‐Government on Trust and Confidence in GovernmentPublic Administration Review, 2006
- e-Government and Cyber Security: The Role of Cyber Security Exercises2006
- Infrastructure for e-government Web servicesIEEE Internet Computing, 2003