June 2022 Summaries
9 posts from PropelAuth
Filter
Month:
Year:
Post Summaries
Back to Blog
Walk-up usability describes systems that allow new users to become effective with little or no training, contrasting intuitive interfaces such as elevators with complex environments such as airplane cockpits. Applied to software development, it concerns how quickly developers can understand and work productively within a codebase, library, or external API, with poorly documented or confusing designs creating barriers for users and customers. While clean code, sound design patterns, and technical-debt reduction support usability, a central principle is designing interfaces that make mistakes difficult or impossible. A TypeScript API-response example illustrates this approach: replacing optional loading, data, and error fields with a discriminated union forces developers to check a response status before accessing data or errors, allowing the type system and autocomplete tools to guide correct usage. By building such safeguards into internal codebases and public APIs, teams can help future developers work more reliably and effectively from the outset.
Jun 30, 2022
593 words in the original blog post.
Django REST framework extends Django to simplify Python API development by providing generic views that can automatically handle paginated listings, CRUD operations, validation, serialization, and database migrations with minimal code. PropelAuth integrates with Django REST framework by adding permission classes to API views, allowing access to be restricted to authenticated users with specified organization roles, such as administrators. Its configuration can identify an organization through query or path parameters, while PropelAuth manages authentication, organization administration, invitations, and role-based access control externally. Additional integration options include SSO, magic links, and frontend setup guidance.
Jun 29, 2022
349 words in the original blog post.
Authentication establishes the identity of users or systems, and web applications generally need mechanisms for both account creation and recognizing returning users. Sending an email address and password with every request, often called Basic Authentication, is simple but impractical for browser-based applications because repeatedly entering or storing passwords creates usability and security concerns, though it can suit some command-line services. Using an unchanging, random user ID as proof of identity is more dangerous because a leaked ID cannot easily be revoked without creating a new account. A stronger common approach issues revocable, expiring, opaque session tokens, usually stored in cookies and validated against a database, allowing users to remain signed in while enabling logout and token invalidation. JWTs offer a stateless alternative that can avoid database lookups, but authentication remains difficult because secure implementations require careful password storage, breached-password protections, timing-attack defenses, privacy-conscious errors, safe cookie settings, and awareness of library vulnerabilities; authorization, which controls what authenticated users may do, is a separate concern.
Jun 28, 2022
1,165 words in the original blog post.
A tutorial demonstrates how to build an API-first, multi-tenant B2B URL shortener with FastAPI, SQLite, dbmate, PugSQL, and PropelAuth. It uses dbmate migrations to create and later extend a URLs table, PugSQL to map SQL files into Python-callable queries without an ORM, and FastAPI routes to create random unique short links and redirect visitors to their original URLs. PropelAuth adds authenticated users, organization membership checks, and role-based authorization, allowing organization members to create and view shared links while limiting deletion to administrators. The walkthrough also highlights FastAPI’s generated OpenAPI documentation for testing authenticated endpoints and emphasizes how the selected tools separate database migration, SQL access, authentication, and API concerns while enabling further extensions such as per-link analytics.
Jun 22, 2022
1,836 words in the original blog post.
Authentication terminology often overlaps, but key distinctions clarify how identity systems work: authentication verifies who a user is, while authorization determines what that verified user may access or do, such as deleting only their own content. Workforce identity manages internal employees, whereas customer identity and access management (CIAM) handles external product users. SAML enables identity information and access relationships between systems, commonly allowing employees to use their company identity provider to access a business’s product, while SCIM synchronizes user and group data between systems to automate onboarding, offboarding, and permission updates. Single sign-on (SSO) broadly describes logging in once to access multiple services, including social logins and enterprise SAML connections. OAuth allows users to delegate limited access to third-party applications without sharing passwords, while OpenID Connect (OIDC), built on OAuth, supports authentication and is often used similarly to SAML for workforce-based product access. The discussion emphasizes that requests for features such as SSO should be clarified because they can involve different protocols and intended workflows.
Jun 16, 2022
1,036 words in the original blog post.
Authentication is presented as a necessary but potentially complex product requirement whose implementation should depend on an organization’s stage, expertise, security needs, and priorities. Hobbyists are encouraged to use free or low-effort external providers rather than spend substantial time building and securing basic login systems, particularly because weak authentication can expose users to threats such as brute-force attacks and insecure password storage. Startup technical founders may build custom authentication when they have relevant experience and highly specialized requirements, but external services may be preferable for lean teams or security-sensitive industries. Nontechnical founders are advised that professional capabilities such as magic links, multifactor authentication, single sign-on, brute-force protection, password detection, and SAML can require significant development effort, making third-party providers a practical option. Midsize companies and enterprises are urged to periodically reassess existing systems rather than retain them solely because of past investment, considering whether improved security, scalability, branding customization, and login performance could enhance customer experience and business growth.
Jun 13, 2022
1,232 words in the original blog post.
Handwritten JavaScript or TypeScript API clients can drift from backend changes and introduce errors such as missing parameters or outdated routes, especially as teams and client applications grow. OpenAPI addresses this by defining an API contract that can generate compatible servers and clients, while FastAPI offers a code-first alternative by automatically producing an OpenAPI specification from Python route definitions, including parameters and response schemas. This enables a workflow in which developers update backend routes first, derive the OpenAPI document from the running service, and then generate clients from that document. The process can be automated with GitHub Actions on every push by installing dependencies, starting the FastAPI server, downloading its openapi.json file, using OpenAPI Generator to create a TypeScript fetch client or other language-specific clients, and committing, publishing, or otherwise distributing the updated client.
Jun 10, 2022
793 words in the original blog post.
Role-based access control (RBAC) manages user permissions according to hierarchical or functional roles, ranging from simple Admin and Member structures to highly customizable systems. Pipedream and Notion illustrate how two-role models can provide clear, low-friction access management, while adding Owner roles can restrict sensitive actions such as organization deletion or billing administration and Guest roles can limit access for contractors or interns, as seen in Slack. Organizations needing more specialized permissions may use parallel functional roles such as GitHub’s billing and security managers, or permit custom roles as Datadog and AWS do. Although granular systems can serve complex enterprise needs, the recommended approach is to begin with the simplest role structure that meets current requirements, since additional roles increase both administrative burden and user complexity and are easier to add later than remove.
Jun 07, 2022
800 words in the original blog post.
Authentication needs commonly progress from collecting early interest through waitlists, to invite-only onboarding, public email-and-password signups, and more sophisticated authorization such as role-based access control and organization management for B2B or multi-tenant products. As companies grow, they may also add conversion-oriented features including social logins, passwordless magic links, and improved signup design, while larger enterprise customers often require SAML or OIDC integrations for centralized employee provisioning and offboarding. Security requirements likewise expand over time, from safe password and token handling to two-factor authentication and defenses against brute-force and credential-stuffing attacks. The material argues that teams should anticipate these evolving requirements early to avoid provider limitations or repeated authentication rebuilds, and presents PropelAuth as a service designed to support these stages with configurable workflows, team permissions, enterprise integrations, and built-in security features.
Jun 02, 2022
1,278 words in the original blog post.