Skip to main content
George Khananaev
Tag archive

Authentication and API access

3 posts

Explore authentication from both sides of an application: protecting FastAPI documentation and connecting a Next.js interface to an authenticated backend. These projects explain setup, session boundaries, and where application-specific authorization still belongs.

Start with FastAPI DocShield for documentation access, or PyNextStack for a frontend and backend starter.

Discuss a related architecture problem
Read FastAPI DocShield: protect your API docs with one line
FastAPI DocShield project illustration
Public projectGitHub

FastAPI DocShield: protect your API docs with one line

HTTP Basic Auth on the OpenAPI docs endpoints for FastAPI

A tiny FastAPI extension that adds HTTP Basic Authentication to the Swagger UI, ReDoc, and OpenAPI JSON endpoints. Drop it in, set a username and password, and your API docs are no longer public. Useful when you want docs in production but not publicly indexable.

fastapipythonsecurityauthentication
2 min read14
Explore project
Read PyNextStack: a full-stack user management starter
PyNextStack public demo sign-in interface
Public projectGitHub

PyNextStack: a full-stack user management starter

FastAPI backend, Next.js frontend, auth and profiles out of the box

A full-stack user management system with a Next.js frontend and FastAPI backend. Registration, authentication, profile management, and a Material-UI interface. Production-ready defaults so you can focus on your actual product instead of rebuilding the login form.

fastapinextjspythontypescriptauthentication+1 more
2 min read25
Explore project
Read Dark Theme Auth FastAPI Server
Dark-themed Swagger UI from the FastAPI starter repository, showing an interactive documentation example
Public projectGitHub

Dark Theme Auth FastAPI Server

A FastAPI template with auth-protected endpoints, Redis, logging, and a custom dark-themed docs UI

A versatile FastAPI server template with authentication-protected endpoints, Redis caching, structured logging, and a custom dark theme for the API documentation. A solid foundation for production APIs that want opinions baked in from day one.

fastapipythonredisauthenticationtemplate
2 min read10
Explore project