November 2024 Summaries
5 posts from PropelAuth
Filter
Month:
Year:
Post Summaries
Back to Blog
Creating art using pure CSS provides a unique and challenging way to enhance one's design skills, as demonstrated through the step-by-step process of building a turkey image in a React application. By employing CSS primitives such as position, border-radius, and clip-path, designers can craft various shapes like circles, ovals, and custom polygons, which can be scaled, rotated, and positioned precisely within a container. This method allows for detailed customization of elements like eyes, beaks, and feathers, showcasing how CSS can be used creatively to construct intricate designs. Although this approach may be more unwieldy than using traditional design tools, it offers an opportunity to deepen one's understanding of CSS capabilities and potentially add unique touches to web designs.
Nov 27, 2024
2,099 words in the original blog post.
PropelAuth's Role Mappings feature provides a streamlined solution for configuring SaaS pricing plans by linking them to product roles and permissions, enabling flexibility as users transition between free, paid, and enterprise plans. The tutorial outlines a model for a ticket system inspired by Zendesk, introducing three roles: Owner, Manager, and Agent, each with specific permissions such as managing billing, viewing and exporting reports, and accessing live agent activity. The guide demonstrates how to implement these roles using PropelAuth's system by renaming default roles, defining permissions, and setting up role mappings for each pricing tier. It highlights the ease of assigning organizations to specific plans through role mappings, ensuring that access to features is appropriately managed as users upgrade between plans. This approach not only simplifies the process of managing user access and permissions but also allows for customization to meet the evolving needs of applications.
Nov 26, 2024
1,163 words in the original blog post.
The latest release of a base Python library, along with updates for framework-specific libraries for FastAPI, Flask, and Django Rest Framework, introduces significant changes, including enhanced typing support and new APIs. The update improves type hinting, transforming responses from dicts to explicit datatypes, which may result in breaking changes for certain usage patterns. Enhancements to the User class allow for more straightforward permissions checking and easier mocking/testing by enabling direct functions on the User object. The release also includes new APIs for managing user sessions, setting up SAML links, and handling pending invites, alongside a feature gating example that demonstrates programmatically enforcing permissions based on subscription plans using role mappings. These updates aim to streamline user authentication and permissions management, especially during critical growth phases for B2B SaaS companies, by allowing seamless integration of advanced features like SAML and SCIM without complicating code structure.
Nov 25, 2024
683 words in the original blog post.
The tutorial provides a comprehensive guide on securing a GenAI image generation service using Node.js, Express, and PropelAuth, which facilitates API key validation and user management. It details setting up a system for users to sign up for a free 7-day trial, upgrade to a paid plan, and generate images with validated API keys, with trial expiration dates checked before processing requests. The guide outlines creating an Express API with endpoints to simulate Stripe payment processing and image creation, utilizing PropelAuth’s API Key Authentication and custom user properties to manage user plans. The tutorial also explains setting up a Stripe webhook to update user plans based on subscription events and implementing an image creation endpoint to validate API keys and user eligibility based on their plan or trial status. Additionally, it highlights the use of environment files for secure API key management and concludes with bonus insights on tracking API key signups through PropelAuth's user audit logs, offering a practical approach to implementing a secure and efficient user authentication and management system for API services.
Nov 18, 2024
3,202 words in the original blog post.
This tutorial demonstrates how to develop a multi-tenant Next.js 14 application for generating digital coupons using OpenAI's API, secured with PropelAuth for authentication. The application allows authorized users, specifically grocery store managers, to create on-demand digital coupons by entering a discount percentage and assigning a store name, with the frontend and backend components built on Next.js. PropelAuth is integrated to ensure only authorized personnel can access the coupon generation feature, utilizing roles and permissions to restrict access to store managers and owners, while also protecting the API endpoint. The process involves setting up user authentication, implementing frontend form handling, and securing API requests by verifying user roles and organization affiliations, with the complete code available on GitHub for further exploration and customization.
Nov 06, 2024
2,489 words in the original blog post.