mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 05:05:42 +00:00 
			
		
		
		
	* feat(backend): add oauth2 * fix import * Add inventree roles * refactor to make lookup more efficient * fix single scope definitions * cleanup * fix schema * reduce auth methods * fix OAuth validator * re-enable token and basic auth again * Add models to role mapping * change scope args * add debug step for schema generation * add oauth config for schema generation * improve token -> permission mapping * fix req * extend checks to ensure normal auth also passes * fix api version * fix ignore * fix rule name * bump api version * remove old modelref * move scope definition * make test results easier to work with * add tests to ensure scopes are in sync with rulesets * fix docstring * fix various permissions and their mapping to oauth * refactor * simplify * fix permission mapping * ignore failure cases * fix unauthenticated access * flag oAuth2 till it is done * Add OIDC support * add RSA key generation and docs * fix test * move imports * update ignore * feat(backend): Add API Schema stats * add scope stats * fix name * fix scope output * feat(backend): test custom command * add warning for unknown scopes * reduce diff in launch.json * cleanup diff * add error code for ruleset / scope issues * update structure * add oauth docs * add experimetnal feature docs * simplify metadata endpoint * add importer model * refactor(backend): simplify metadata endpoint * fix imports * simplify even more * remove unneeded schema tooling * fix permission mappings * fix testing * fix role calculations * fix mapping * remove importer change to unblock this * remove importer scope everywhere * fix merge conflict in test * add missing models * fix api version * fix OASToken matcher * revert permission class change * reduce size of test log by writing schema * fix permissions * fix file path * extend schema to remove need for TokenMatchesOASRequirements * cleanup permissions file * add base object permission
		
			
				
	
	
		
			75 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			75 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
| {
 | |
|   // Use IntelliSense to learn about possible attributes.
 | |
|   // Hover to view descriptions of existing attributes.
 | |
|   // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
 | |
|   "version": "0.2.0",
 | |
|   "configurations": [
 | |
|     {
 | |
|       "name": "InvenTree Server",
 | |
|       "type": "debugpy",
 | |
|       "request": "launch",
 | |
|       "program": "${workspaceFolder}/src/backend/InvenTree/manage.py",
 | |
|       "args": [
 | |
|         "runserver",
 | |
|         // "0.0.0.0:8000", // expose server in network (useful for testing with mobile app)
 | |
|         // "--noreload" // disable auto-reload
 | |
|       ],
 | |
|       "django": true,
 | |
|       "justMyCode": true
 | |
|     },
 | |
|     {
 | |
|       "name": "InvenTree Server - Tests",
 | |
|       "type": "debugpy",
 | |
|       "request": "launch",
 | |
|       "program": "${workspaceFolder}/src/backend/InvenTree/manage.py",
 | |
|       "args": [
 | |
|         "test",
 | |
|         // "part.test_api.PartCategoryAPITest", // run only a specific test
 | |
|       ],
 | |
|       "django": true,
 | |
|       "justMyCode": true
 | |
|     },
 | |
|     {
 | |
|       "name": "InvenTree Server - 3rd party",
 | |
|       "type": "debugpy",
 | |
|       "request": "launch",
 | |
|       "program": "${workspaceFolder}/src/backend/InvenTree/manage.py",
 | |
|       "args": [
 | |
|         "runserver"
 | |
|       ],
 | |
|       "django": true,
 | |
|       "justMyCode": false
 | |
|     },
 | |
|     {
 | |
|       "name": "InvenTree invoke schema",
 | |
|       "type": "debugpy",
 | |
|       "request": "launch",
 | |
|       "program": "${workspaceFolder}/.venv/lib/python3.9/site-packages/invoke/__main__.py",
 | |
|       "cwd": "${workspaceFolder}",
 | |
|       "args": [
 | |
|         "dev.schema","--ignore-warnings"
 | |
|       ],
 | |
|       "justMyCode": false
 | |
|     },
 | |
|     {
 | |
|       "name": "schema generation",
 | |
|       "type": "debugpy",
 | |
|       "request": "launch",
 | |
|       "program": "${workspaceFolder}/src/backend/InvenTree/manage.py",
 | |
|       "args": [
 | |
|         "schema",
 | |
|         "--file","src/frontend/schema.yml"
 | |
|       ],
 | |
|       "django": true,
 | |
|       "justMyCode": false
 | |
|     },
 | |
|     {
 | |
|       "name": "InvenTree Frontend - Vite",
 | |
|       "type": "chrome",
 | |
|       "request": "launch",
 | |
|       "url": "http://localhost:5173",
 | |
|       "webRoot": "${workspaceFolder}/src/frontend"
 | |
|     }
 | |
|   ]
 | |
| }
 |