April 2026 Summaries
65 posts from WorkOS
Filter
Month:
Year:
Post Summaries
Back to Blog
Creating an effective Model Context Protocol (MCP) server from a REST API involves more than simply wrapping each endpoint as a tool; it requires thoughtful design to ensure the server serves an LLM-based agent effectively. The key challenge is identifying which functions to implement, focusing on user goals rather than API endpoints, and utilizing MCP's three primitives: tools, resources, and prompts. Tools are actions the model decides to call, resources are data for context, and prompts start structured workflows. A successful design involves grouping endpoints into workflows, setting the right granularity, designing parameters and returns for LLMs, and planning for errors as part of the conversation. The process involves curating the server design to suit the agent's needs, avoiding over-exposure of endpoints, and ensuring tool descriptions are comprehensive. The guide suggests splitting large APIs into domain-specific servers or using dynamic tool loading for scalability, emphasizing that generated servers should be curated for optimal performance. The follow-up article will detail the implementation of an MCP server using Python, illustrating the design principles with a fictional API called Pantry.
Apr 30, 2026
4,289 words in the original blog post.
Password hashing is a critical aspect of securing stored passwords, with bcrypt, scrypt, and Argon2 being the primary algorithms used to ensure passwords are not stored in plaintext and are resistant to brute-force attacks. Each algorithm has its distinct strengths and weaknesses based on factors like CPU and memory hardness, resistance to side-channel attacks, and parameter tunability. Bcrypt, introduced in 1999, is widely used and battle-tested but is primarily CPU-hard, making it less resistant to parallel attacks on GPUs. Scrypt, designed in 2009, incorporates memory-hardness to counteract GPU and ASIC attacks but involves more complex parameter configurations. Argon2, the winner of the Password Hashing Competition in 2015, offers the strongest resistance to modern hardware attacks and comes in three variants to balance between side-channel resistance and time-memory tradeoff threats. While Argon2id is the recommended default for its robust defense capabilities, scrypt remains a strong alternative where Argon2 is unavailable, and bcrypt serves as a secure fallback for legacy systems. The choice of algorithm should also consider the surrounding practices such as using unique salts, tuning parameters for specific hardware, and planning for parameter migration to ensure comprehensive security.
Apr 30, 2026
1,983 words in the original blog post.
WorkOS provides a framework for managing the synchronization and authorization of user permissions across different resources, focusing on the trade-offs between synchronous and asynchronous updates. Synchronous updates ensure immediate consistency by computing new permissions during the API call, but they introduce latency with each membership change. Asynchronous updates, although faster initially, may lead to temporary inconsistencies, particularly impacting security if revocations are delayed. The document discusses how to manage these trade-offs by starting with synchronous updates and monitoring latency and contention, transitioning to asynchronous updates when necessary, and keeping revocation handling more conservative than grants. WorkOS offers tools like Directory Sync and Role-Based Access Control (RBAC) to facilitate these processes with features that include single API integration for identity providers and hierarchical access control for more precise permissions management.
Apr 30, 2026
1,130 words in the original blog post.
Stripe Projects offers a streamlined, CLI-first workflow for setting up real infrastructure, allowing developers to provision services like authentication and payments directly from the terminal without navigating multiple dashboards. This integration, which includes support for WorkOS, simplifies the traditionally complex task of configuring enterprise-grade authentication by eliminating the need for sign-up forms, payment walls, and manual credential management. With Stripe Projects, developers can initialize a project directory and add providers, receiving live credentials directly into their projects, thus facilitating a seamless transition from development to production environments. The system is designed to work efficiently with both human developers and AI coding agents, thereby enhancing productivity by keeping all actions within the terminal and ensuring that agent skills are updated in real-time. The integration maintains WorkOS's existing pricing model, offering a free tier for most developers and reserving charges for advanced enterprise features, while allowing developers to transition existing projects smoothly without starting from scratch. By reducing the setup time through automation and interactive configuration, Stripe Projects enables developers to focus more on building their applications rather than the setup process.
Apr 29, 2026
1,163 words in the original blog post.
SCIM (System for Cross-domain Identity Management) is a standard protocol used by enterprise SaaS products to synchronize user data from identity providers like Okta or Microsoft Entra into their own databases, efficiently managing tasks such as provisioning and deactivating users. However, SCIM does not inherently manage authorization context, such as team membership or roles, prompting the use of custom schema extensions. These extensions allow companies to define additional attributes tailored to their authorization models, as demonstrated by Docker and Notion, which have implemented custom extensions to manage user roles and organizational structure. Designing a custom SCIM extension involves selecting a unique URN, defining relevant attributes, and ensuring compatibility with identity providers. The process must consider the standard SCIM protocol defined by IETF RFCs 7643 and 7644, including handling PATCH operations for updating user attributes. Alternatively, services like WorkOS offer a streamlined approach by normalizing data across various identity providers, reducing the need for companies to manage SCIM servers directly.
Apr 29, 2026
1,412 words in the original blog post.
Firebase Authentication has been a popular choice for app developers due to its generous free tier, ease of integration, and strong ties with Google Cloud, making it suitable for early-stage consumer apps and mobile-first products. However, as businesses scale, they often encounter limitations such as the lack of native support for SAML SSO, SCIM provisioning, and audit logs, leading them to consider alternatives like Google Cloud Identity Platform, which brings additional costs and complexities. This has prompted many teams to reevaluate Firebase as they seek more robust B2B and enterprise features, vendor independence, and better support for relational data needs. The article reviews five prominent Firebase Auth alternatives—WorkOS, Auth0, Supabase, FusionAuth, and AWS Cognito—each offering unique features and trade-offs. WorkOS is highlighted for its enterprise-ready features like SAML, SCIM, and an admin portal, while Auth0 offers a comprehensive ecosystem with a mature feature set. Supabase appeals to those seeking an open-source, Postgres-first stack, whereas FusionAuth provides deployment flexibility for teams with specific infrastructure needs. AWS Cognito is best suited for AWS-native teams requiring tight integration with existing AWS services, despite its noted developer experience limitations.
Apr 29, 2026
3,285 words in the original blog post.
AI agents represent a new category of non-human identities (NHI) that diverge significantly from traditional NHIs like service accounts and API clients, creating distinct security and operational challenges. Unlike service accounts, which have predefined, code-based behaviors and fixed scopes, AI agents operate dynamically, producing actions at runtime based on natural-language instructions and user prompts, making their potential actions unpredictable. This necessitates a shift from credential-based authorization to action-based authorization, ensuring that agents are only allowed to perform actions that align with user intents and trusted inputs. Additionally, AI agents require a complex identity model that accounts for multi-hop delegation and user provenance, as they often act on behalf of multiple entities. Auditing AI agents involves capturing detailed reasoning traces beyond simple log entries to understand their decision-making processes, and their lifecycle management requires issuing short-lived, session-bound credentials rather than static, long-lived ones. This new paradigm demands updated identity and access management (IAM) strategies, such as those provided by solutions like WorkOS, to ensure that AI agents are securely and effectively integrated into organizational systems.
Apr 29, 2026
2,207 words in the original blog post.
Modern command-line interface (CLI) applications often require user authentication, and implementing a web-based OAuth flow is an efficient approach. This guide details how to incorporate a CLI login flow using WorkOS CLI Auth, utilizing the OAuth 2.0 Device Authorization Grant, which is particularly suitable for CLIs where embedding a browser is impractical. The process involves creating a Rust CLI that requests a device code from WorkOS, displays a user-friendly prompt with a verification URL and code, polls WorkOS while the user logs in, and exchanges the device code for tokens upon authorization. This method enhances security by enabling users to authenticate through the browser without needing to manually paste authentication tokens. The tutorial emphasizes the importance of displaying the user_code and verification_uri to users while keeping the device_code internal, and it provides step-by-step instructions on setting up the project with necessary dependencies and implementing the authentication flow.
Apr 28, 2026
1,120 words in the original blog post.
A new IETF Internet-Draft proposes an extension to OAuth's authorization code flow to address the challenge of distinguishing between actions performed by AI agents and users when interacting with APIs, ensuring clear audit trails and consent. The draft introduces two parameters, requested_actor and actor_token, which allow the agent's identity to be carried through the consent screen and embedded in access tokens, thereby enabling users to grant specific powers to specific agents and allowing downstream systems to identify who acted. This draft, titled "OAuth 2.0 Extension: On-Behalf-Of User Authorization for AI Agents," aims to provide a vendor-neutral, front-channel flow for obtaining explicit user consent, overcoming limitations of existing approaches like Microsoft's On-Behalf-Of flow and RFC 8693 token exchange. It highlights the importance of binding the actor to the authorization code and ensuring that consent screens explicitly name the agent, offering a more secure and transparent delegation model that distinguishes agents from users and provides an audit trail for compliance and incident response. While the draft is still in progress and subject to change, it aims to offer a standardized solution to managing AI agent identities and delegations within the OAuth ecosystem, providing a foundation for agent systems that require clear user consent and reliable audit capabilities.
Apr 28, 2026
2,490 words in the original blog post.
AI agents present complex security challenges, particularly in multi-hop delegation scenarios where one agent spawns another, complicating the identity and authorization verification process. The current industry identity stack, often based on OAuth, struggles with these scenarios, as demonstrated by documented vulnerabilities like Cross-Agent Privilege Escalation and Agent Session Smuggling. These vulnerabilities highlight the inadequacies of existing protocols that fail to enforce delegation chains beyond the initial agent authorization. The IETF and other standards bodies are actively developing solutions such as attenuating authorization tokens, cryptographically verifiable actor chains, and TLS-session-bound access tokens to address these challenges, but these standards are still evolving. Enterprises are responding with workarounds like inserting policy layers and requiring human signoff for high-stakes actions, while regulatory bodies are increasing scrutiny on AI agent access patterns, demanding more robust audit trails and compliance measures. As standards mature, organizations are encouraged to design systems with traceability and privilege attenuation from the outset to better align with future requirements and mitigate risks.
Apr 27, 2026
2,438 words in the original blog post.
Ruby developers working with JSON Web Tokens (JWTs) benefit from the jwt gem, a dominant library that aligns with Ruby idioms and leverages OpenSSL, which is included in every Ruby installation. The jwt gem supports major signing algorithms such as HMAC, RSA, and ECDSA, and provides features like JWK and JWKS support for key management. JWTs, widely used for securely transmitting information between systems, consist of a header, payload, and signature. The guide details how to safely handle, verify, and work with JWTs in Ruby, covering key concepts like HS256 and RS256 verification, Rails integration patterns, and key rotation strategies. It emphasizes best practices like always verifying the token signature, enforcing expected algorithms, validating critical claims like expiration and audience, and using JWKS endpoints to handle key rotation and verification efficiently. The guide also highlights the importance of short-lived access tokens, centralized JWT logic, and secure storage of secrets using Rails credentials, while cautioning against common pitfalls such as algorithm confusion attacks. The document suggests using WorkOS for comprehensive authentication solutions, especially for enterprise scenarios, as it offers a modern API for integrating SSO, managing users, and issuing secure tokens without the need for a complete in-house authentication stack.
Apr 27, 2026
4,253 words in the original blog post.
Clerk and WorkOS are two companies offering authentication services, with Clerk recently repositioning itself as a B2B platform while WorkOS has been focused on enterprise solutions from the beginning. Clerk has introduced features like enterprise SSO and SCIM, but WorkOS has a more comprehensive suite of offerings including a fully functional Admin Portal, tamper-resistant audit logs, and extensive pre-built integrations for identity management. WorkOS's infrastructure is designed for scalability and reliability, offering a 99.99% uptime SLA and extensive support for enterprise identity needs, making it favored by companies like OpenAI and Anthropic. Clerk, on the other hand, has faced reliability issues and lacks some enterprise-ready features, such as a self-serve Admin Portal and comprehensive audit log support. For developers, Clerk offers quick setup for projects within React and Next.js, while WorkOS provides a more extensible and standards-aligned approach suitable for complex, enterprise-level requirements. The pricing models also differ, with WorkOS offering predictable per-customer costs and free user management up to a million users, contrasting with Clerk's model that scales with user count and layers enterprise features as add-ons. The text suggests that while Clerk might be suitable for smaller B2B projects or consumer-facing applications, WorkOS's robust infrastructure and comprehensive feature set make it a better choice for serious enterprise engagements.
Apr 24, 2026
2,776 words in the original blog post.
In February 2026, NIST's Center for AI Standards and Innovation introduced the AI Agent Standards Initiative to establish protocols for how autonomous AI agents authenticate, authorize, and collaborate across enterprise systems. The initiative centers on three pillars: industry-led standards, open-source protocols, and security and identity research. These efforts aim to address fragmented identity systems and security gaps that impede widespread deployment of AI agents and to ensure agents have enterprise-grade identities with proper lifecycle management. NIST's first deliverable, a concept paper, advocates adapting existing identity standards like OAuth, OpenID Connect, and SPIFFE/SPIRE for AI agents rather than inventing new ones, highlighting challenges with multi-hop delegation among agents. The paper also emphasizes the need for least-privilege authorization, comprehensive auditability, and controls against prompt injection attacks. As agent identity standards transition from emerging to essential, organizations are encouraged to manage agent credentials proactively and prepare for multi-hop delegation. The initiative represents an opportunity for enterprises to leverage robust identity governance for competitive advantage, positioning agent identity management as a critical component of production infrastructure.
Apr 24, 2026
1,071 words in the original blog post.
FedRAMP authorization is crucial for software companies aiming to sell to the U.S. federal government, requiring significant time and financial investment, traditionally taking 12 to 24 months and over $1 million for authorization. However, the introduction of FedRAMP 20x in March 2025 aims to streamline the process through automation and continuous validation, with some companies achieving authorization in as little as three months. The program has three impact levels—Low, Moderate, and High—based on data sensitivity, and companies must navigate complex requirements, including defining authorization boundaries, engaging Third Party Assessment Organizations (3PAOs), securing agency sponsorship, and managing continuous monitoring. Successful companies often build dedicated offerings for federal requirements, automate evidence collection, and focus on risk prioritization over checklist compliance, as demonstrated by companies like Wiz, GitLab, and Databricks. The 20x initiative has not altered the need for a mature security posture but has shifted the emphasis toward continuous validation, aligning with broader federal cybersecurity policies.
Apr 23, 2026
2,129 words in the original blog post.
Java's authentication ecosystem, particularly through frameworks like Spring Security, Jakarta EE, Quarkus, and Micronaut, provides a robust and extensive set of tools for handling authentication, though its complexity can be daunting. Spring Security is notably comprehensive, offering features like CSRF protection, OAuth2 integration, and method-level authorization, but it can be overwhelming due to its extensive filter chain architecture and diverse configuration options. Quarkus and Micronaut, designed for cloud-native environments, offer more streamlined approaches, emphasizing simplicity and efficiency, though they may lack the breadth of Spring's features. The document suggests several implementation strategies for authentication in Java, ranging from traditional session-based methods to modern JWT and OAuth2 approaches, and highlights the advantages of managed authentication providers like WorkOS, which offer a streamlined integration process and comprehensive features. It emphasizes the importance of following best security practices, such as using BCrypt for password hashing, enabling CSRF protection for session-based applications, and maintaining up-to-date dependencies to mitigate vulnerabilities.
Apr 22, 2026
3,882 words in the original blog post.
AI agents present unique access control challenges that traditional identity and access management systems are not equipped to handle, as these agents operate autonomously and interpret natural language to perform tasks, which requires dynamic authorization decisions. To manage these, it is essential to assign each agent a distinct identity, enforce the principle of least privilege with fine-grained scopes, and use short-lived credentials that are rotated frequently. Authorization should be context-aware and policies expressed as code to ensure adaptability and security. Additionally, separating user authority from agent authority is crucial to prevent confused deputy attacks, where agents might inadvertently act on unauthorized instructions. High-impact actions should require out-of-band human approval to ensure security, and all tool inputs and outputs are to be treated as untrusted to protect against unauthorized actions. Comprehensive logging of agent activity is necessary for incident reconstruction, and rate limits, quotas, and circuit breakers should be applied to prevent damage from runaway processes. Furthermore, execution environments need isolation to safeguard credentials and sensitive data, and planning for rapid revocation and deprovisioning is critical. Implementing these measures requires leveraging established primitives and solutions, such as those provided by platforms like WorkOS, to facilitate identity management and authorization processes efficiently.
Apr 22, 2026
3,391 words in the original blog post.
Optimizing content for AI agents involves serving markdown instead of HTML to make information more accessible and efficient for these digital consumers, as static HTML can hinder their ability to extract useful content. The process includes detecting AI agents through Accept headers and User-Agent strings, such as axios/, to serve them markdown that excludes unnecessary React components, thereby ensuring clarity and usability. This approach also highlights the importance of reordering middleware to prevent routing errors that could mislead agents, as they often do not provide feedback on content issues. The adoption of llms.txt, akin to robots.txt, is suggested to offer a plain-text version of a site, benefiting agents like OpenAI with descriptive User-Agent strings. The evolving nature of AI agents emphasizes the need for adapting documentation strategies to cater to both human and AI audiences, ultimately improving the content's quality and accessibility.
Apr 22, 2026
1,329 words in the original blog post.
B2B applications can significantly enhance user experience by integrating contextually relevant data from platforms like Notion, allowing users to access essential documents and tools without switching between apps. WorkOS Pipes streamlines this process by managing OAuth flows and token storage, enabling applications to connect with third-party services such as Notion, Slack, GitHub, and others without the need for extensive OAuth infrastructure. By simply embedding the Pipes widget, apps can request and use access tokens to call provider APIs, facilitating seamless data integration. This tutorial guides users through setting up a WorkOS account to connect Notion to a Node app, leveraging WorkOS Pipes to manage the OAuth process, and enabling secure access to Notion pages. The tutorial also highlights the benefits of using WorkOS Pipes, such as automatic token refresh and support for multiple providers, making it a versatile tool for expanding application capabilities while focusing on core features rather than OAuth maintenance.
Apr 21, 2026
2,287 words in the original blog post.
Authentication is a crucial component of application security, often prone to vulnerabilities despite its importance. Stolen credentials contribute to a significant percentage of web attacks, resulting in costly breaches. Fortunately, authentication protocols and practices have matured, offering stable solutions. Recommended protocols include OAuth 2.1 with PKCE, OpenID Connect for user identity, and SAML 2.0 for enterprise needs. WebAuthn and passkeys are suggested for passwordless authentication, enhancing security by eliminating shared secrets and improving user experience. When passwords are necessary, modern hashing algorithms like Argon2id or bcrypt should be used to prevent vulnerabilities. Password policies should focus on length rather than complexity, and MFA should be layered, favoring phishing-resistant methods. Sessions should use short-lived access tokens with refresh token rotation to mitigate risks. JWTs require thorough validation, and the storage of tokens should consider security threats, favoring HttpOnly cookies and memory storage. Rate limiting, account enumeration prevention, and secure password reset processes are essential defenses. Comprehensive logging of authentication events helps detect breaches early. Building custom authentication systems is feasible but comes with high risks and resource costs, making third-party solutions like WorkOS a viable option for many teams.
Apr 21, 2026
3,248 words in the original blog post.
JWT verification is crucial in ensuring that authenticated user information is accurately processed and secure within applications, particularly when using frameworks like Next.js. This process involves verifying the JWT signature, time-based claims, issuer, and audience to maintain security, with the choice of verification method and library being essential for proper implementation. In Next.js, JWT verification can occur in middleware, server components, route handlers, or server actions, depending on the application's architecture and needs. Middleware runs on Edge, requiring libraries like jose that are compatible with the Web Crypto API, while traditional Node environments can use libraries like jsonwebtoken. Choosing between symmetric (HS256) and asymmetric (RS256) algorithms depends on the trust boundaries and whether tokens are shared across multiple services or third-party providers. Proper placement of verification within the application and the use of secure storage methods, such as httpOnly cookies, are emphasized to avoid common security pitfalls. The article further suggests using tools like WorkOS AuthKit for handling broader authentication tasks, while developers maintain control over JWT verification within their code.
Apr 21, 2026
2,550 words in the original blog post.
Demonstrating Proof-of-Possession (DPoP), standardized in September 2023 as RFC 9449, addresses the security vulnerabilities of OAuth 2.0 bearer tokens by binding access and refresh tokens to a client's public/private key pair, requiring a fresh proof JWT for each token and resource request. This method ensures that a stolen token is useless without the corresponding private key, enhancing security against token theft in scenarios such as compromised browser extensions or vulnerable SPAs. DPoP, unlike Mutual TLS which operates at the transport layer, functions at the application layer and is more accessible for clients using Web Crypto or JWT libraries, despite having more complex moving parts in the request path. It is increasingly being adopted in frameworks like Bluesky's atproto and the Financial-grade API Security Profile 2.0 for open banking, which prefer sender-constrained tokens over traditional methods due to their enhanced security features. The implementation details of DPoP include using asymmetric key pairs, managing nonces to prevent replay attacks, and ensuring that private keys remain non-extractable to maintain the security of the token exchange process.
Apr 20, 2026
2,588 words in the original blog post.
In 2023, significant incidents involving large language models (LLMs) underscored their unique security vulnerabilities, prompting the creation of the OWASP Top 10 for LLM Applications, a guide specifically addressing these risks. Key events included Samsung engineers inadvertently feeding proprietary source code to ChatGPT, leading to its integration into the training data, and a tampered open-source model on Hugging Face that spread misinformation across applications. These cases highlighted the broader attack surface and faster exploitation paths associated with LLMs, which traditional application security measures did not anticipate due to their reliance on deterministic code and validated inputs. The OWASP list, updated in 2024, identifies specific vulnerabilities such as prompt injection, sensitive information disclosure, and supply chain threats, emphasizing the need for robust security practices. The unpredictability of LLMs, due to their probabilistic behavior and interaction with untrusted inputs, necessitates treating them as untrusted components, implementing strict controls, and ensuring comprehensive logging and authorization measures to mitigate risks.
Apr 20, 2026
4,155 words in the original blog post.
Vibe coding, which involves using language models to generate code based on simple prompts, is effective for creating UI components and prototypes but poses significant risks when used for authentication systems. These AI-generated authentication systems often overlook critical security elements like token expiration, CSRF protection, and proper password hashing, leading to vulnerabilities that can be exploited. Instead of building authentication from scratch, developers are encouraged to treat it like infrastructure and use specialized services such as WorkOS, which provides a comprehensive and secure authentication solution. The WorkOS CLI simplifies integration by automatically configuring necessary components and ensuring security protocols are followed, allowing developers to focus on their core product rather than the complexities of authentication. This shift not only saves time but also leverages the expertise of teams dedicated to maintaining secure authentication systems.
Apr 20, 2026
1,602 words in the original blog post.
In 2025, Twilio's acquisition of Stytch, a developer-first identity platform known for its passwordless authentication and clean APIs, sparked concerns among B2B SaaS teams about changes in product focus and pricing within Twilio's larger communications framework. As Stytch's priorities align with Twilio's strategy, parallels have been drawn to Auth0's acquisition by Okta, raising questions about roadmap predictability and vendor independence. Additionally, Stytch's pricing model, which lacks volume discounts, and its B2B features, layered on a consumer-first foundation, have prompted teams to consider alternatives. These alternatives include WorkOS, Auth0, Descope, Keycloak, and PropelAuth, each offering unique strengths and trade-offs in terms of user management, SSO, SCIM provisioning, and multi-tenancy. For instance, WorkOS is highlighted for its enterprise readiness and generous user management pricing, while Auth0 is noted for its extensive ecosystem but potentially unpredictable pricing. Descope offers a visual flow editor with a user-first data model, Keycloak provides open-source flexibility requiring significant engineering effort, and PropelAuth presents an org-first model with flat-tier pricing. B2B SaaS teams are urged to evaluate these options based on their specific needs, including organization modeling, pricing structures, admin UX, and overall engineering effort required.
Apr 20, 2026
3,110 words in the original blog post.
Java has long been integral to enterprise authentication, particularly through its use of JSON Web Tokens (JWTs) in systems such as Spring Boot APIs and microservices. JWTs offer a compact, URL-safe format for securely transmitting information between systems, allowing one system to make a signed statement about a user or service that another system can verify without database lookups. Java supports various JWT libraries, with Nimbus JOSE + JWT being a popular choice due to its comprehensive coverage of the JOSE specification suite and its integration with Spring Security. JWTs are composed of a header, payload, and signature, where the header defines the signing algorithm, the payload contains claims about the token subject, and the signature ensures the token's integrity. Java developers are advised to follow best practices, including verifying signatures, enforcing specific algorithms, and using JSON Web Key Sets (JWKS) for key rotation. While handling JWTs is crucial, broader authentication processes such as SSO and token management can be streamlined using platforms like WorkOS, which provides a modern API for enterprise authentication features.
Apr 16, 2026
4,168 words in the original blog post.
Authentication in Go is a customizable process that requires developers to build or choose solutions for user authentication, as the language does not provide built-in support. The text outlines the fundamental concepts and strategies for implementing authentication in Go, including the use of middleware patterns, understanding the request lifecycle, and the advantages of Go's explicit coding style for security-critical applications. Developers can implement stateless authentication using JWTs, which suits microservices, or stateful authentication through session-based models, which is ideal for applications needing immediate revocation. The text also discusses security considerations, such as using constant-time comparisons to prevent timing attacks, and emphasizes the importance of securing sessions and using strong password hashing algorithms like bcrypt or Argon2id. Additionally, it explores third-party routers like Chi and frameworks such as Gin and Echo, which offer additional features while maintaining compatibility with the standard library. For applications needing social logins or more complex authentication requirements, Go's OAuth2 support and managed authentication providers like WorkOS are recommended. The document underscores the importance of structured logging, rate limiting, and graceful shutdowns in production environments to enhance security and performance.
Apr 16, 2026
4,829 words in the original blog post.
A recently published CVE highlighted a vulnerability in Axios, a JavaScript HTTP client, which, when combined with a separate prototype pollution bug, could potentially lead to AWS credential theft. This issue exemplifies a "gadget chain," where low-severity flaws in different libraries combine to create a severe security risk. In the Node.js ecosystem, where deep dependency trees and dynamic object handling are prevalent, such chains are particularly common and difficult to detect because conventional tools evaluate vulnerabilities in isolation. The described attack chain was ultimately blocked by Node.js's built-in validation against CRLF characters in headers, but the case underscores the importance of understanding how dependencies interact and the potential for low-severity bugs to escalate when new libraries are added. The Axios fix in version 1.15.0 addressed the issue by implementing additional input validation, serving as a reminder that libraries should independently validate inputs to prevent unexpected security risks.
Apr 16, 2026
1,825 words in the original blog post.
The text discusses the concept of tool misuse and exploitation in agentic applications, specifically highlighting the risk identified as ASI02 in the OWASP Top 10 for Agentic Applications. It emphasizes the potential dangers when a trusted agent uses trusted tools in unexpected ways, leading to data breaches or other unintended consequences. The article outlines the limitations of relying solely on authorization, which checks if an agent is allowed to use a tool but not how it is used. It categorizes tool misuse into three areas: dangerous arguments to legitimate tools, dangerous tool chains, and emergent misuse from multi-step reasoning. The text suggests implementing a policy layer on top of authorization to evaluate the context of tool usage, including argument validation, chain and context analysis, and setting circuit breakers for high-risk operations. It describes building a layered defense strategy, incorporating identity and authorization, supply chain verification, and invocation policy to ensure agents act within approved boundaries. The article concludes by mentioning WorkOS as a provider of identity infrastructure that supports implementing these controls.
Apr 16, 2026
1,727 words in the original blog post.
At HumanX 2026 in San Francisco, WorkOS CEO Michael Grinich and TinyFish founder Homer Wang discussed the challenges and innovations in web infrastructure and AI agents. TinyFish aims to transform the web from a human-centric database into a machine-accessible platform by automating complex web interactions, distinguishing itself from traditional web scraping techniques. Wang highlighted that the web's inherent complexity makes it difficult for AI to access data, likening TinyFish's approach to capturing the "tiny fish" or native elements of the web to work on behalf of users. The platform is utilized by companies like Google and DoorDash for tasks such as deep research and monitoring web changes, emphasizing the shift from user-oriented metrics to building products for AI agents. Wang noted the importance of making web content accessible to automated systems, even for small businesses that can't adapt to new standards, by using web agents to fetch and deliver live information, thus democratizing access and enhancing business visibility without requiring changes from the businesses themselves.
Apr 15, 2026
748 words in the original blog post.
Fireworks AI is an innovative platform that empowers companies to create, train, and scale open AI models, offering full ownership of model weights. During an interview at HumanX 2026, Rob Ferguson, a recent addition to the company, highlighted how Fireworks serves diverse clients, from coding tool developers to enterprises seeking model ownership. He explained that while companies often start with closed-source models due to cost incentives, the strategic and economic advantages of open models become evident as they scale, allowing for differentiation and competitive edge. Ferguson noted that open models are rapidly closing the performance gap with frontier models, primarily because there are no longer any secrets in model development due to shared ideas, common data sources, and fluid researcher movement. He emphasized that the true competitive advantage now lies in unique data, particularly enterprise data hidden behind firewalls, which strengthens the model's performance. Ferguson also linked AI development trends to government structures, suggesting that regional policies on non-compete agreements and copyright enforcement significantly influence the evolution of AI models.
Apr 15, 2026
632 words in the original blog post.
At HumanX 2026, Michael Grinich interviewed Anish Agarwal, CEO of Traversal, about the company's innovative approach to automating incident response in production systems using autonomous agents. Traversal's solution involves a "production world model," a comprehensive representation of every component and dependency within a system, enabling autonomous troubleshooting much like self-driving cars navigate using world models. The company addresses the challenge of processing vast amounts of telemetry data by employing an AI-native compressor to reduce data volume without losing essential signals. Traversal applies an autonomy framework similar to the SAE levels for self-driving cars, focusing on the transition from manual to fully autonomous operations. A significant hurdle in reaching full autonomy lies in organizational change rather than technology, as engineers are eager to design resilient systems rather than constantly manage incidents. The ultimate challenge is achieving causal reasoning in AI, a task that goes beyond correlation and requires understanding cause and effect, which could have far-reaching applications beyond just site reliability engineering. Traversal aims to fill the gap in AI investment for production systems, which remains a bottleneck despite advancements in AI-driven software development processes.
Apr 15, 2026
773 words in the original blog post.
AI agents have become ubiquitous, with companies frequently encountering the challenge of maintaining state during execution failures—a problem historically addressed in distributed systems. WorkOS CEO Michael Grinich and Temporal CEO Maxim Fateev, at HumanX 2026, discussed the importance of durable execution, where workflows persist through crashes and infrastructure failures, ensuring no loss of state. Unlike deterministic traditional workflows, AI agents are unpredictable, relying on external services, making them prone to failures during long-running tasks. Temporal addresses this by decoupling workflow logic from execution infrastructure, offering persistence, retries, and scheduling. This approach treats durable execution as an infrastructure primitive, providing reliability without imposing coding structures. Temporal's model is increasingly adopted by AI-native companies for its audit trail capabilities, crucial for visibility in complex workflows. Fateev highlighted that durable execution, vital for AI agents, aligns with the industry's need for resilient, production-ready solutions.
Apr 15, 2026
744 words in the original blog post.
The cloud infrastructure market is rapidly evolving to accommodate the unique demands of AI workloads, which differ significantly from traditional web applications in terms of requirements like GPU access and burst compute. In a conversation at HumanX 2026, Ojus Save from Render discussed how Render is simplifying AI deployment by applying the same user-friendly principles that made it popular for web apps, such as push-to-deploy and managed infrastructure, to AI workloads. Render is focusing on abstracting the complexities of GPU provisioning, enabling developers to deploy AI models with ease, without needing extensive infrastructure expertise. This approach aims to bridge the gap between prototyping and production, which often requires a switch to more complex infrastructure, by maintaining continuity as developers scale their AI projects. The emphasis on developer experience is highlighted as a key differentiator, with Render positioning itself as a platform that prioritizes usability over extensive configurability, making AI infrastructure as accessible as that for web apps.
Apr 15, 2026
666 words in the original blog post.
The discussion between WorkOS CEO Michael Grinich and Here CEO Mazy Dar at HumanX 2026 highlights the challenges and opportunities in developing an AI-native platform for video understanding, emphasizing that while text has long had search capabilities, video lacks a comparable solution. Dar's company, Here, aims to unlock the vast amounts of institutional knowledge trapped in video content by using a multimodal approach that analyzes visual content, speech, on-screen text, and context to make videos as accessible and searchable as well-structured documents. The engineering challenges involve managing large video files, ensuring low latency, and achieving high accuracy to gain user trust. The conversation also explored the growing enterprise demand for tools that make video a first-class data source, with potential for APIs, workflow integrations, and robust security features. Dar's focus is on expanding the platform's capabilities and enhancing enterprise integrations, betting on video understanding becoming as essential as document search, as the gap between research advancements and production-ready tools narrows.
Apr 15, 2026
580 words in the original blog post.
Webflow has evolved from a design tool into a comprehensive enterprise platform used by major companies like Dropbox, Upwork, and Jasper, with its CEO Linda Tong emphasizing the transformative role of AI in web development during an interview with WorkOS CEO Michael Grinich at HumanX 2026. The integration of AI into Webflow is not merely an additional feature but a fundamental enhancement that accelerates the company's mission to make the web more accessible by transitioning from no-code to AI-native workflows that intuitively assist users in building websites. As Webflow targets enterprise clients, it addresses their complex needs for governance and brand consistency by embedding AI into design and content workflows, enabling rapid creation and iteration while maintaining control over compliance and brand standards. Tong acknowledges that while AI website builders can quickly create initial versions, Webflow's strength lies in managing websites as dynamic, evolving products that require ongoing updates, experiments, and team coordination. Looking ahead, Webflow plans to deepen its AI integrations, focusing on personalization and analytics to create a platform that not only builds and launches but also provides insights into what works and why, reflecting a shift in focus from the no-code versus code debate to leveraging AI for enhanced team efficiency and control.
Apr 15, 2026
495 words in the original blog post.
Jyoti Bansal, founder and CEO of Harness, is pioneering AI-native software delivery by reimagining the entire development pipeline, rather than simply integrating AI features into existing tools. In an interview with WorkOS CEO Michael Grinich at HumanX 2026, Bansal highlighted how the bottlenecks in developer productivity shift as AI-generated code increases, emphasizing the need for smarter testing, faster feedback loops, and dynamic delivery systems that can make real-time decisions. Unlike traditional CI/CD tools, Harness aims to embed AI into the platform’s core decision-making processes, allowing it to adapt and optimize everything from test selection to cloud resource management. Bansal argues that true productivity gains come from reducing the time between writing and verifying code in production, rather than just accelerating code generation. The future Bansal envisions includes AI agents as integral parts of the delivery pipeline, capable of reviewing, testing, deploying, and monitoring code, while human developers focus on oversight and complex decision-making, suggesting that static pipelines won't suffice in an AI-driven landscape.
Apr 15, 2026
660 words in the original blog post.
At the HumanX 2026 event, Michael Grinich discussed with Eran Dunsky from AppsFlyer the integration of AI into their marketing analytics platform, focusing on both internal tools and customer-facing features. AppsFlyer, which tracks app installation success from ads, leverages AI to enhance engineering productivity through tools like code generation and automated testing, while also embedding AI into existing user workflows to improve data insights for marketers. Despite the potential of AI, AppsFlyer faces challenges such as data privacy, the critical need for accuracy in marketing attribution, and encouraging user adoption of new AI-driven features. Eran emphasized the importance of seamless integration of AI into existing products, ensuring that improvements are practical and measurable, and maintaining that AI is a capability layer rather than a separate product line.
Apr 15, 2026
544 words in the original blog post.
Apollo GraphQL's schema and type system offer a structured, typed layer over API surfaces, which is crucial for AI agents to understand the relationships and meanings of data, rather than just endpoints. At HumanX 2026, Apollo co-founder Matt DeBergalis highlighted the synergy between GraphQL and Anthropic's Model Context Protocol, emphasizing that while MCP handles the connection mechanics, GraphQL describes the data, enabling agents to construct meaningful queries. This approach allows enterprises to modernize without rewriting legacy systems, by making them accessible to AI through a typed schema layer. As enterprises adopt AI, the focus has shifted not only to technology but also to how people work and collaborate, reshaping workflows and organizational structures. The ability to introspect and query data within systems using tools like Claude Code is seen as unlocking hidden value, with non-developers increasingly building AI agents, showcasing a shift in skill requirements from traditional programming to systems design and problem-solving. This evolution is also impacting procurement, as the ease of building customized solutions is changing the logic from buying to building, marking a transformative period in enterprise technology strategy.
Apr 15, 2026
827 words in the original blog post.
Background checks have long been a cumbersome part of the hiring process, often plagued by delays due to fragmented data sources and manual reviews, which can slow down hiring decisions. At HumanX 2026, Certn's Andrew McLeod discussed with WorkOS CEO Michael Grinich how Certn is revolutionizing this space by employing AI to streamline background screenings, making them faster and more accurate for both employers and candidates. Certn's AI-driven approach addresses traditional challenges by automating data collection, identity verification, and compliance checks, significantly reducing turnaround times and allowing human oversight to focus on complex cases. This shift enables a more efficient onboarding process and is particularly beneficial for companies scaling their hiring operations. The conversation also explored the broader realm of trust infrastructure within organizations, emphasizing the importance of seamless identity verification and access management. McLeod projected that advancements in AI and API accessibility would continue to compress the time needed for background checks, positioning companies that prioritize developer-friendly solutions as industry leaders.
Apr 15, 2026
528 words in the original blog post.
At HumanX 2026 in San Francisco, WorkOS CEO Michael Grinich and Abhi Aiyer from Mastra discussed the challenges and strategies involved in building developer tools for autonomous AI systems. Mastra is an open-source TypeScript framework designed to facilitate the creation of AI agents, workflows, and pipelines by integrating seamlessly into the existing TypeScript toolchain, unlike many AI frameworks that rely on Python. By leveraging TypeScript, Mastra reduces friction for developers already familiar with the language, simplifying deployment and operational overhead. Aiyer likens the current state of AI agent frameworks to the early days of JavaScript frameworks, emphasizing the importance of open-source development and community feedback in shaping successful tools. As the field of AI agent tooling evolves, the focus remains on developing reliable production-grade agents with robust memory architectures and evaluation frameworks, positioning Mastra as a familiar and adaptable option for developers.
Apr 15, 2026
492 words in the original blog post.
Omni, a modern analytics platform, integrates governed BI, ad-hoc SQL, and spreadsheet workflows into one tool, simplifying analytics by incorporating AI agents into its processes. In a conversation at HumanX 2026, Omni CEO Colin Zima discussed the evolving role of AI agents, which enhance but do not replace human oversight, emphasizing their role in accelerating workflows and providing light automation. Zima highlighted the importance of maintaining consistency in analytics interfaces to build intuition and avoid the pitfalls of overly dynamic generative UI. He noted that while AI-generated code is prevalent, human judgment in evaluating and curating this code remains crucial. The company embraces rapid prototyping and aggressive development, with a willingness to discard non-essential features, reflecting a cultural shift towards innovation driven by reduced production costs. This approach underscores a balance between AI's potential to expedite tasks and the necessity of human refinement to achieve quality outcomes.
Apr 15, 2026
695 words in the original blog post.
At HumanX 2026, Saif Gunja interviewed Paul Dhaliwal, the founder of Code Conductor, about the challenges of building developer tools in an era where AI can generate code but struggles to reliably integrate it into production software. Code Conductor aims to bridge this gap by focusing on the orchestration layer, transforming AI-generated code into production-ready output that fits seamlessly within existing codebases, respecting architecture, dependencies, and conventions. Dhaliwal argues that the true value of AI code generation emerges when these tools understand the project context, rather than producing isolated snippets that require manual integration. In a competitive AI tooling landscape, Dhaliwal emphasizes the importance of infrastructure that supports AI-generated contributions, such as code review automation and integration testing. His strategy focuses on enhancing the trustworthiness and shippability of AI-generated code, rather than merely accelerating code generation. The full interview provides deeper insights into Dhaliwal's founding journey and the evolving AI developer tools market.
Apr 15, 2026
452 words in the original blog post.
At HumanX 2026 in San Francisco, Michael Grinich and Ameya Bhatawdekar from Braintrust discussed the complexities of evaluating AI products to determine their effectiveness and reliability. While developing AI features is relatively straightforward, the challenge lies in validating them across numerous edge cases and real-world conditions. Bhatawdekar emphasized that traditional software testing methods are insufficient for AI systems due to their probabilistic nature, requiring specialized evaluation frameworks to ensure improvement over time. Braintrust addresses this by offering tools that allow teams to define evaluation criteria, experiment with datasets, and monitor changes in output quality, advocating for continuous evaluation alongside development. The conversation highlighted that prompt engineering should be treated with the same rigor as any other engineering work, involving version control and systematic testing. This approach helps bridge the gap between a functioning demo and a reliable production system, with evaluation infrastructure playing a critical role. Bhatawdekar argued that evaluation tooling should become as essential to AI development as CI/CD in software, encouraging teams to invest in evaluation pipelines to prevent production regressions.
Apr 15, 2026
513 words in the original blog post.
OAuth 2.0 and OpenID Connect utilize three critical mechanisms—state, nonce, and PKCE—to ensure secure authentication flows by countering distinct attacks at different stages of the protocol. Each mechanism addresses specific vulnerabilities: the state parameter prevents cross-site request forgery during browser redirects, nonce protects against ID token replay attacks by verifying the token's issuance for a specific session, and PKCE ensures the authorization code exchange at the token endpoint is secure, especially for public clients without a client secret. These mechanisms do not overlap and are not redundant, as each neutralizes a unique class of attack, with state verified at the callback, nonce checked within the ID token, and PKCE confirmed at the token exchange. Employing all three mechanisms is crucial to maintaining a robust security posture, as omitting any one creates exploitable gaps, and common mistakes such as using predictable state values or treating PKCE as optional for confidential clients can undermine their effectiveness.
Apr 14, 2026
1,864 words in the original blog post.
Amazon Cognito is a common choice for authentication within the AWS ecosystem due to its seamless integration with AWS services and a free tier for up to 50,000 monthly active users. However, it often proves inadequate for B2B SaaS applications as teams encounter issues like lack of native multi-tenancy, limited enterprise SSO support, rigid UI customization, unpredictable pricing, and strong AWS lock-in. As these constraints become more apparent, engineering teams seek alternatives that better address these challenges. Among the top alternatives, WorkOS stands out for its enterprise-ready features like organization-native multi-tenancy, self-service SSO configuration, and SCIM directory sync, making it ideal for B2B SaaS teams transitioning from Cognito. Other alternatives like Auth0, Keycloak, SuperTokens, and FusionAuth offer varying degrees of flexibility, control, and support, catering to different needs and technical capabilities. Each solution has its trade-offs, with WorkOS offering a straightforward path to enterprise authentication readiness, aligning costs with revenue, and minimizing the need for custom development.
Apr 14, 2026
2,861 words in the original blog post.
Passkeys, based on the FIDO2/WebAuthn standards, offer a secure alternative to traditional passwords by employing asymmetric cryptography and enforcing cryptographic origin binding, thus making credential phishing mathematically unfeasible. Unlike passwords, which can be guessed, intercepted, or phished, passkeys are cryptographically tied to the domain they were created for, preventing their use on fraudulent sites. This is achieved through a dual-layer domain binding mechanism involving the Relying party ID and the origin recorded by the browser, both of which are embedded in signed data during authentication ceremonies. The authentication process involves generating unique asymmetric key pairs stored securely on authenticators, which can be platform-based, like Google Password Manager, or hardware devices like YubiKeys. These authenticators ensure that the private key never leaves the device, and any attempt to use the passkey outside its designated domain results in authentication failure. While passkeys significantly enhance security, they are not immune to threats such as browser compromise or session hijacking, and their recovery or backup poses challenges since they rely on cloud synchronization, which can expand the attack surface. The WebAuthn specification also supports extensions like prf and largeBlob, which enable additional cryptographic functionalities, potentially enhancing client-side cryptography. For developers, correctly implementing WebAuthn involves rigorous server-side verification, but services like WorkOS offer solutions that manage the complexities of the WebAuthn ceremony stack.
Apr 09, 2026
4,251 words in the original blog post.
Modern identity systems, which often rely on OAuth 2.0 and OpenID Connect, are vulnerable to consent phishing attacks that exploit user trust in familiar authorization processes. Consent phishing involves attackers registering legitimate-looking applications with identity providers like Microsoft Entra ID or Google Workspace, then tricking users into granting these applications access to sensitive data by mimicking routine authorization requests. Unlike traditional phishing, this method bypasses usual security measures since it occurs within legitimate domains and involves no password theft. Attackers gain persistent access through tokens that remain valid despite password changes, posing significant risks depending on the permissions granted. Defending against such attacks requires robust OAuth governance, including restricting user consent, implementing review processes for app approvals, auditing existing grants, monitoring for suspicious consent events, enforcing publisher verification, and managing token lifetimes. Security teams must treat OAuth integrations with the same scrutiny as other access control decisions to mitigate this growing threat, emphasizing the need for awareness and operational measures to close security gaps.
Apr 09, 2026
2,113 words in the original blog post.
Every B2B SaaS application typically begins with basic roles like Admin, Member, and Viewer, but as enterprise clients demand more tailored roles such as "Billing Manager" or "External Contractor," developers face the challenge of role explosion, where an excess of roles is created, often cluttering the system. To address this, platforms like Slack, Notion, and Linear have developed distinct strategies for handling permissions within multi-tenant environments. Slack, for instance, uses a combination of system roles, custom roles, and scoped delegation, allowing organizations to assign specific permissions to roles without granting excessive access. Notion employs a layered permissions model with teamspace-level overrides to ensure flexibility and control without overwhelming users with complexity. Linear simplifies this by focusing on team-level delegation, keeping global roles minimal and manageable. These strategies highlight the importance of scoped customization, sensible defaults, and integration with identity providers to efficiently manage roles and permissions. WorkOS, recognizing these patterns, offers solutions that include environment-level defaults and organization-specific roles, while supporting identity provider role assignments to streamline and scale role management effectively.
Apr 09, 2026
2,041 words in the original blog post.
Authentication in Node.js presents unique challenges due to the absence of built-in systems, requiring developers to navigate a broad ecosystem of libraries, middleware, and patterns to construct their own solutions. This flexibility allows for tailored implementations but increases the potential for errors and requires careful decision-making regarding web frameworks, authentication strategies, and security measures. The text outlines various approaches to authentication—custom JWT solutions, Passport.js for strategy-based authentication, session-based systems using express-session, and modern auth libraries like Better Auth—each with distinct benefits and trade-offs in terms of complexity, security, and maintenance. Additionally, managed authentication providers, such as WorkOS, offer comprehensive solutions that handle infrastructure, enterprise features, and security, allowing developers to focus on product development. Security considerations, including protection against prototype pollution, supply chain attacks, event loop blocking, and CSRF, are emphasized, with recommendations for best practices in password hashing, session management, and token handling to ensure robust authentication in production environments. The text underscores the importance of aligning authentication strategies with long-term application goals, whether opting for in-house development or leveraging managed services.
Apr 09, 2026
4,695 words in the original blog post.
PropelAuth is a B2B-focused authentication provider known for its pre-built UIs and organization management features, appealing particularly to early-stage startups. However, as applications scale, its limitations, such as the absence of advanced threat detection and fine-grained authorization, prompt teams to seek alternatives. These alternatives include WorkOS, Firebase Authentication, Supabase Auth, Ory, and Stack Auth, each offering distinct advantages and trade-offs. WorkOS is highlighted as the most comprehensive solution for B2B SaaS applications, providing enterprise-level features like SSO, SCIM, and audit logs without feature gating. Firebase is recommended for those already using Google Cloud, while Supabase Auth appeals to developers seeking an integrated backend. Ory offers open-source flexibility for teams with infrastructure expertise, and Stack Auth caters to those wanting an open-source, Next.js-native option. The choice of an alternative depends on specific requirements, team size, and growth trajectory, with WorkOS emerging as a robust option for teams needing enterprise features and managed reliability.
Apr 08, 2026
2,483 words in the original blog post.
Algorithm confusion represents a significant vulnerability in the use of JSON Web Tokens (JWT), arising from the JWT specification's allowance for tokens to carry metadata about verification methods. This vulnerability allows attackers to manipulate the algorithm specified in the token header, thereby bypassing authentication without needing access to private keys. Despite being recognized since 2015, these vulnerabilities persist due to subtle complexities that can mislead developers. A classic example involves an attacker changing the algorithm from RS256 to HS256, exploiting the fact that an RSA public key can be misused as an HMAC secret, leading to successful token forgery. Further issues arise with the "alg: none" attack and JWKS injection, where insufficient validation allows attackers to manipulate the verification process. Real-world cases have demonstrated these vulnerabilities in popular JWT libraries across programming ecosystems. Effective defenses include explicitly specifying acceptable algorithms, ensuring key-type and algorithm alignment, and avoiding reliance on token-provided key references. The underlying issue is a broader problem of cryptographic agility, where flexibility in algorithm choice can introduce vulnerabilities if not carefully managed. The recommendation is to pin algorithms, enforce key type agreement, and maintain updated libraries to ensure secure JWT verification.
Apr 08, 2026
1,664 words in the original blog post.
In September 2025, an npm package named postmark-mcp was published, mimicking the official Postmark Labs MCP server with a near-perfect replica, including a plausible README and functional email capabilities. The package gained trust over 15 versions before introducing a line of code that secretly forwarded emails to an external address, highlighting vulnerabilities associated with agentic supply chains, where the runtime environment, unlike traditional supply chains that focus on build time, becomes the target. The rapid expansion of the MCP ecosystem has outpaced its security infrastructure, with numerous security vulnerabilities reported due to missing input validation, absent authentication, and blind trust in tool descriptions. The text emphasizes the need for robust security practices, including verifying server identity, pinning and validating tool definitions, and sandboxing third-party servers to mitigate risks. It also stresses the importance of ongoing review processes, considering both self-hosted and third-party hosted platforms for MCP servers to ensure security. Moreover, the article underscores the necessity of layering identity scoping, supply chain verification, and invocation policy controls to secure agentic applications effectively.
Apr 08, 2026
2,715 words in the original blog post.
Adversary-in-the-Middle (AiTM) attacks have emerged as a significant threat to the security of multi-factor authentication (MFA), which was once considered a strong defense against credential theft. Unlike traditional phishing attacks, AiTM attacks involve a reverse proxy server positioned between a user and a legitimate service, allowing attackers to capture session cookies and bypass MFA. This method has gained traction due to its effectiveness and accessibility, with phishing kits and frameworks making it easier to execute these attacks. Despite MFA being enabled, a large number of accounts have been compromised through AiTM attacks, highlighting the need for enhanced security measures. Effective detection and mitigation strategies include phishing-resistant authentication methods like passkeys, real-time behavioral detection, and continuous access evaluation. These strategies aim to close the gap that AiTM exploits by preventing the interception of credentials and replay of sessions, reducing the impact of such attacks on organizations.
Apr 07, 2026
4,472 words in the original blog post.
Choosing the appropriate signing algorithm for JSON Web Tokens (JWTs) is crucial for system security, key management, and architectural flexibility. The two common algorithms, HS256 and RS256, employ different cryptographic methods: HS256 uses symmetric signing with HMAC-SHA256, where the same secret key is used for both signing and verification, making it well-suited for single-service applications. However, RS256, an asymmetric algorithm using RSA-SHA256, is preferable for microservice and distributed architectures, as it allows only the private key holder to create valid signatures while the public key can verify them. This separation prevents compromised services from forging tokens and is essential when external parties need to verify tokens. RS256 can also leverage the JWKS standard for easy key rotation, although it is slower than HS256. Security considerations include avoiding algorithm confusion attacks by specifying the expected algorithm explicitly in the verification logic and managing key exposure risks. Performance benchmarks show HS256 is faster for signing, but RS256 is increasingly recommended, especially in scenarios requiring robust key management and cross-boundary token verification, where ES256 is also an emerging alternative due to its efficiency and compactness.
Apr 07, 2026
1,648 words in the original blog post.
Building a SaaS product that targets businesses necessitates enterprise-grade identity and access management (IAM) features such as authentication, role-based access control, and audit logging from inception. By 2026, with the rise of AI agents and the MCP protocol, the standards for being "enterprise-ready" have escalated, making it critical to select an appropriate IAM provider instead of developing in-house solutions. The complexity of managing identity systems, including SSO with multiple identity providers, SCIM provisioning, and adaptive security measures, can be overwhelming and costly if handled internally. The article highlights the importance of choosing the right IAM provider to mitigate security risks, ensure compliance, and reduce costs, while offering a detailed comparison of the top five IAM solutions in 2026: WorkOS, Okta, Microsoft Entra ID, Ping Identity, and Ory. Each provider offers unique features tailored to specific environments, from WorkOS's developer-friendly APIs for fast integration to Ory's open-source, modular architecture for complete control. The evaluation criteria include integration speed, pricing models, feature breadth, machine identity readiness, and reliability at scale. The choice largely depends on the target audience, the complexity of deployment environments, and the necessity for rapid upmarket movement, with WorkOS recommended for most SaaS teams seeking a streamlined path to enterprise readiness.
Apr 07, 2026
3,400 words in the original blog post.
The text discusses the critical risk of identity and privilege abuse in agentic applications, specifically highlighting the issue of granting agents excessive access through shared credentials or static API keys. It emphasizes the importance of establishing agents as first-class principals with their own scoped identities and permissions, separate from the users who trigger their actions. By implementing a system where every agent has its own identity and scoped credentials, organizations can significantly reduce the potential for security breaches and misuse. The guide outlines anti-patterns like borrowing user sessions and sharing service accounts, and suggests best practices such as role-based access control (RBAC), fine-grained authorization, and temporal scoping of credentials to minimize risks. It also covers the importance of audit logging for tracking agent actions and suggests incremental migration strategies for existing systems to transition from over-permissioned to properly scoped access. The overarching message is that by fixing identity and authorization issues first, the impact of other security risks is diminished.
Apr 06, 2026
2,932 words in the original blog post.
Recent months have highlighted significant vulnerabilities in Security Assertion Markup Language (SAML) implementations, impacting a wide range of systems from open-source libraries to enterprise network appliances. Notable incidents include a critical memory disclosure flaw in Citrix NetScaler, a full authentication bypass via XML parsing inconsistencies in Ruby and PHP SAML ecosystems, and a denial-of-service vulnerability in Cisco Secure Firewall. These vulnerabilities often stem from the complex XML parsing surface inherent in SAML, which involves intricate processes like XML digital signatures and parser behavior. The pattern observed is that identity infrastructure, particularly SAML, remains a high-value target due to its foundational role in issuing tokens and managing identity federation across services. While patches have been released for these vulnerabilities, the persistent nature of these issues suggests that relying on SAML's XML-based architecture poses ongoing security challenges. Consequently, organizations are advised to audit their SAML dependencies, patch edge devices promptly, and consider alternative protocols like OIDC/OAuth 2.0 for new integrations to mitigate these risks.
Apr 06, 2026
1,945 words in the original blog post.
Laravel's authentication system, one of its most robust features, is designed for a seamless developer experience and security by default. The framework includes a complete out-of-the-box authentication system with guards, providers, password hashing, session management, and CSRF protection. For developers, Laravel offers several approaches to implementing authentication: Laravel Breeze for lightweight applications, Jetstream for more comprehensive features including two-factor authentication and API token management, and Fortify for headless authentication in custom frontends. For API authentication, Laravel Sanctum provides a simple solution, while Passport offers a full OAuth2 server implementation. Developers can also consider managed authentication providers such as WorkOS for enterprise features like SSO and directory sync. Laravel emphasizes security with built-in protections against common vulnerabilities such as SQL injection and XSS, and offers strategies for securing session data and passwords. The choice between using Laravel’s native tools or a third-party service depends on the specific needs and scale of the application, balancing rapid deployment with long-term maintenance and enterprise requirements.
Apr 03, 2026
2,779 words in the original blog post.
Multi-factor authentication (MFA) has long been a cornerstone of digital security, blocking 99% of automated attacks, but evolving threats have exposed its vulnerabilities, necessitating a shift in strategy. Attackers are increasingly targeting session tokens, using Adversary-in-the-Middle (AiTM) attacks to bypass MFA by capturing session cookies in real-time, facilitated by commercial tools like EvilProxy and Tycoon 2FA available on platforms like Telegram. With the integration of AI, attackers can automate reconnaissance, craft highly convincing phishing emails, and use deepfakes for voice phishing, significantly enhancing the efficacy of their campaigns. Despite these advancements, MFA remains a critical security measure, but it must be implemented with phishing-resistant methods like FIDO2 security keys, and complemented by continuous session management and OAuth governance. The persistence of legacy fallback methods, inadequate session security, and lack of updated training contribute to the gaps in current MFA deployments, underscoring the necessity for organizations to adapt their strategies to address these sophisticated threats.
Apr 02, 2026
1,654 words in the original blog post.
As developers increasingly rely on terminal-based tools and AI-powered coding agents, the command line interface (CLI) has become a primary interface, necessitating robust authentication methods. Unlike web apps with established authentication patterns, CLIs face unique challenges due to the lack of browser support, which complicates the implementation of secure authentication in environments like Docker containers and SSH sessions. The text outlines and compares four common approaches to CLI authentication: API keys, token files, OAuth Device Flow, and Client Credentials. API keys are straightforward but present security risks as they are long-lived and lack identity expression, making them suitable for machine-to-machine interactions but less ideal for enterprise scenarios. Token files offer improvements with short-lived tokens and per-user identity but require a local browser, adding complexity to credential storage and refresh logic. The OAuth Device Flow decouples browser interaction from CLI, providing a seamless experience in remote environments and inheriting web authentication capabilities such as SSO and MFA. Lastly, Client Credentials cater to machine-to-machine authentication in secure environments, offering short-lived tokens suitable for enterprise security requirements. The text emphasizes the importance of selecting the right approach based on the specific use case, user needs, and security requirements, while also highlighting solutions like WorkOS that provide managed infrastructure for these authentication patterns.
Apr 02, 2026
3,979 words in the original blog post.
AI-powered phishing has rendered traditional multi-factor authentication (MFA) methods largely ineffective due to adversary-in-the-middle (AiTM) attacks, deepfake voice manipulations, and AI-generated lures that significantly increase click-through rates. These attacks can bypass SMS codes, authenticator apps, and push notifications, exploiting the human element required to transmit authentication values. However, FIDO2 security keys and passkeys have proven resistant to such phishing attacks by employing cryptographic origin binding, which ensures that the authentication process is tied to a specific domain and cannot be intercepted by attackers. Despite their effectiveness, the continued vulnerability of organizations often stems from reliance on weaker MFA fallbacks, such as SMS or email recovery options, which attackers exploit. High-profile companies like Google, Cloudflare, and Snap have reported zero successful phishing attacks after adopting FIDO2 security keys and eliminating fallback methods, demonstrating the critical need for organizations to fully commit to these phishing-resistant technologies and avoid maintaining outdated authentication methods that compromise overall security.
Apr 02, 2026
2,179 words in the original blog post.
Rainbow table attacks are a sophisticated method for cracking hashed passwords by utilizing a time-memory trade-off, where attackers precompute chains of hash and reduction operations to efficiently reverse engineer password hashes. This technique, introduced by Philippe Oechslin in 2003, improves upon earlier methods by using multiple reduction functions to prevent chain merging and reduce storage needs, making it a clever compromise between brute force and full lookup table attacks. Despite their past effectiveness, rainbow tables have largely been neutralized in modern systems through the use of salting and advanced password hashing algorithms like bcrypt, scrypt, and Argon2, which introduce computational cost and memory hardness to prevent precomputation and brute-force attacks. However, rainbow tables remain relevant in legacy systems that still use outdated and unsalted hash functions like MD5 or SHA-1, and they serve as a valuable educational tool for understanding the inadequacies of naive security measures and the importance of robust password protection strategies.
Apr 01, 2026
1,868 words in the original blog post.
By 2026, multi-factor authentication (MFA) is a baseline requirement due to the prevalence of credential-based attacks and regulatory demands, with the landscape evolving significantly to include passwordless methods like FIDO2 passkeys, adaptive risk-based authentication, and machine-to-machine identity management. Developers creating SaaS applications must consider how their choice of MFA provider will affect various aspects such as API design, session management, and compliance, as well as their ability to secure enterprise deals. This guide examines five MFA providers—WorkOS, Cisco Duo, Okta Adaptive MFA, Microsoft Entra ID, and Ping Identity—emphasizing factors like API quality, integration complexity, and enterprise readiness that impact developers in production. Essential features include support for modern authentication methods, adaptive policies, and enterprise SSO compatibility, while also addressing concerns like compliance auditing and session security. Each provider offers unique strengths tailored to different enterprise needs, ranging from complete identity platforms to specialized security overlays, with WorkOS standing out for its composable APIs and integrated enterprise authentication stack.
Apr 01, 2026
4,295 words in the original blog post.
As AI agents increasingly perform tasks traditionally handled by humans, the limitations of traditional multi-factor authentication (MFA) systems, which rely on human interaction, have become apparent. The rise of machine identities, which now vastly outnumber human users in enterprises, presents new security challenges as these agents require credentials like API keys and tokens, often poorly managed and unsecured. The Model Context Protocol (MCP) has emerged as a standard for AI agent authentication, using OAuth 2.1 for user-facing flows, but struggles with machine-to-machine scenarios, leading to insecure practices. To address these challenges, industry experts advocate for alternative authentication strategies for AI agents, such as workload identity attestation, behavioral monitoring, and ephemeral tokens. These methods aim to apply the core principle of MFA—requiring multiple independent identity proofs—in a way that suits non-human actors. As organizations grapple with this shift, the importance of treating agent identities with the same rigor as human identities is emphasized to prevent security breaches and ensure accountable, autonomous system deployment.
Apr 01, 2026
1,772 words in the original blog post.
In a significant supply chain attack on March 31, 2026, the widely-used JavaScript package Axios was compromised by North Korean state-sponsored actors, affecting any machine that ran npm install during a short two-to-three-hour window. The attackers took over the npm account of Axios's lead maintainer, published a decoy package, and then used the hijacked account to release malicious versions of Axios, which installed a remote access trojan (RAT) capable of credential theft and persistent access. The attack involved meticulous planning, including an 18-hour pre-staging phase and a dual-tag targeting strategy, highlighting the increasing sophistication of nation-state cyber threats against open-source supply chains. This incident underscores the vulnerability of open-source ecosystems, particularly JavaScript, due to their complex dependency networks and emphasizes the need for stronger security practices such as committing lockfiles, disabling lifecycle scripts, requiring npm publish provenance, and throttling automated dependency updates. Organizations are advised to take immediate remediation steps if affected, including isolating compromised machines, rotating credentials, and auditing access logs, while broader lessons call for a rigorous approach to package management to prevent similar incidents in the future.
Apr 01, 2026
1,248 words in the original blog post.