{"id":30195603,"url":"https://github.com/descope-sample-apps/chrome-extension","last_synced_at":"2025-08-13T04:35:53.753Z","repository":{"id":307165777,"uuid":"1024181947","full_name":"descope-sample-apps/chrome-extension","owner":"descope-sample-apps","description":"Descope Chrome extension ","archived":false,"fork":false,"pushed_at":"2025-08-07T15:05:50.000Z","size":81,"stargazers_count":3,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-07T17:19:57.803Z","etag":null,"topics":["authentication","chrome-extension","ciam","descope"],"latest_commit_sha":null,"homepage":"https://docs.descope.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/descope-sample-apps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-22T09:56:26.000Z","updated_at":"2025-08-04T17:21:55.000Z","dependencies_parsed_at":"2025-07-29T21:21:46.192Z","dependency_job_id":"bb92f97e-0c45-49c7-943d-a77795f3564b","html_url":"https://github.com/descope-sample-apps/chrome-extension","commit_stats":null,"previous_names":["descope-sample-apps/chrome-extension"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/descope-sample-apps/chrome-extension","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/descope-sample-apps%2Fchrome-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/descope-sample-apps%2Fchrome-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/descope-sample-apps%2Fchrome-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/descope-sample-apps%2Fchrome-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/descope-sample-apps","download_url":"https://codeload.github.com/descope-sample-apps/chrome-extension/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/descope-sample-apps%2Fchrome-extension/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270183036,"owners_count":24541315,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","chrome-extension","ciam","descope"],"created_at":"2025-08-13T04:35:38.792Z","updated_at":"2025-08-13T04:35:53.720Z","avatar_url":"https://github.com/descope-sample-apps.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Descope Chrome Extension Sample\n\n[![License: ISC](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n[![Node.js Version](https://img.shields.io/badge/Node.js-16%2B-green.svg)](https://nodejs.org/)\n[![Chrome Extension](https://img.shields.io/badge/Chrome-Extension-yellow.svg)](https://developer.chrome.com/docs/extensions/)\n[![Manifest V3](https://img.shields.io/badge/Manifest-V3-orange.svg)](https://developer.chrome.com/docs/extensions/mv3/)\n\nA production-ready Chrome extension sample demonstrating secure device authentication using [Descope](https://www.descope.com/). This extension showcases how to integrate Descope's authentication platform within a browser extension context using modern Chrome Extension Manifest V3 standards.\n\nhttps://github.com/user-attachments/assets/1511921b-440b-4f90-954a-bd261f6ac730\n\n\n\n## Features\n\n- 🔐 **Device Authentication Flow** - Secure device-based authentication using Descope\n- 🚀 **Manifest V3 Compliant** - Built with the latest Chrome Extension standards\n- 📱 **Cross-Device Support** - Works seamlessly across different devices\n\n## Table of Contents\n\n- [Getting Started](#getting-started)\n- [Installation](#installation)\n- [Configuration](#configuration)\n- [Development](#development)\n- [Usage](#usage)\n- [Scripts](#scripts)\n- [License](#license)\n\n## Getting Started\n\n### Prerequisites\n\nBefore you begin, ensure you have the following installed:\n\n- **[Node.js](https://nodejs.org/)** (v16.0.0 or later)\n- **[npm](https://www.npmjs.com/)** (comes with Node.js)\n- **[Google Chrome](https://www.google.com/chrome/)** (latest version recommended)\n- **Descope Account** - [Sign up for free](https://www.descope.com/)\n\n## Installation\n\n### Clone from GitHub\n\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/descope-sample-apps/chrome-extension.git\n   cd chrome-extension\n   ```\n\n2. **Install dependencies:**\n   ```bash\n   npm install\n   ```\n\n## Configuration\n\n### 1. Descope Project Setup\n\n1. **Create a Descope Project:**\n   - Go to the [Descope Console](https://app.descope.com/)\n   - Create a new project or select an existing one\n   - Note your **Project ID** and **Project URL**\n\n2. **Configure Authentication Methods:**\n   - Navigate to Authentication Methods in your Descope console\n   - Enable desired authentication methods (Email, SMS, Social, etc.)\n   - Configure device trust settings if needed\n\n### 2. Extension Configuration\n\nThe extension requires your Descope project details:\n\n- **Project ID**: Your Descope project identifier\n- **Issuer Domain**: Your Descope project domain (e.g., `https://auth.company.com`)\n\nThese can be configured through the extension popup interface after installation.\n\n## Development\n\n### Build and Watch Mode\n\nFor active development with hot reload:\n\n```bash\nnpm run watch\n```\n\nThis command:\n- Uses Rollup to bundle JavaScript and CSS\n- Outputs files to the `dist/` directory\n- Watches for file changes and rebuilds automatically\n- Enables live development workflow\n\n### Loading the Extension in Chrome\n\n1. **Open Chrome Extensions page:**\n   - Navigate to `chrome://extensions/`\n   - Or use Chrome menu → More tools → Extensions\n\n2. **Enable Developer Mode:**\n   - Toggle the \"Developer mode\" switch in the top right corner\n\n3. **Load the Extension:**\n   - Click \"Load unpacked\"\n   - Select the `dist/` directory from this project\n   - The extension icon will appear in your Chrome toolbar\n\n4. **Reload After Changes:**\n   - Click the reload icon on your extension card in `chrome://extensions/`\n   - Or use the keyboard shortcut `Ctrl+R` (Windows/Linux) or `Cmd+R` (Mac)\n\n### Development Tips\n\n- **Debug Console**: Right-click the extension icon → Inspect popup\n- **Background Script Debugging**: Go to `chrome://extensions/` → Click \"Service worker\" under your extension\n- **Hot Reload**: Changes to source files automatically trigger rebuilds when using `npm run watch`\n\n## Usage\n\n### First Time Setup\n\n1. **Click the Extension Icon:**\n   - Look for the Descope icon in your Chrome toolbar\n   - Click to open the authentication popup\n\n2. **Enter Project Details:**\n   - **Issuer Domain**: Enter your Descope project URL\n   - **Client ID**: Enter your Descope project ID\n\n3. **Initiate Authentication:**\n   - Click the \"Login\" button\n   - The device authentication flow will begin\n\n### Authentication Flow\n\n1. **Device Code Generation:**\n   - Extension generates a unique device code\n   - QR code or verification URL is displayed\n\n2. **Complete Authentication:**\n   - Follow the displayed instructions\n   - Verify your identity on the Descope verification page\n   - Return to the extension popup\n\n3. **Success State:**\n   - User information will be displayed\n   - Authentication tokens are securely stored\n   - Extension is ready for use\n\n\n## Scripts\n\n| Command | Description |\n|---------|-------------|\n| `npm run build` | Build the extension for production |\n| `npm run watch` | Build and watch for changes during development |\n| `npm test` | Run tests (currently not implemented) |\n\n### Production Build\n\nFor creating a production-ready build:\n\n```bash\nnpm run build\n```\n\nThis creates optimized files in the `dist/` directory ready for Chrome Web Store submission.\n\n### Getting Help\n\nIf you encounter issues:\n\n1. Check the [Issues](https://github.com/descope-sample-apps/chrome-extension/issues) page\n2. Review [Descope Documentation](https://docs.descope.com/)\n3. Contact [Descope Support](https://www.descope.com/support)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Support\n\n- **Documentation**: [Descope Docs](https://docs.descope.com/)\n- **Community**: [Descope Community](https://community.descope.com/)\n- **Support**: [Contact Support](https://www.descope.com/support)\n\n---\n\nMade with ❤️ by the Descope team\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdescope-sample-apps%2Fchrome-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdescope-sample-apps%2Fchrome-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdescope-sample-apps%2Fchrome-extension/lists"}