-
Notifications
You must be signed in to change notification settings - Fork 5
Update README files to align with other Auth0 SDK repos and v1.0.0 release #255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
fdb450d
feat(docs): update readmes with recent updates
SurajThotakura ab86912
fix(docs): inconsistencies
SurajThotakura 8bc79b5
feat(docs): add component customization demo video
SurajThotakura e301ed6
fix(docs): replace video with gif
SurajThotakura 3b4260c
fix(docs): gif subtext
SurajThotakura 7939c39
fix(docs): add scripts readme, remove beta version, fix .env rwa readme
SurajThotakura 7368a79
feat: add cdn urls for readme banners
SurajThotakura 6397253
fix(docs): add typedoc reference in the main readme
SurajThotakura 1ada7d0
fix: package json formatting issue
SurajThotakura File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,119 @@ | ||
| # Contributing to Auth0 Universal Components | ||
|
|
||
| We appreciate feedback and contribution to this repo! Before you get started, please see the following: | ||
|
|
||
| - [Auth0's general contribution guidelines](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md) | ||
| - [Auth0's code of conduct guidelines](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md) | ||
|
|
||
| ## Getting Started | ||
|
|
||
| ### Prerequisites | ||
|
|
||
| - Node.js >= 18 | ||
| - pnpm (recommended package manager) - Install with `npm install -g pnpm` or see [pnpm.io/installation](https://pnpm.io/installation) | ||
|
|
||
| ### Installation | ||
|
|
||
| 1. **Clone the repository:** | ||
|
|
||
| ```bash | ||
| git clone https://github.com/auth0/auth0-ui-components | ||
| cd auth0-ui-components | ||
| ``` | ||
|
|
||
| 2. **Install dependencies:** | ||
|
|
||
| ```bash | ||
| pnpm install | ||
| ``` | ||
|
|
||
| 3. **Build all packages:** | ||
|
|
||
| ```bash | ||
| pnpm build | ||
| ``` | ||
|
|
||
| ## Development | ||
|
|
||
| ### Local Development Workflow | ||
|
|
||
| To make and test changes locally: | ||
|
|
||
| 1. Make your desired changes in any of the packages (e.g., `packages/core` or `packages/react`). | ||
|
|
||
| 2. Re-build all packages to apply your changes: | ||
|
|
||
| ```bash | ||
| pnpm build | ||
| ``` | ||
|
|
||
| 3. Navigate to a technology-specific example application in the `examples/` directory (e.g., `examples/react-spa-npm`). | ||
|
|
||
| 4. Configure the required environment variables in a `.env` file as per the example's README. | ||
|
|
||
| 5. Start the development server to see your changes in action: | ||
|
|
||
| ```bash | ||
| pnpm dev | ||
| ``` | ||
|
|
||
| ### Testing | ||
|
|
||
| Running tests: | ||
|
|
||
| ```bash | ||
| pnpm test # Run all tests | ||
| pnpm test:react # Run React package tests only | ||
| pnpm test:core # Run Core package tests only | ||
| ``` | ||
|
|
||
| To run a specific test, go to the relevant package folder and run: | ||
|
|
||
| ```bash | ||
| cd packages/react | ||
| pnpm test organization-details-edit | ||
| ``` | ||
|
|
||
| ### Shadcn Local Development | ||
|
|
||
| 1. Update `registry.json` with your changes. | ||
|
|
||
| 2. Create a new build based on `registry.json`: | ||
|
|
||
| ```bash | ||
| pnpm build:shadcn | ||
| ``` | ||
|
|
||
| 3. Open `docs-site` and serve the registry: | ||
|
|
||
| ```bash | ||
| cd docs-site | ||
| pnpm install | ||
| pnpm dev | ||
| ``` | ||
|
|
||
| 4. Go to your app (e.g., `react-spa-shadcn`) and update the components: | ||
|
|
||
| ```bash | ||
| npx shadcn@latest add http://localhost:5173/r/my-account/user-mfa-management.json --overwrite | ||
| npx shadcn@latest add http://localhost:5173/r/my-organization/organization-details-edit.json --overwrite | ||
| # ... other components | ||
| ``` | ||
|
|
||
| > [!NOTE] | ||
| > The port may differ if other applications are running. | ||
|
|
||
| ## Monorepo Architecture | ||
|
|
||
| This project uses a **monorepo architecture** designed for multi-framework support: | ||
|
|
||
| - **`@auth0/universal-components-core`** (`packages/core/`) - Framework-agnostic core with API services, i18n, schemas, and theme utilities | ||
| - **`@auth0/universal-components-react`** (`packages/react/`) - React components and hooks with `/spa` and `/rwa` entry points | ||
|
|
||
| ## Raise an Issue | ||
|
|
||
| To provide feedback or report a bug, please [raise an issue on our issue tracker](https://github.com/auth0/auth0-ui-components/issues). | ||
|
|
||
| ## Vulnerability Reporting | ||
|
|
||
| Please do not report security vulnerabilities on the public GitHub issue tracker. The [Responsible Disclosure Program](https://auth0.com/responsible-disclosure-policy) details the procedure for disclosing security issues. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,161 +1,96 @@ | ||
| # Auth0 Universal Components for Web | ||
|  | ||
|
|
||
| A comprehensive library of reusable UI components and utilities for Auth0 integrations, built with modern web technologies and designed for scalability. | ||
| Drop-in React components for Auth0 organization management, SSO configuration, and MFA enrollment. | ||
|
|
||
| ## 📖 Documentation | ||
| [](https://www.npmjs.com/package/@auth0/universal-components-react) | ||
| [](https://github.com/auth0/auth0-ui-components/blob/main/LICENSE) | ||
| [](https://www.npmjs.com/package/@auth0/universal-components-react) | ||
|
|
||
| For detailed information on how to use these components and get started with Auth0, please refer to the following resources: | ||
| > [!IMPORTANT] | ||
| > **Early Access**: This feature is currently in Early Access. To learn more, see [Product Release Stages](https://auth0.com/docs/troubleshoot/product-lifecycle/product-release-stages). | ||
|
|
||
| - **[Auth0 Quickstarts](https://auth0.com/docs/quickstarts)**: Official guides for creating and configuring your application on the Auth0 platform. | ||
| - **[Auth0 APIs](https://auth0.com/docs/api)**: Comprehensive documentation for Auth0's APIs. | ||
| - **[Component Documentation](https://auth0-ui-components.vercel.app/)**: Live Storybook showcasing all available components, their props, and usage examples. | ||
| - **[Examples Folder](https://github.com/auth0/auth0-ui-components/tree/main/examples)**: Practical, hands-on sample applications demonstrating how to integrate and use these components in a real project. | ||
| - **[Component Reference](#-component-reference)**: Explore public components available in @auth0/universal-components-react. | ||
| 📚 [Documentation](#documentation) - 🚀 [Quick Start](#quick-start) - 💬 [Feedback](#feedback) | ||
|
|
||
| ## Packages Overview | ||
| <p align="center"> | ||
| <img src="https://cdn.auth0.com/website/sdks/banners/SSOProviderCreateComponent.gif" alt="SSO Provider Configuration" width="700"> | ||
| <br> | ||
| <sub>SSO Provider Create Component</sub> | ||
| </p> | ||
|
|
||
| This project uses a **monorepo architecture** designed for multi-framework support. It is organized into two main types of packages: | ||
|
|
||
| - A framework-agnostic `@auth0/universal-components-core` package that contains all the core logic, services, and utilities. | ||
| - Framework-specific packages (like `@auth0/universal-components-react`) that provide UI components and hooks for a particular technology. This structure allows for the future addition of packages for other frameworks like Vue or Angular. | ||
|
|
||
| ### `packages/core/` | ||
|
|
||
| **@auth0/universal-components-core** - The foundational package containing core utilities and services. | ||
|
|
||
| **What it provides:** | ||
|
|
||
| - 📦 **Internal Services**: Handles all API logic for "My Account" and "My Organization" components, using the "My Account" and "My Organization" SDKs. | ||
| - 🌐 **Internationalization (i18n)**: Contains all translation files for multi-language support and utils. | ||
| - 🛡️ **Schema Validation**: Defines and maintains types for schema validation. | ||
| - 🛠️ **Shared Utilities**: Provides shared functions, TypeScript types, and theme management utilities. | ||
|
|
||
| ### `packages/react/` | ||
|
|
||
| **@auth0/universal-components-react** - React-specific UI components and hooks for Auth0 integrations. | ||
|
|
||
| **What it provides:** | ||
|
|
||
| - ⚛️ **React Components**: Pre-built UI components for Auth0 features (MFA management, user profiles, ,organization management etc.) | ||
| - 🎣 **Custom Hooks**: React hooks for component state management and API interactions | ||
| - 🎨 **UI Elements**: Beautiful, accessible components built with Radix UI and Tailwind CSS, following shadcn design patterns. | ||
| - 🔄 **Providers**: React context providers for managing authentication, theme, and internationalization. | ||
|
|
||
| ## 🚀 Using the Library | ||
|
|
||
| For detailed instructions on how to install and use the components in your project, please refer to the `README.md` file within the specific framework package you are using. | ||
|
|
||
| - **[React Usage Guide](./packages/react/README.md)** | ||
|
|
||
| ## 🛠️ Getting Started (for Contributors) | ||
|
|
||
| ### Prerequisites | ||
|
|
||
| - Node.js >= 18 | ||
| - PNPM (recommended package manager) | ||
|
|
||
| ### Installation | ||
|
|
||
| 1. **Clone the repository:** | ||
|
|
||
| ```bash | ||
| git clone https://github.com/auth0/auth0-ui-components | ||
| cd auth0-ui-components | ||
| ``` | ||
|
|
||
| 2. **Install dependencies:** | ||
|
|
||
| ```bash | ||
| pnpm install | ||
| ``` | ||
|
|
||
| 3. **Build all packages:** | ||
| ```bash | ||
| pnpm run build | ||
| ``` | ||
|
|
||
| ### Development | ||
|
|
||
| #### Local Development Workflow | ||
|
|
||
| To make and test changes locally: | ||
|
|
||
| 1. Make your desired changes in any of the packages (e.g., `packages/core` or `packages/react`). | ||
| 2. Re-build all packages to apply your changes: | ||
| ```bash | ||
| pnpm run build | ||
| ``` | ||
| 3. Navigate to a technology-specific example application in the `examples/` directory (e.g., `examples/react-spa-npm`). | ||
| 4. Configure the required environment variables in a `.env` file as per the example's `README`. | ||
| 5. Start the development server to see your changes in action: | ||
| ```bash | ||
| pnpm run dev | ||
| ``` | ||
|
|
||
| #### Testing | ||
|
|
||
| Running tests: | ||
| ## Quick Start | ||
|
|
||
| ```bash | ||
| pnpm run test | ||
| pnpm run test:react | ||
| pnpm run test:core | ||
| npm install @auth0/universal-components-react @auth0/auth0-react react-hook-form | ||
| ``` | ||
|
|
||
| To run a specific test, go to the relevant package folder and run: | ||
|
|
||
| ```bash | ||
| pnpm run test organization-details-edit | ||
| ### 1. Wrap Your App with Providers | ||
|
|
||
| ```tsx | ||
| import { Auth0Provider } from '@auth0/auth0-react'; | ||
| import { Auth0ComponentProvider } from '@auth0/universal-components-react/spa'; | ||
| import '@auth0/universal-components-react/styles'; | ||
|
|
||
| function App() { | ||
| return ( | ||
| <Auth0Provider | ||
| domain="your-tenant.auth0.com" | ||
| clientId="your-client-id" | ||
| authorizationParams={{ redirect_uri: window.location.origin }} | ||
| interactiveErrorHandler="popup" // Required to handle step-up auth challenges via Universal Login popup | ||
| > | ||
| <Auth0ComponentProvider themeSettings={{ theme: 'default', mode: 'light' }}> | ||
| {/* Your app */} | ||
| </Auth0ComponentProvider> | ||
| </Auth0Provider> | ||
| ); | ||
| } | ||
| ``` | ||
|
|
||
| #### Shadcn Local Development | ||
|
|
||
| 1. Update `registry.json` with your changes. | ||
| ### 2. Use a Component | ||
|
|
||
| 2. Create a new build based on `registry.json`: | ||
| ```tsx | ||
| import { SsoProviderCreate } from '@auth0/universal-components-react/spa'; | ||
|
|
||
| ```bash | ||
| pnpm build:shadcn | ||
| ``` | ||
|
|
||
| 3. Open `docs-site` and serve the registry: | ||
|
|
||
| ```bash | ||
| cd docs-site | ||
| pnpm install | ||
| pnpm run dev | ||
| function SettingsPage() { | ||
| return <SsoProviderCreate />; | ||
| } | ||
| ``` | ||
|
|
||
| 4. Go to your app (e.g., `react-spa-shadcn`) and update the components: | ||
|
|
||
| ```bash | ||
| npx shadcn@latest add http://localhost:5173/r/my-account/user-mfa-management.json --overwrite | ||
| npx shadcn@latest add http://localhost:5173/r/my-organization/organization-details-edit.json --overwrite | ||
| # ... other components | ||
| ``` | ||
| [Read the full documentation →](https://auth0.com/docs/get-started/universal-components/universal-components-overview) | ||
|
|
||
| _Note: The port may differ if other applications are running._ | ||
| ## Documentation | ||
|
|
||
| ## 📚 Component Reference | ||
| - [Universal Components Overview](https://auth0.com/docs/get-started/universal-components/universal-components-overview) - available components, installation, and configuration | ||
| - [Styling Guide](https://auth0.com/docs/get-started/universal-components/universal-components-style) - theming, CSS variables, and dark mode | ||
| - [Build a Delegated Admin](https://auth0.com/docs/get-started/universal-components/my-organization/build-delegated-admin) - end-to-end setup guide | ||
| - [TypeDoc Reference](https://auth0.github.io/auth0-ui-components/) - TypeDoc-generated source documentation | ||
| - [Examples](https://github.com/auth0/auth0-ui-components/tree/main/examples) - sample applications for React SPA, React shadcn, and Next.js | ||
| - [Auth0 Docs](https://auth0.com/docs) - explore our docs site and learn more about Auth0 | ||
|
|
||
| Explore public components available in @auth0/universal-components-react. | ||
| ## Packages | ||
|
|
||
| - [UserMfaManagement](https://auth0.github.io/auth0-ui-components/variables/public-api.UserMFAMgmt.html) | ||
| - [DomainTable](https://auth0.github.io/auth0-ui-components/variables/public-api.DomainTable.html) | ||
| - [SsoProviderCreate](https://auth0.github.io/auth0-ui-components/variables/public-api.SsoProviderCreate.html) | ||
| - [SsoProviderEdit](https://auth0.github.io/auth0-ui-components/variables/public-api.SsoProviderEdit.html) | ||
| - [SsoProviderTable](https://auth0.github.io/auth0-ui-components/variables/public-api.SsoProviderTable.html) | ||
| - [OrganizationDetailsEdit](https://auth0.github.io/auth0-ui-components/variables/public-api.OrganizationDetailsEdit.html) | ||
| | Package | Description | | ||
| | ------------------------------------------------------ | ----------------------------------------------------- | | ||
| | [@auth0/universal-components-react](./packages/react/) | React components with `/spa` and `/rwa` entry points | | ||
| | [@auth0/universal-components-core](./packages/core/) | Framework-agnostic core utilities, services, and i18n | | ||
|
|
||
| ## 🤝 Contributing | ||
| ## Feedback | ||
|
|
||
| Contributions are welcome! Please feel free to submit a pull request or open an issue for any bugs, feature requests, or improvements. | ||
| - [Raise an issue](https://github.com/auth0/auth0-ui-components/issues) - Report bugs or request features | ||
| - [Contributing Guide](./CONTRIBUTING.md) - Local development setup | ||
| - [Vulnerability Reporting](https://auth0.com/responsible-disclosure-policy) - Security issues | ||
|
|
||
| ## 📜 License | ||
| ## License | ||
|
|
||
| Copyright 2026 Okta, Inc | ||
| Copyright 2026 Okta, Inc. Licensed under [Apache License 2.0](LICENSE). | ||
|
|
||
| This project is licensed under the [Apache License 2.0](LICENSE). See the [LICENSE](LICENSE) file for details. | ||
| --- | ||
|
|
||
| **Authors** | ||
| Okta Inc. | ||
| <p align="center"> | ||
| <picture> | ||
| <source media="(prefers-color-scheme: light)" srcset="https://cdn.auth0.com/website/sdks/logos/auth0_light_mode.png" width="150"> | ||
| <source media="(prefers-color-scheme: dark)" srcset="https://cdn.auth0.com/website/sdks/logos/auth0_dark_mode.png" width="150"> | ||
| <img alt="Auth0 Logo" src="https://cdn.auth0.com/website/sdks/logos/auth0_light_mode.png" width="150"> | ||
| </picture> | ||
| </p> | ||
| <p align="center">Auth0 is an easy to implement, adaptable authentication and authorization platform. To learn more checkout <a href="https://auth0.com/why-auth0">Why Auth0?</a></p> | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.