← Selected work

GO / AUTHENTICATION ENGINEERING

Go Authentication CLI

A command-line registration and login system with layered authentication and an explicit session lifecycle.

PERSONAL PROJECT · JULY 2026View source on GitHub ↗
Registration + login / Cobra CLI↓Password verification + TOTP MFA↓
PostgreSQL / pgxSession lifecycle

Architecture overview

THE BUILD

What the service does.

Built a Dockerized Go authentication system using Cobra and PostgreSQL through pgx. The project covers user registration, login, password security, multi-factor authentication, and session management.

01

Password handling and lockout

Used bcrypt for password hashing and implemented account lockout after five failed attempts.

02

Multi-factor authentication

Added Google Authenticator-compatible TOTP MFA, including enrollment coverage in unit tests.

03

Session lifecycle

Implemented configurable session expiration, session-token revocation, and hashed session-token storage.

04

Testing the authentication paths

Wrote unit tests covering password hashing, account lockout, session expiration, token storage, and TOTP enrollment.

This is a portfolio project focused on Go authentication and tested session behavior.

KEEP EXPLORING

Go Banking Backend Discuss my work ↗