# Notion SSO Auto-Redirect Extension

This Firefox extension automatically redirects users from the Notion login page to your organization's Microsoft SSO login page.

## What It Does

When a user's Notion session expires (after 12 hours), this extension automatically handles the login process on ANY Notion page.

**Works in these scenarios:**

1. **User visits Notion login page directly** → Auto-fills email and clicks SSO
2. **User visits a specific Notion page (session expired)** → Detects login modal, auto-fills email, clicks "Single sign-on (SSO)"
3. **Session times out while viewing a page** → Same as #2, returns user to their original page after authentication

**Example:** If a user has `https://www.notion.so/Onboarding-Engineering-2e197177520f8056867be71fffdf3019` open and their session expires, the login modal will appear. The extension will automatically fill the email field and click "Single sign-on (SSO)", taking them through Microsoft authentication and back to the Onboarding page.

## Installation Methods
In firefox, go to about:addons > Manage Your Extensions
1. Click the gear icon and select "Install Add-on From File..."
2. Select the `notion-sso-browser-extension/firefox` folder and select 03f36d0a750843198d2c-1.0.0.xpi file. **This .xpi file is signed by the Mozilla developer, so you can install it with confidence.**
3. You will be prompted to confirm the installation. Click "Add" to install the extension. Optional - You can check "Allow this extension to run in Private Windows" if you want the extension to work in private browsing mode.
4. Once extension is installed, you need to configure the plugin preference to set your email domain and SSO URL.
5. In Your Username: add your email prefix before the "@" symbol. For example, if your email is tmoin@sonymusic-pde.com, enter "tmoin".
6. In Email Domain: add your company domain after the "@" symbol. For example, sonymusic-pde.com
7. You will see Your complete email: tmoin@sonymusic-pde.com
5. In Microsoft SSO URL: Add https://launcher.myapps.microsoft.com/api/signin/468d6c39-95c8-4a8d-af87-9b91163d407d?tenantId=f0aff3b7-91a5-4aae-af71-c63e1dda2049
6. Save Settings.
7. You are now ready to test the extension.
