Home / Companies / WorkOS / Blog / January 2025

January 2025 Summaries

29 posts from WorkOS

Filter
Month: Year:
Post Summaries Back to Blog
Distillation is a technique used in machine learning to create smaller, faster, and more efficient versions of neural networks while retaining most of their performance. This process involves two key players: a large teacher model and a smaller student model. The teacher model generates soft labels, which are richer than basic one-hot labels, providing information about the confidence distribution. The student model learns to replicate these distributions, gaining much of the teacher's knowledge in the process. Distillation leverages logits from the larger teacher model to train the smaller student model, transferring knowledge more effectively than using hard labels alone. A code example is provided to demonstrate this process, but in real-world scenarios, a much larger dataset and careful experimentation with hyperparameters are required. Despite its benefits, distillation has limitations and requires ongoing monitoring and maintenance to prevent issues such as model drift and biases.
Jan 31, 2025 1,016 words in the original blog post.
Passwordless authentication offers a seamless and secure alternative by replacing passwords with technologies like biometrics, single-use codes, and cryptographic keys. Biometrics are widely used and recognized as a more secure alternative to traditional authentication methods like passwords and PINs. However, they come with limitations such as costs, false negatives, bias, and the risk of hackers getting access to biometric data. One-Time Passwords (OTPs) are considered more secure than traditional passwords but have limitations such as network dependence, device dependence, SMS susceptibility, and scalability issues. Magic links offer a low-cost solution with fast and seamless login experiences but rely on user security measures and can be shared or intercepted. Passkeys use public-private cryptographic key pairs to authenticate users and offer high security, ease of use, and eliminate the credentials-sharing issue. However, their adoption is limited by integration and user experience issues. Ultimately, a combination of different technologies such as SSO with biometrics, OTPs, or passkeys may be necessary for the best security and user experience.
Jan 31, 2025 2,772 words in the original blog post.
Your emails are not getting delivered and landing in the spam folder, which can be a serious problem, especially if it's part of the sign-up process. This happens because several variables can affect the result of sending an email, including poor domain reputation, high bounce rates, spikes in sending volume, lack of engagement, and using spam words or all caps. To improve your deliverability, you need to show providers that you're trustworthy by warming up your domain, setting up proper authentication records such as SPF, DKIM, and DMARC, and using a reputable email service provider like Google Workspace or Office 365. When writing content, follow industry best practices, test emails before sending them, and avoid spam triggers such as tracking pixels, URL shorteners, and aggressive punctuation. Additionally, validate your email list, use double opt-in, stay out of blacklists, and ensure you're not sending to people who don't want to receive your emails. By identifying the root cause of the problem and taking the proper action to fix it, you can improve your chances of landing in the inbox.
Jan 30, 2025 1,499 words in the original blog post.
DeepSeek R1 is an open-source large language model (LLM) for conversational AI, coding, and problem-solving. It recently outperformed OpenAI's flagship reasoning model on several benchmarks. To run DeepSeek R1 locally, users can use Ollama, a tool that simplifies the complexities of AI model deployment by offering pre-packaged model support, cross-platform compatibility, and simplicity and performance. The main DeepSeek R1 model is large, but users can also download smaller "distilled" variants, such as 1.5B or 7B, which are optimized for developers who want lighter compute requirements or faster responses. Running DeepSeek R1 locally keeps data private and allows for faster responses without worrying about external dependencies. The tool can be integrated into any workflow and is suitable for commercial use.
Jan 29, 2025 867 words in the original blog post.
Authentik is an open-source Identity Provider (IdP) that enables self-hosted user authentication, single sign-on (SSO), and access controls. It supports industry-standard protocols such as SAML2, OAuth2, OpenID Connect, and LDAP, allowing for integration with a wide range of applications and services. Authentik offers an extensible "flow" system for configurable user journeys, deployment methods including Docker Compose, Kubernetes, and Terraform, and granular policies for access controls. By choosing Authentik over alternatives like Azure/Entra ID or Keycloak, organizations can gain control over their identity infrastructure, simplify single sign-on, and maintain robust governance while reducing complexity and costs compared to managed services.
Jan 28, 2025 513 words in the original blog post.
WorkOS Radar is a comprehensive solution that offers device fingerprinting, intelligent rate limiting, and out-of-the-box detections for bot detection and prevention. It automatically blocks common threats like credential stuffing and brute force attacks, with flexible settings that can be tailored to your app. Castle is another robust solution that uses AI scoring, whitelist/blacklist, custom rules, and behavioral analysis to detect and prevent fraud. Both solutions offer more features than Auth0, Stytch, and Arcjet, which are more basic and rely on IP addresses, making them prone to false positives. When choosing a solution, consider the fees, implementation time, and the sturdiness of the defenses offered.
Jan 27, 2025 2,248 words in the original blog post.
DeepSeek-R1 is a large language model that rivals top-tier AI systems in complex tasks, offering robust reasoning, mathematics, and coding capabilities. Its emphasis on local execution, backed by advanced quantization techniques, allows it to run on consumer-grade hardware with minimal memory overhead, making it accessible to individuals and startups without enterprise-scale resources. This enables Democratization of AI adoption across academic and emerging markets. The model's reinforcement learning-driven training pipeline fosters advanced reasoning behaviors, such as self-verification, reflection, and extended chain-of-thought generation, positioning it as a practical alternative for deployments outside of cloud environments, offering advantages like privacy, edge computing, and cost-effectiveness. DeepSeek-R1 has demonstrated robust scalability and achieves state-of-the-art performance across various benchmarks, solidifying its position as a formidable challenger to established models in the AI landscape.
Jan 23, 2025 839 words in the original blog post.
Ente Auth is a modern, secure, and user-friendly two-factor authentication (2FA) solution designed to safeguard online accounts with minimal hassle. It's part of the broader Ente ecosystem, which also includes Ente Photos, and is fully open source, built with privacy and security as core guiding principles. Ente Auth leverages the same security foundations as Ente Photos and was created when the team saw a need for an open-source, end-to-end encrypted authenticator. The solution offers benefits such as being open source and audited, prioritizing user privacy, and having an ease of use interface accessible to users of all technical levels. It supports various platforms including iOS, Chrome extension, desktop, and Linux distributions, ensuring comprehensive cross-platform coverage. Ente Auth stands out from competitors like Authy and 2FAS by offering a more transparent alternative with polished user experience and comprehensive audits. Users praise its reliable performance, straightforward setup, and commitment to open-source values, while some ongoing discussions raise questions about security perspectives.
Jan 23, 2025 627 words in the original blog post.
Shadcn-ui is a set of reusable React components that prioritize accessibility, customization, and developer control. It allows developers to own the code directly, reducing external dependencies and version lock-ins, by utilizing a library called Radix which handles core accessibility requirements such as keyboard navigation, ARIA attributes, and screen-reader compatibility. With shadcn-ui, developers can customize their components using Tailwind CSS, remove or refactor any component with ease, and integrate new styling tokens without rigid design constraints. The framework provides two main installation options: a CLI-based workflow and copy-paste, allowing developers to choose the approach that suits their project best. Additionally, shadcn-ui integrates well with Vercel's v0 platform, which offers generative AI-driven scaffolding for rapid prototyping and customization of Next.js applications.
Jan 23, 2025 497 words in the original blog post.
Google has identified a vulnerability in its "Sign in with Google" flow that could expose sensitive data of failed startups. The vulnerability was uncovered by researcher Dylan Ayrey at Truffle Security, who demonstrated how an attacker can exploit it to gain access to employee information and potentially sensitive data stored in various SaaS products. This can happen when a former employee's email account is re-created on a new domain, allowing the attacker to log into other services using that same account. Google has acknowledged the issue and is working on a fix, but advises service providers to properly close their domains and erase customer data when shutting down operations to prevent such incidents. The company also emphasizes the importance of using unique identifiers instead of relying solely on email claims.
Jan 22, 2025 575 words in the original blog post.
To implement Single Sign-On (SSO) with JumpCloud, WorkOS, and Node.js, developers need to follow a step-by-step process. This includes installing the WorkOS Node SDK, setting up secrets, configuring the JumpCloud connection, setting up a redirect URI, and testing the connection. The SSO flow involves two main steps: initiating login and handling the callback. Developers can choose between using AuthKit for a customizable login box or building their own login box. Once the connection is set up, developers can test it using various scenarios provided by WorkOS. After successful integration, developers need to handle user sessions, implement logout, add social logins, implement access control, and more. The tutorial provides detailed instructions and resources for implementing SSO with JumpCloud, WorkOS, and Node.js.
Jan 21, 2025 2,473 words in the original blog post.
The Zero Trust security model is a response to the changing work landscape, where traditional perimeter-based security models are no longer effective due to the increasing use of cloud apps and remote work. It assumes that all users, devices, and applications are potentially compromised and requires constant validation of trust. This model has its roots in the 2010 Google Operation Aurora cyber attack, which highlighted the limitations of perimeter-focused security. To implement Zero Trust, companies must adopt a multi-factor authentication approach, such as passwordless logins using passkeys and WebAuthN, and integrate tools like WorkOS for session management, SCIM, and fine-grained authorization. The goal is to make users act paranoid and constantly verify everything, assuming that attackers are already inside the network.
Jan 20, 2025 1,961 words in the original blog post.
Radar's approach to rate limiting uses a combination of traditional methods and device fingerprinting to detect threats. Traditional rate limiting has limitations, such as allowing attackers to bypass IP-based limits by rotating through proxy networks, blocking legitimate users behind shared IPs, and failing to catch distributed attacks. Radar takes a more sophisticated approach by analyzing browser and system characteristics, network behavior patterns, authentication attempt timing, geographic locations, and device fingerprinting. This allows for progressive rate limiting that becomes stricter as suspicious behavior continues, distinguishing between brute force attempts and legitimate authentication failures. The system maintains service availability during attacks by restricting the specific device fingerprint while allowing other clients to continue with normal access. Radar works in real-time, evaluating each authentication attempt as it happens, and can take various actions such as blocking, challenging, notifying administrators, or logging forensic data. Overall, Radar represents a fundamental shift from traditional methods of rate limiting and brute force protection, providing more effective stops against attacks while reducing false positives and keeping applications accessible to legitimate users.
Jan 17, 2025 595 words in the original blog post.
Device fingerprinting is a technique used to create a unique identifier for a device by collecting various subtle signals from its hardware and software. This allows service providers to identify devices without relying on cookies or explicit identifiers, making it a powerful tool in web security and fraud prevention. The technique involves gathering information such as browser type, screen resolution, timezone settings, and other technical artifacts that are unique to each device. Device fingerprinting can be used to detect malicious activity, prevent bot attacks, and enhance authentication workflows, while also raising concerns about user privacy. To implement device fingerprinting responsibly, it is essential to use multiple signals, keep detection methods current, be transparent in data collection practices, and consider using established solutions that maintain privacy standards. As the cat-and-mouse game between security teams and bad actors continues, device fingerprinting remains a vital tool for balancing robust security with user privacy.
Jan 16, 2025 1,517 words in the original blog post.
When a B2B SaaS has achieved product-market fit, its users will start selling for it, usage patterns become clear and repeatable, and community engagement grows organically. This clarity is indicated by steady or increasing API call volumes, deep integration with various features or endpoints, and an active feedback loop where developers invest in the product's evolution. Once PMF is achieved, the company should "go upmarket" to serve larger, more complex organizations with stricter security and compliance requirements, which often involve enterprise-level customers with higher budgets, longer sales cycles, and more advanced feature expectations. To succeed, companies must map out their enterprise feature roadmap, elevate their documentation, stabilize their infrastructure, stay true to their roots, and widen their lens to meet the market's undeniable pull while maintaining a vibrant developer-focused community.
Jan 16, 2025 962 words in the original blog post.
WorkOS Radar is a real-time protection system that makes split-second decisions about every authentication attempt hitting an application. It builds on top of AuthKit, WorkOS's authentication SDK, and can be activated by contacting the WorkOS team. Radar uses device fingerprinting to identify bot attacks, brute force attempts, "impossible travel" (suspiciously rapid changes in location), stale account compromise, unrecognized devices, and custom restrictions based on IP ranges, user agents, device types, and individual users. The system tracks authentication activity in real-time, providing a comprehensive view of the application's security through its dashboard, which includes charts, detailed cards, and an event list that can be filtered by detection type, action taken, or specific users. Radar's sophisticated decision-making process evaluates each authentication attempt through a multi-stage pipeline to detect threats and take appropriate action based on the organization's security settings.
Jan 16, 2025 721 words in the original blog post.
WorkOS Radar's bot detection system is designed to counter modern bots that have evolved beyond traditional detection methods, using a device fingerprinting approach that analyzes multiple characteristics of devices attempting to authenticate. This creates a unique signature that persists even when the bot changes IP addresses or user agents, making it difficult for bots to fake consistently. The system then evaluates authentication attempts across multiple dimensions, including behavioral patterns, timing analysis, consistency checks, and historical context, to build a comprehensive risk profile. When detecting bot activity, Radar flows through a decision pipeline that can block the attempt, allow it with logging, notify administrators or users, or take no action if no suspicious patterns are detected. The system provides actionable visibility into device fingerprint details, classification signals, geographic information, and actions taken, helping organizations understand and control automated interactions with their authentication systems.
Jan 16, 2025 498 words in the original blog post.
To implement Single Sign-On (SSO) with SAML using Okta as the identity provider, Python as the programming language, and WorkOS as the authentication middleware, follow these steps. First, install the WorkOS Python SDK to your app, set secrets such as API keys and client IDs, configure an Okta connection at the organization level, create a redirect URI, and set up the frontend with React or any other framework of choice. Next, decide whether to use AuthKit for a customizable login box or build your own login box using the standalone SSO API. For AuthKit, initiate the login process by generating an authorization URL, handle the callback where WorkOS sends back an authorization code, and exchange it for a token and user profile information. Finally, test the connection with various scenarios such as service provider-initiated SSO or identity provider-initiated SSO, and follow up tutorials on handling user sessions, implementing logout, adding social logins, access control, provisioning users automatically, and more.
Jan 15, 2025 2,579 words in the original blog post.
To set up Single Sign-On (SSO) with WorkOS, Okta, and Ruby, follow these steps: Install the WorkOS Ruby SDK, set secrets for authentication, configure an Okta connection to enable SSO, create a redirect URI, set up the frontend with React or your preferred framework, set up the backend using either AuthKit or standalone SSO API, test the connection using default Test Organization and active SSO connection, and handle the user's session. After setting up SSO, you can also implement logout, add social logins, access control, provisioning users automatically, handling failed authentication events, and more. For more detailed instructions, follow the Okta SAML integration guide, check out example applications, admin portal documentation, migration guides, passkeys, managing SAML X.509 certificates, and user management quickstart resources.
Jan 14, 2025 2,139 words in the original blog post.
The tutorial provides a step-by-step guide on how to build a user management dashboard with WorkOS and Node.js. The process involves installing the WorkOS Node SDK, setting secrets such as API keys and client IDs, and configuring CORS for widget authentication. Two options are presented: using WorkOS Widgets or implementing the functionality manually via the User Management Authentication API. The tutorial covers listing users, removing users, updating user roles, inviting new users, and revoking invitations. It also provides resources for further learning on topics such as handling sessions, access control, provisioning users, and more.
Jan 13, 2025 1,808 words in the original blog post.
This tutorial demonstrates how to implement row-level security in a Next.js application using WorkOS Fine-Grained Authorization (FGA) integrated with Postgres. The system is designed to ensure that users only see tickets they're authorized to view, with different permissions for admins, support agents, and customers. It integrates traditional database relationships with FGA's permission model using the Prisma ORM to interact with the Postgres database. The system establishes a basic relationship schema between organizations, users, and tickets, and then maps these relationships to FGA permissions. Two common patterns for implementing row-level security are discussed: pre-filtering and post-filtering. Pre-filtering is recommended and involves querying WorkOS FGA first to get authorized resource IDs, which are then used in the SQL WHERE clause. The system includes API tests that verify its permission model works correctly, and it provides a flexible permission modeling approach with built-in inheritance and relationship rules.
Jan 10, 2025 1,294 words in the original blog post.
This guide explains best practices for keeping sensitive information, or "secrets," secure in modern applications. The foundation of secrets management is understanding what constitutes a secret and how it can be exploited if exposed. Secrets include API keys, database credentials, SSH and encryption keys, and passwords. Preventing secrets from being committed to repositories is crucial, and tools like pre-commit scanning and version control security features can help catch exposed secrets before they reach the repository. Environment management is also key, using environment variables to define and load sensitive values across local development and production systems. As applications grow in complexity, modern secrets managers offer advanced features like automated rotation, fine-grained access control, and dynamic secrets. Scaling secrets management requires minimizing hardcoded secrets, automating rotation, auditing access, and integrating with infrastructure-native solutions. Centralized tools can simplify the process of managing secrets across multiple environments and stakeholders, ensuring compliance with standards like SOC 2 and GDPR. Effective secrets management costs less than a breach but requires a comprehensive approach that evolves with your organization.
Jan 10, 2025 1,434 words in the original blog post.
To implement Single Sign-On (SSO) with WorkOS, Okta, and Go, you need to follow a multi-step process that involves installing the SDK, setting secrets, configuring the Okta connection, creating a redirect URI, setting up the frontend, and testing the connection. The SSO process can be implemented using either AuthKit or by building your own login box. With AuthKit, you use the User Management API to handle authentication, while without it, you use the standalone SSO API. After setting up the SSO connection, you need to test it using different scenarios such as service provider-initiated SSO and identity provider-initiated SSO. To further secure your application, you should implement logout, add social logins, access control, provisioning users automatically, handle failed authentication events, and more. The process also involves handling the user's session securely with tokens such as an access token and a refresh token.
Jan 09, 2025 2,079 words in the original blog post.
To implement Log in with Google using Go and WorkOS, you need to follow these steps: first, install the WorkOS Go SDK and set up your environment by storing sensitive values as managed secrets. Next, configure the Google connection by getting the Redirect URI from the WorkOS dashboard and setting it up on the Google side by creating an OAuth app and adding the Redirect URI. After that, add client credentials to WorkOS and configure a redirect URI. Finally, set up the frontend and backend by using React for the frontend and implementing authentication logic in your Go app. Depending on whether you choose to use AuthKit or build your own login box, you will use different APIs. Once authenticated, you can extract the authorization code, exchange it for a token, and handle the callback to complete the authentication process. You may also want to add a custom Google OAuth domain if needed, and then proceed with handling the user's session, implementing logout, adding SAML SSO, implementing access control, provisioning users automatically, and more.
Jan 07, 2025 1,784 words in the original blog post.
The tutorial provides a step-by-step guide on implementing Single Sign-On (SSO) using SAML, Entra ID (Azure AD), Node, and WorkOS. It covers two different implementations: one with AuthKit, a customizable login box powered by WorkOS and Radix, and another where the user builds their own login box. The tutorial assumes an Entra ID account, a WorkOS account, and a Node.js app are already set up. The guide walks through configuring the Entra ID connection, setting up the frontend, setting up the backend, and testing the connection. It also provides resources for further learning, including user management quickstart guides, SSO quickstart documentation, and example applications.
Jan 03, 2025 2,732 words in the original blog post.
We shipped our auth server to your browser with WebAssembly (WASM), delivering a playground experience that allows developers to experiment freely without spinning up backend environments. This approach solves challenges around resource management and user isolation, providing an excellent developer experience with zero setup, instant feedback, and seamless collaboration capabilities. However, it's not suitable for production deployments due to limitations such as lack of data consistency across distributed systems, high-performance caching layers, multi-tenant data isolation, real-time synchronization between multiple clients, and integration with existing authentication systems. The playground uses a simplified storage layer using SQLite and avoids external network calls, while the production FGA service continues to run as a traditional backend service.
Jan 03, 2025 1,480 words in the original blog post.
Multitenant authentication refers to running a single application instance that serves multiple customer organizations. This approach reduces operational costs but increases complexity by requiring isolation while supporting organization-specific authentication needs. Common scenarios include cross-organization access, organization-specific security policies, and access management. To implement multitenant authentication, teams can choose between building custom admin tooling, manual configuration, or using a dedicated authentication platform like WorkOS, which provides pre-built solutions for enterprise auth management, including dynamic SSO configuration, SCIM provisioning, and self-service administration. However, teams often make common pitfalls such as assuming single organization membership models, missing organization context, hard-coding SSO configurations, mixing authentication contexts, underestimating directory sync, and insufficient access controls. To get started building multitenant auth, teams can leverage platforms like WorkOS to focus on core product features instead of wrestling with authentication infrastructure.
Jan 03, 2025 1,268 words in the original blog post.
The AuthQuake vulnerability affects over 400 million Office 365 users, exposing them to a brute force attack on Microsoft's multi-factor authentication system through time-based one-time passwords (TOTPs). The vulnerability arises from the lack of proper rate limiting and extended validity period for TOTP codes, allowing attackers to bypass security measures. Organizations are advised to strengthen their authentication systems by moving beyond traditional TOTPs, implementing proper monitoring and alerts, and considering third-party authentication providers. Microsoft acknowledged the issue promptly and deployed a temporary fix followed by a permanent solution, highlighting the importance of regular security audits, strict adherence to security best practices, rapid adoption of stronger authentication methods, and clear incident response procedures.
Jan 03, 2025 787 words in the original blog post.
This tutorial provides step-by-step instructions on how to implement Log in with GitHub functionality in an app using Go and WorkOS. The process involves installing the WorkOS Go SDK, setting secrets, configuring a GitHub connection, providing client credentials to WorkOS, configuring a redirect URI, and setting up the frontend and backend. The tutorial covers both cases where AuthKit is used and when building a custom login box. It also provides resources for further learning on handling user sessions, implementing logout, adding SAML SSO, access control, provisioning users automatically, and more.
Jan 02, 2025 1,485 words in the original blog post.