Safeguard
Tag

authentication

Safeguard articles tagged "authentication" — guides, analysis, and best practices for software supply chain and application security.

78 articles

Security

Password Validation: How to Verify Credentials Securely

Password validation is more than a regex for length and symbols. Here is how to check credentials the way modern guidance actually recommends.

Apr 28, 20266 min read
Open Source

How to Use bcryptjs from npm Safely: A Security Review

The bcryptjs npm package is a pure-JavaScript bcrypt implementation with zero native dependencies. Here is when to reach for it, how to use it correctly, and the pitfalls that weaken password hashing.

Apr 28, 20266 min read
Open Source

angular-auth-oidc-client: A Security-Focused Guide to Angular OIDC

angular-auth-oidc-client is a certified Angular library for OpenID Connect and OAuth2. Here is how to use it and how to configure it securely.

Apr 24, 20266 min read
Concepts

What Is a Nonce? The Number Used Once in Cryptography

A nonce is a value used a single time to keep cryptographic operations fresh and stop attackers from replaying old messages. Small idea, outsized importance.

Apr 22, 20266 min read
Security

Securing a REST API: A Defense-in-Depth Checklist

Securing a REST API means layering authentication, authorization, input validation, and rate limiting so no single control is the only thing standing between an attacker and your data.

Apr 20, 20265 min read
Security

flask-security-too: What It Is and How to Use It Securely

flask-security-too is the maintained successor to Flask-Security, giving Flask apps authentication, roles, and account features out of the box. Here is what it provides and how to configure it safely.

Apr 19, 20265 min read
Security

LDAP Injection Explained With a Real Example

A walkthrough of a concrete LDAP injection example, why the filter syntax makes it dangerous, and how to detect and remediate it in real code.

Apr 17, 20266 min read
Security

Secure Session Management: A Practical Guide for Web Apps

Secure session management comes down to a handful of decisions about cookies, storage, expiry, and rotation. Get those right and you close off most session-based attacks.

Apr 13, 20265 min read
Open Source

jsonwebtoken npm: Security Review and Safe Usage

The jsonwebtoken npm package signs and verifies JWTs for countless Node apps, and versions at or below 8.5.1 carry serious verification flaws. Here is how to use npm jsonwebtoken safely.

Apr 13, 20265 min read
AI Security

MCP Server Authentication and Authorization: Securing the AI Tool Layer

The Model Context Protocol enables AI agents to interact with external tools and data sources. Securing MCP servers requires authentication, authorization, and input validation patterns specific to the AI agent context.

Apr 12, 20268 min read
Security

User Session Management: A Security Guide

Session management is where most authentication bugs actually live. This guide covers how to issue, store, rotate, and revoke sessions without opening holes attackers walk straight through.

Apr 7, 20266 min read
Security

What Is a PAT Token and How Do You Keep It Secure?

A PAT token is a personal access token that stands in for your password when scripts and tools talk to services like GitHub. Here's how it works and how to stop it leaking.

Apr 7, 20266 min read

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.

authentication (Page 4) — Safeguard Blog