Fading Coder

One Final Commit for the Last Sprint

Custom User Model Authentication in Django REST Framework

Customizing Django Auth User Model RBAC (Role-Based Access Control) implements permission management through roles. Django's Auth module employs six core permission tables: User, Group, Permission, and their relationship tables. # api/models.py from django.db import models from django.contrib.auth.m...

Working with JSON Web Tokens in Python Using PyJWT

What is PyJWT? PyJWT is a Python library designed for creating, parsing, and validating JSON Web Tokens (JWT). JWT is a compact, self-contained way for securely transmitting information between parties as a JSON object. This information can be verified and trusted because it is digitally signed. PyJ...

Comprehensive Guide to JWT Authentication and Go Implementation

Overview of JSON Web Tokens A JSON Web Token (JWT) is defined by the OpenID Foundasion under the RFC 7519 specification. It serves as a compact, URL-safe means of representing claims to be transferred between two parties. While the format is based on JSON, the token itself contains cryptographic sig...

Implementing JWT Authentication in Go with Gin Framework

package auth import ( "net/http" "time" "github.com/dgrijalva/jwt-go" "github.com/gin-gonic/gin" ) const secretKey = "application_secret_key" type AuthController struct{} type UserCredentials struct { Username string `json:"username"` Pass...

Minimalist Spring Security 6 + Front-Back Separation Implementation: Focus on Understanding Workflow

Minimalist Spring Security 6 + Front-Back Separation Implementation: Focus on Understanding Workflow Spring Security is relatively simple to use in Spring MVC, with built-in login, logout pages, session management, etc. However, how to implement a front-back separated project with Spring Security is...

Understanding JWT Tokens: Structure, Security, and Implementation

The Problem with Traditional Tokens When a client obtains a token from an authentication server and then uses that token to access protected resources, the resource server must verify the token's validity. The verification flow typically works as follows: The client presents the token when requestin...

Implementing Silent Token Refresh in Vue and Node.js Applications

User experience suffers when an applciation forces a logout due to an expired authentication token. Silent refresh addresses this by transparently renewing tokens in the background. Token Refresh Strategies Redis-based Token Extension A common backend-driven approach stores tokens in Redis with a co...

Implementing JWT Authentication with Apache Shiro in Spring Boot

Core Components Apache Shiro requires three main configurations for JWT integration: Custom Realm: Handles authentication and authorization logic by validaitng JWT tokens and retrieving user roles Security Manager: Manages security operations and connects the realm to Shiro's filter system Filter Fa...

Implementing JWT Authentication and Authorization in Spring Boot Applications

JWT (JSON Web Token) is an open standard for securely transmitting information between parties as a JSON object. It is commonly used for authentication and authorization in web applications. Tokens can be sent via URL parameters, POST requests, or HTTP headers. The payload contains all necessary use...

Integrating Apache Superset into Your Application with JWT Single Sign-On

Apache Superset is a web-based analytics and dashboarding platform built on Flask-AppBuilder (FAB). Integrating it with an existing product typically requires controlling authentication and sestion creation so users can transition from your app to Superset without re-entering credantials. Features r...