{"id":29556746,"url":"https://github.com/maatthc/insomnia-plugin-auth0","last_synced_at":"2026-01-20T17:03:15.740Z","repository":{"id":304740768,"uuid":"1012808024","full_name":"maatthc/insomnia-plugin-auth0","owner":"maatthc","description":"Seamless store and refresh Auth0 tokens that can be automatically injected into requests, depending on configured urls/methods","archived":false,"fork":false,"pushed_at":"2025-07-22T08:15:48.000Z","size":592,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-18T17:20:05.262Z","etag":null,"topics":["auth0","insomnia","insomnia-plugin"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/maatthc.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-02T23:17:18.000Z","updated_at":"2025-07-22T08:15:52.000Z","dependencies_parsed_at":"2025-07-15T03:06:08.787Z","dependency_job_id":"2fb73ee7-6dde-4bb7-a6db-59782a1a1beb","html_url":"https://github.com/maatthc/insomnia-plugin-auth0","commit_stats":null,"previous_names":["maatthc/insomnia-plugin-auth0"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maatthc/insomnia-plugin-auth0","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maatthc%2Finsomnia-plugin-auth0","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maatthc%2Finsomnia-plugin-auth0/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maatthc%2Finsomnia-plugin-auth0/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maatthc%2Finsomnia-plugin-auth0/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maatthc","download_url":"https://codeload.github.com/maatthc/insomnia-plugin-auth0/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maatthc%2Finsomnia-plugin-auth0/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28607624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["auth0","insomnia","insomnia-plugin"],"created_at":"2025-07-18T11:00:30.461Z","updated_at":"2026-01-20T17:03:15.718Z","avatar_url":"https://github.com/maatthc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# Auth0 plugin for Insomnia\n\nSeamless store and refresh Auth0 tokens that can be automatically injected into requests, depending on configured urls/methods.\n\nIt will add a **Authorization** header to the requests that match your configuration.\n\nThe value of the header is the options set for *auth0AuthType* (e.g Bearer) follow by the existing Auth0 token for that url.\n\nHow long the tokens will be valid depends on the [Refresh Token Expiration](https://auth0.com/docs/secure/tokens/refresh-tokens/configure-refresh-token-rotation) defined for each application, but it is usually 30 days.\n\n## Installation\n\nGet if from the [Insomnia plugin store](https://insomnia.rest/plugins) or install it manually:\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/maatthc/insomnia-plugin-auth0\n\n2. Install dependencies:\n   ```bash\n   yarn \n   ```\n3. Build the plugin:\n   ```bash\n   yarn build\n   ```\n4. Install:\n   ```bash\n   yarn local\n   ```\n\n## Auth0\n\nThe domain, clientId, audience and scope defined for your application on [Auth0](https://auth0.com/docs/get-started/applications/application-settings) are required: these are usually publicly available .\n\nCallback and Logout Urls settings on Auth0 are required to include *localhost* on some port.\n\n### SDK\n\nThe *cacheLocation* is set to 'localstorage' and *useRefreshTokens* is set to true: these are not configurable at the moment.\n\nFor login, the method *loginWithRedirect()* is used and for *logout()* for logout.\n\nBoth methods *isAuthenticated()* and *getTokenSilently()* are used to confirm if the user is logged in. \n\n### Embeded webserver\n\nCallback and Logout Urls are supported by a **HTTP server** running within Insomnia.\n\nThe server runs on **port 3000** by default and is important for the authentication flow.\n\nThe port is configurable and most match your application configuration on Auth0.\n\nYou can safely shut down the server after login/logout in case the port is required by other service - for this use the \"Auth0 Server Shutdown\" option on the [Workspace Actions](#workspace-actions).\n\n## Ignored Requests\nFor the requests that match the following cases, the Authorization Header will not include:\n- The request Body includes 'IntrospectionQuery'.\n- The request Header 'Authorization' already exists.\n\n## Configuration\n\nYou should define one or more Auth0 *instances* and what URLs and methods the instance's token should be used.\n\nThe configuration should be set as a environment variable called *auth0Instances* in your [Insomnia environment](https://docs.insomnia.rest/insomnia/environment-variables).\n\n- **auth0HttpServerPort**: The tcp port to be used by the internal HTTP server. Default: 3000.\n- **urlRegexs**: Array of [Regex](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp) used to match the Auth0 instance with the request's URL.\n- **auth0AuthType**: The string that prefix the authentication token (e.g Basic). Default: Bearer.\n- **domain, clientId, audience and scope**: As defined in your application setting on Auth0.\n\n### Configuration changes\nIf the plugin identifies changes in the configuration during a session, it will re-initializing the Auth0 instances to avoid unexpected behaviour.\n\nThat means that all authenticated instances will be logged out. To avoid this, restart Insomnia as soon as you make changes.\n\n### Example\n\n```json\n{\n  \"auth0Instances\": [\n    {\n      \"urlRegexs\": [\"dev.test.com\"],\n      \"urlMethods\": [\"POST\"],\n      \"auth0AuthType\": \"Bearer\",\n      \"domain\": \"https://auth-dev.test.com\",\n      \"clientId\": \"clientIdDev\",\n      \"authorizationParams\": {\n        \"audience\": \"https://api.dev.test.com/gateway/graphql\",\n        \"scope\": \"openid profile email offline_access\"\n      }\n    },\n    {\n      \"urlRegexs\": [\"nonprod.test.com\"],\n      \"urlMethods\": [\"GET\"],\n      \"auth0AuthType\": \"Bearer\",\n      \"domain\": \"https://auth-nonprod.test.com\",\n      \"clientId\": \"clientIdNonProd\",\n      \"authorizationParams\": {\n        \"audience\": \"https://api.nonprod.test.com/gateway/graphql\",\n        \"scope\": \"openid profile email offline_access\"\n      }\n    }\n  ],\n  \"auth0HttpServerPort\": 3000\n}\n\n```\n\n## Screenshots\n\n### Workspace Actions\n\n![Workspace Actions](screenshots/workspace-actions.png)\n\n### Session Control\n\n![Session Control](screenshots/auth0-control.png)\n\n## TODO\n- [ ] Set up Github Actions \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaatthc%2Finsomnia-plugin-auth0","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaatthc%2Finsomnia-plugin-auth0","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaatthc%2Finsomnia-plugin-auth0/lists"}