Compare commits
	
		
			265 Commits
		
	
	
		
			version/0.
			...
			version/0.
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| c9f0d048a8 | |||
| 90a94b5e3e | |||
| ae1a8842db | |||
| a3b17d1ed4 | |||
| 41576e27be | |||
| 07082cb3aa | |||
| 426cb33fab | |||
| 9e4f840d2d | |||
| e120d274e9 | |||
| 977d3f6ef9 | |||
| ecdbc917a5 | |||
| 0083cd55df | |||
| d380194e13 | |||
| 32f5d5ba72 | |||
| e818416863 | |||
| 7eed70cfe9 | |||
| ea6ca23f57 | |||
| f056b026d6 | |||
| 1c0a6efeb1 | |||
| 17732eea08 | |||
| aa5381fd59 | |||
| ffee86fcf3 | |||
| 7ff7398aff | |||
| 67925a39f2 | |||
| 3b5e1c7b34 | |||
| 3e49acf7ae | |||
| 76764c4374 | |||
| 9f6f8e1b55 | |||
| 9590180c6c | |||
| aef5c60a7b | |||
| d4c9c667c9 | |||
| 96f0d582f0 | |||
| 7e8702a71e | |||
| 1524061480 | |||
| 434922f702 | |||
| d2862ddc93 | |||
| 6e55431d4c | |||
| 01548c5e9c | |||
| bf1dae2dbe | |||
| 59c93defcf | |||
| a2a1a27502 | |||
| e3227e7d54 | |||
| 1f4a8fffdb | |||
| 86b1183883 | |||
| f781f4848c | |||
| 19824d693c | |||
| 0694b911a4 | |||
| 71e7a03f71 | |||
| 0a874c98cb | |||
| 488e8f769a | |||
| e6a776be07 | |||
| 4fd1dafd82 | |||
| e535cb0ec8 | |||
| 8c1f55d3e3 | |||
| c3a2cb44cd | |||
| 682401bbf2 | |||
| 3e6e167348 | |||
| d08c1b7b02 | |||
| 94d70d252c | |||
| ccfe746dd5 | |||
| ef5dffa96a | |||
| 2caa1e7650 | |||
| 2246f3a534 | |||
| 95ba00cb79 | |||
| 2ab4d6620f | |||
| 01482d8468 | |||
| 45c4469d47 | |||
| 8a526ad452 | |||
| 773943e044 | |||
| c0166aec20 | |||
| c03754abec | |||
| 3487c41ce0 | |||
| d4d4a4ab94 | |||
| 05d87a2314 | |||
| 5b83c5a191 | |||
| 867e161f32 | |||
| ff15514d5b | |||
| 58497bb63f | |||
| e0bc4f1da5 | |||
| 1cfe1aff13 | |||
| 810a7ab50b | |||
| 3b12de23ff | |||
| 12f788661c | |||
| 6164db5a18 | |||
| c17623323a | |||
| 05aeeafacc | |||
| dc4a7d98e8 | |||
| cc5a0c23aa | |||
| 821458373d | |||
| 832a3dda41 | |||
| 728befbda8 | |||
| a77c3f73cc | |||
| ebae03c399 | |||
| ffa4ac7efa | |||
| 16373d2143 | |||
| 1779b4d888 | |||
| b218ded241 | |||
| 8c8ff4643a | |||
| e6391b64f0 | |||
| 7195b77606 | |||
| add7ecc7aa | |||
| bce75dc047 | |||
| 71fbb23a2f | |||
| 7bb26b5903 | |||
| 93bfe60369 | |||
| 93bf977709 | |||
| 760dca0f76 | |||
| a777ecc933 | |||
| 0231bcf685 | |||
| a312ad2ad1 | |||
| 8e25970c01 | |||
| b1c4d0c716 | |||
| 43c391aa1c | |||
| 2a0b4c8f14 | |||
| 1193608631 | |||
| 775d80de6d | |||
| 05f8f92082 | |||
| f7022dd11f | |||
| 606e32603e | |||
| 5c5adfcccc | |||
| 0a2c0464df | |||
| 902953a2c7 | |||
| a8dad2e393 | |||
| 2417d5a59e | |||
| 66b3635648 | |||
| 7f821c484c | |||
| f51acb97a9 | |||
| c4db907a50 | |||
| 5650bd2d4c | |||
| 9466f91466 | |||
| 127ffbd456 | |||
| 2fbf06a1aa | |||
| 55f2ae5d08 | |||
| 47fe867803 | |||
| 28980d932a | |||
| 1e640fac76 | |||
| c7b6eac33d | |||
| f83087d04d | |||
| 14ab9bbd05 | |||
| a91d0ddc6c | |||
| 89400b4ea4 | |||
| afcbe24ff5 | |||
| 9c00c86e9b | |||
| 7efed56acc | |||
| 81a2c3992a | |||
| feabd38173 | |||
| 1432f0648f | |||
| 04f876af7b | |||
| 2449c63d0a | |||
| c738ea573c | |||
| 987b3a47d0 | |||
| 4dd397d9d9 | |||
| 5973f8bbca | |||
| 43f27c2401 | |||
| 7c73d2c2fb | |||
| 3f67da8f54 | |||
| afbecadba0 | |||
| 2de4023d43 | |||
| 6573d2e8f6 | |||
| bc412466b2 | |||
| 7a481396c6 | |||
| 7f40c89ade | |||
| 3c0f640b48 | |||
| 2f6ba42ce3 | |||
| aa8589d377 | |||
| cb2bad0a36 | |||
| 665839133f | |||
| 91e9f176a5 | |||
| 1a64edb89f | |||
| 6874265f94 | |||
| 9889dedcac | |||
| 275ac587a1 | |||
| 2f43b5b5ec | |||
| 416b2c60a1 | |||
| b39bee7a30 | |||
| 9714e5583d | |||
| bef25929a7 | |||
| 34f54a96cf | |||
| 401359a73f | |||
| 88f1cbb29c | |||
| bd9bce4c9b | |||
| 49c7ab701e | |||
| 35db60f2c8 | |||
| c0fd3e79bc | |||
| 8a54014a13 | |||
| 3cfe144394 | |||
| 5da8caf0d4 | |||
| c26d928eb0 | |||
| 02d4118f73 | |||
| d97b2bf503 | |||
| 2a50e36027 | |||
| eff3208ff7 | |||
| 551aff9455 | |||
| 22b4757971 | |||
| fa004876e9 | |||
| d5e34bb71d | |||
| e0dbeca657 | |||
| 1b6bd5b997 | |||
| a340378ce1 | |||
| 962f7d5f5c | |||
| a10404f34b | |||
| ed72595ae0 | |||
| 82dd597881 | |||
| 0c2d46e0af | |||
| 8b11616cf8 | |||
| 4b4a49bc66 | |||
| b770508d68 | |||
| 8934a0d4f0 | |||
| fcf763ed3e | |||
| be8cc77086 | |||
| ffea308480 | |||
| c9712facf3 | |||
| 07773ed934 | |||
| 3c311ca527 | |||
| bc02fb04f8 | |||
| 37979291b5 | |||
| 49899a9ceb | |||
| bc2113a935 | |||
| eb9df38e92 | |||
| 372e51ee07 | |||
| 30bf4f5747 | |||
| ef2b8cf802 | |||
| c455a9a6b6 | |||
| 7dac6841fb | |||
| a8669ffe40 | |||
| 1ed392c53c | |||
| 4bd433d69e | |||
| f3010726d6 | |||
| 812d699fd6 | |||
| e32cbec072 | |||
| 1cb227305c | |||
| e42ad3f659 | |||
| 6a2ae67c31 | |||
| aa1b99204a | |||
| 6681289a5a | |||
| 322ad0890a | |||
| b849b2aef3 | |||
| 92c0ad4154 | |||
| 49397cef70 | |||
| 517b811a99 | |||
| 6bdcbfbf0e | |||
| b555c151dc | |||
| 12f211d07d | |||
| 277f960113 | |||
| aa6eacaf6b | |||
| 80866f00f4 | |||
| 59e7d9b81e | |||
| d6d91c8180 | |||
| d10d645c02 | |||
| a2c7921c1f | |||
| 582dfface9 | |||
| 592f2cc558 | |||
| 1e1a002ab2 | |||
| ba2bd4fdaf | |||
| 9a407dcc5a | |||
| f8c720f8cd | |||
| 9c3bc4eb38 | |||
| 0a8d4eecae | |||
| 120f5f2e44 | |||
| e99812a6f5 | |||
| 1c5fedb177 | |||
| 8cc063ded2 | |||
| 5faafbbca6 | |||
| dda1217735 | |||
| d21f187673 | 
| @ -1,5 +1,5 @@ | |||||||
| [bumpversion] | [bumpversion] | ||||||
| current_version = 0.12.11-stable | current_version = 0.13.0-rc4 | ||||||
| tag = True | tag = True | ||||||
| commit = True | commit = True | ||||||
| parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)\-(?P<release>.*) | parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)\-(?P<release>.*) | ||||||
| @ -23,10 +23,14 @@ values = | |||||||
|  |  | ||||||
| [bumpversion:file:helm/values.yaml] | [bumpversion:file:helm/values.yaml] | ||||||
|  |  | ||||||
|  | [bumpversion:file:helm/README.md] | ||||||
|  |  | ||||||
| [bumpversion:file:helm/Chart.yaml] | [bumpversion:file:helm/Chart.yaml] | ||||||
|  |  | ||||||
| [bumpversion:file:.github/workflows/release.yml] | [bumpversion:file:.github/workflows/release.yml] | ||||||
|  |  | ||||||
| [bumpversion:file:passbook/__init__.py] | [bumpversion:file:authentik/__init__.py] | ||||||
|  |  | ||||||
| [bumpversion:file:proxy/pkg/version.go] | [bumpversion:file:proxy/pkg/version.go] | ||||||
|  |  | ||||||
|  | [bumpversion:file:web/src/constants.ts] | ||||||
|  | |||||||
							
								
								
									
										33
									
								
								.coveragerc
									
									
									
									
									
								
							
							
						
						
									
										33
									
								
								.coveragerc
									
									
									
									
									
								
							| @ -1,33 +0,0 @@ | |||||||
| [run] |  | ||||||
| source = passbook |  | ||||||
| relative_files = true |  | ||||||
| omit = |  | ||||||
|     */asgi.py |  | ||||||
|     manage.py |  | ||||||
|     */migrations/* |  | ||||||
|     */apps.py |  | ||||||
|     website/ |  | ||||||
|  |  | ||||||
| [report] |  | ||||||
| sort = Cover |  | ||||||
| skip_covered = True |  | ||||||
| precision = 2 |  | ||||||
| exclude_lines = |  | ||||||
|   pragma: no cover |  | ||||||
|  |  | ||||||
|     # Don't complain about missing debug-only code: |  | ||||||
|     def __unicode__ |  | ||||||
|     def __str__ |  | ||||||
|     def __repr__ |  | ||||||
|     if self\.debug |  | ||||||
|     if TYPE_CHECKING |  | ||||||
|  |  | ||||||
|     # Don't complain if tests don't hit defensive assertion code: |  | ||||||
|     raise AssertionError |  | ||||||
|     raise NotImplementedError |  | ||||||
|  |  | ||||||
|     # Don't complain if non-runnable code isn't run: |  | ||||||
|     if 0: |  | ||||||
|     if __name__ == .__main__.: |  | ||||||
|  |  | ||||||
| show_missing = True |  | ||||||
| @ -1,6 +1,6 @@ | |||||||
| env | env | ||||||
| helm | helm | ||||||
| passbook-ui |  | ||||||
| static | static | ||||||
|  | htmlcov | ||||||
| *.env.yml | *.env.yml | ||||||
| **/node_modules | **/node_modules | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								.github/FUNDING.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/FUNDING.yml
									
									
									
									
										vendored
									
									
								
							| @ -1 +1 @@ | |||||||
| custom: ["https://www.paypal.me/beryju"] | github: [BeryJu] | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								.github/ISSUE_TEMPLATE/bug_report.md
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/ISSUE_TEMPLATE/bug_report.md
									
									
									
									
										vendored
									
									
								
							| @ -27,7 +27,7 @@ If applicable, add screenshots to help explain your problem. | |||||||
| Output of docker-compose logs or kubectl logs respectively | Output of docker-compose logs or kubectl logs respectively | ||||||
|  |  | ||||||
| **Version and Deployment (please complete the following information):** | **Version and Deployment (please complete the following information):** | ||||||
|  - passbook version: [e.g. 0.10.0-stable] |  - authentik version: [e.g. 0.10.0-stable] | ||||||
|  - Deployment: [e.g. docker-compose, helm] |  - Deployment: [e.g. docker-compose, helm] | ||||||
|  |  | ||||||
| **Additional context** | **Additional context** | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								.github/dependabot.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/dependabot.yml
									
									
									
									
										vendored
									
									
								
							| @ -9,7 +9,7 @@ updates: | |||||||
|   assignees: |   assignees: | ||||||
|   - BeryJu |   - BeryJu | ||||||
| - package-ecosystem: npm | - package-ecosystem: npm | ||||||
|   directory: "/passbook/static/static" |   directory: "/web" | ||||||
|   schedule: |   schedule: | ||||||
|     interval: daily |     interval: daily | ||||||
|     time: "04:00" |     time: "04:00" | ||||||
|  | |||||||
							
								
								
									
										57
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										57
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							| @ -1,4 +1,4 @@ | |||||||
| name: passbook-on-release | name: authentik-on-release | ||||||
|  |  | ||||||
| on: | on: | ||||||
|   release: |   release: | ||||||
| @ -18,13 +18,13 @@ jobs: | |||||||
|       - name: Building Docker Image |       - name: Building Docker Image | ||||||
|         run: docker build |         run: docker build | ||||||
|           --no-cache |           --no-cache | ||||||
|           -t beryju/passbook:0.12.11-stable |           -t beryju/authentik:0.13.0-rc4 | ||||||
|           -t beryju/passbook:latest |           -t beryju/authentik:latest | ||||||
|           -f Dockerfile . |           -f Dockerfile . | ||||||
|       - name: Push Docker Container to Registry (versioned) |       - name: Push Docker Container to Registry (versioned) | ||||||
|         run: docker push beryju/passbook:0.12.11-stable |         run: docker push beryju/authentik:0.13.0-rc4 | ||||||
|       - name: Push Docker Container to Registry (latest) |       - name: Push Docker Container to Registry (latest) | ||||||
|         run: docker push beryju/passbook:latest |         run: docker push beryju/authentik:latest | ||||||
|   build-proxy: |   build-proxy: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     steps: |     steps: | ||||||
| @ -36,7 +36,7 @@ jobs: | |||||||
|         run: | |         run: | | ||||||
|           cd proxy |           cd proxy | ||||||
|           go get -u github.com/go-swagger/go-swagger/cmd/swagger |           go get -u github.com/go-swagger/go-swagger/cmd/swagger | ||||||
|           swagger generate client -f ../swagger.yaml -A passbook -t pkg/ |           swagger generate client -f ../swagger.yaml -A authentik -t pkg/ | ||||||
|           go build -v . |           go build -v . | ||||||
|       - name: Docker Login Registry |       - name: Docker Login Registry | ||||||
|         env: |         env: | ||||||
| @ -45,27 +45,18 @@ jobs: | |||||||
|         run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD |         run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD | ||||||
|       - name: Building Docker Image |       - name: Building Docker Image | ||||||
|         run: | |         run: | | ||||||
|           cd proxy |           cd proxy/ | ||||||
|           docker build \ |           docker build \ | ||||||
|           --no-cache \ |           --no-cache \ | ||||||
|           -t beryju/passbook-proxy:0.12.11-stable \ |           -t beryju/authentik-proxy:0.13.0-rc4 \ | ||||||
|           -t beryju/passbook-proxy:latest \ |           -t beryju/authentik-proxy:latest \ | ||||||
|           -f Dockerfile . |           -f Dockerfile . | ||||||
|       - name: Push Docker Container to Registry (versioned) |       - name: Push Docker Container to Registry (versioned) | ||||||
|         run: docker push beryju/passbook-proxy:0.12.11-stable |         run: docker push beryju/authentik-proxy:0.13.0-rc4 | ||||||
|       - name: Push Docker Container to Registry (latest) |       - name: Push Docker Container to Registry (latest) | ||||||
|         run: docker push beryju/passbook-proxy:latest |         run: docker push beryju/authentik-proxy:latest | ||||||
|   build-static: |   build-static: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     services: |  | ||||||
|       postgres: |  | ||||||
|         image: postgres:latest |  | ||||||
|         env: |  | ||||||
|           POSTGRES_DB: passbook |  | ||||||
|           POSTGRES_USER: passbook |  | ||||||
|           POSTGRES_PASSWORD: "EK-5jnKfjrGRm<77" |  | ||||||
|       redis: |  | ||||||
|         image: redis:latest |  | ||||||
|     steps: |     steps: | ||||||
|       - uses: actions/checkout@v1 |       - uses: actions/checkout@v1 | ||||||
|       - name: Docker Login Registry |       - name: Docker Login Registry | ||||||
| @ -74,20 +65,22 @@ jobs: | |||||||
|           DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} |           DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||||||
|         run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD |         run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD | ||||||
|       - name: Building Docker Image |       - name: Building Docker Image | ||||||
|         run: docker build |         run: | | ||||||
|           --no-cache |           cd web/ | ||||||
|           --network=$(docker network ls | grep github | awk '{print $1}') |           docker build \ | ||||||
|           -t beryju/passbook-static:0.12.11-stable |           --no-cache \ | ||||||
|           -t beryju/passbook-static:latest |           -t beryju/authentik-static:0.13.0-rc4 \ | ||||||
|           -f static.Dockerfile . |           -t beryju/authentik-static:latest \ | ||||||
|  |           -f Dockerfile . | ||||||
|       - name: Push Docker Container to Registry (versioned) |       - name: Push Docker Container to Registry (versioned) | ||||||
|         run: docker push beryju/passbook-static:0.12.11-stable |         run: docker push beryju/authentik-static:0.13.0-rc4 | ||||||
|       - name: Push Docker Container to Registry (latest) |       - name: Push Docker Container to Registry (latest) | ||||||
|         run: docker push beryju/passbook-static:latest |         run: docker push beryju/authentik-static:latest | ||||||
|   test-release: |   test-release: | ||||||
|     needs: |     needs: | ||||||
|       - build-server |       - build-server | ||||||
|       - build-static |       - build-static | ||||||
|  |       - build-proxy | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     steps: |     steps: | ||||||
|       - uses: actions/checkout@v1 |       - uses: actions/checkout@v1 | ||||||
| @ -95,11 +88,11 @@ jobs: | |||||||
|         run: | |         run: | | ||||||
|           sudo apt-get install -y pwgen |           sudo apt-get install -y pwgen | ||||||
|           echo "PG_PASS=$(pwgen 40 1)" >> .env |           echo "PG_PASS=$(pwgen 40 1)" >> .env | ||||||
|           echo "PASSBOOK_SECRET_KEY=$(pwgen 50 1)" >> .env |           echo "AUTHENTIK_SECRET_KEY=$(pwgen 50 1)" >> .env | ||||||
|           docker-compose pull -q |           docker-compose pull -q | ||||||
|           docker-compose up --no-start |           docker-compose up --no-start | ||||||
|           docker-compose start postgresql redis |           docker-compose start postgresql redis | ||||||
|           docker-compose run -u root --entrypoint /bin/bash server -c "pip install --no-cache -r requirements-dev.txt && ./manage.py test passbook" |           docker-compose run -u root --entrypoint /bin/bash server -c "pip install --no-cache -r requirements-dev.txt && ./manage.py test authentik" | ||||||
|   sentry-release: |   sentry-release: | ||||||
|     needs: |     needs: | ||||||
|       - test-release |       - test-release | ||||||
| @ -111,8 +104,8 @@ jobs: | |||||||
|         env: |         env: | ||||||
|           SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} |           SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | ||||||
|           SENTRY_ORG: beryjuorg |           SENTRY_ORG: beryjuorg | ||||||
|           SENTRY_PROJECT: passbook |           SENTRY_PROJECT: authentik | ||||||
|           SENTRY_URL: https://sentry.beryju.org |           SENTRY_URL: https://sentry.beryju.org | ||||||
|         with: |         with: | ||||||
|           tagName: 0.12.11-stable |           tagName: 0.13.0-rc4 | ||||||
|           environment: beryjuorg-prod |           environment: beryjuorg-prod | ||||||
|  | |||||||
							
								
								
									
										16
									
								
								.github/workflows/tag.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								.github/workflows/tag.yml
									
									
									
									
										vendored
									
									
								
							| @ -1,4 +1,4 @@ | |||||||
| name: passbook-on-tag | name: authentik-on-tag | ||||||
|  |  | ||||||
| on: | on: | ||||||
|   push: |   push: | ||||||
| @ -14,17 +14,17 @@ jobs: | |||||||
|       - name: Pre-release test |       - name: Pre-release test | ||||||
|         run: | |         run: | | ||||||
|           sudo apt-get install -y pwgen |           sudo apt-get install -y pwgen | ||||||
|           echo "PASSBOOK_TAG=latest" >> .env |           echo "AUTHENTIK_TAG=latest" >> .env | ||||||
|           echo "PG_PASS=$(pwgen 40 1)" >> .env |           echo "PG_PASS=$(pwgen 40 1)" >> .env | ||||||
|           echo "PASSBOOK_SECRET_KEY=$(pwgen 50 1)" >> .env |           echo "AUTHENTIK_SECRET_KEY=$(pwgen 50 1)" >> .env | ||||||
|           docker-compose pull -q |           docker-compose pull -q | ||||||
|           docker build \ |           docker build \ | ||||||
|             --no-cache \ |             --no-cache \ | ||||||
|             -t beryju/passbook:latest \ |             -t beryju/authentik:latest \ | ||||||
|             -f Dockerfile . |             -f Dockerfile . | ||||||
|           docker-compose up --no-start |           docker-compose up --no-start | ||||||
|           docker-compose start postgresql redis |           docker-compose start postgresql redis | ||||||
|           docker-compose run -u root --entrypoint /bin/bash server -c "pip install --no-cache -r requirements-dev.txt && ./manage.py test passbook" |           docker-compose run -u root --entrypoint /bin/bash server -c "pip install --no-cache -r requirements-dev.txt && ./manage.py test authentik" | ||||||
|       - name: Install Helm |       - name: Install Helm | ||||||
|         run: | |         run: | | ||||||
|           apt update && apt install -y curl |           apt update && apt install -y curl | ||||||
| @ -33,7 +33,7 @@ jobs: | |||||||
|         run: | |         run: | | ||||||
|           helm dependency update helm/ |           helm dependency update helm/ | ||||||
|           helm package helm/ |           helm package helm/ | ||||||
|           mv passbook-*.tgz passbook-chart.tgz |           mv authentik-*.tgz authentik-chart.tgz | ||||||
|       - name: Extract version number |       - name: Extract version number | ||||||
|         id: get_version |         id: get_version | ||||||
|         uses: actions/github-script@0.2.0 |         uses: actions/github-script@0.2.0 | ||||||
| @ -58,6 +58,6 @@ jobs: | |||||||
|           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||
|         with: |         with: | ||||||
|           upload_url: ${{ steps.create_release.outputs.upload_url }} |           upload_url: ${{ steps.create_release.outputs.upload_url }} | ||||||
|           asset_path: ./passbook-chart.tgz |           asset_path: ./authentik-chart.tgz | ||||||
|           asset_name: passbook-chart.tgz |           asset_name: authentik-chart.tgz | ||||||
|           asset_content_type: application/gzip |           asset_content_type: application/gzip | ||||||
|  | |||||||
							
								
								
									
										5
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @ -27,12 +27,12 @@ media | |||||||
| .Python | .Python | ||||||
| build/ | build/ | ||||||
| develop-eggs/ | develop-eggs/ | ||||||
| dist/ |  | ||||||
| downloads/ | downloads/ | ||||||
| eggs/ | eggs/ | ||||||
| .eggs/ | .eggs/ | ||||||
| lib64/ | lib64/ | ||||||
| parts/ | parts/ | ||||||
|  | dist/ | ||||||
| sdist/ | sdist/ | ||||||
| var/ | var/ | ||||||
| wheels/ | wheels/ | ||||||
| @ -198,5 +198,6 @@ local.env.yml | |||||||
| **/charts/*.tgz | **/charts/*.tgz | ||||||
|  |  | ||||||
| # Selenium Screenshots | # Selenium Screenshots | ||||||
| selenium_screenshots/** | selenium_screenshots/ | ||||||
| backups/ | backups/ | ||||||
|  | media/ | ||||||
|  | |||||||
| @ -1,6 +0,0 @@ | |||||||
| [settings] |  | ||||||
| multi_line_output=3 |  | ||||||
| include_trailing_comma=True |  | ||||||
| force_grid_wrap=0 |  | ||||||
| use_parentheses=True |  | ||||||
| line_length=88 |  | ||||||
							
								
								
									
										16
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								Dockerfile
									
									
									
									
									
								
							| @ -30,17 +30,19 @@ RUN apt-get update && \ | |||||||
|     # but then we have to drop permmissions later |     # but then we have to drop permmissions later | ||||||
|     groupadd -g 998 docker_998 && \ |     groupadd -g 998 docker_998 && \ | ||||||
|     groupadd -g 999 docker_999 && \ |     groupadd -g 999 docker_999 && \ | ||||||
|     adduser --system --no-create-home --uid 1000 --group --home /passbook passbook && \ |     adduser --system --no-create-home --uid 1000 --group --home /authentik authentik && \ | ||||||
|     usermod -a -G docker_998 passbook && \ |     usermod -a -G docker_998 authentik && \ | ||||||
|     usermod -a -G docker_999 passbook && \ |     usermod -a -G docker_999 authentik && \ | ||||||
|     mkdir /backups && \ |     mkdir /backups && \ | ||||||
|     chown passbook:passbook /backups |     chown authentik:authentik /backups | ||||||
|  |  | ||||||
| COPY ./passbook/ /passbook | COPY ./authentik/ /authentik | ||||||
|  | COPY ./pytest.ini / | ||||||
|  | COPY ./xml /xml | ||||||
| COPY ./manage.py / | COPY ./manage.py / | ||||||
| COPY ./lifecycle/ /lifecycle | COPY ./lifecycle/ /lifecycle | ||||||
|  |  | ||||||
| USER passbook | USER authentik | ||||||
| STOPSIGNAL SIGINT | STOPSIGNAL SIGINT | ||||||
|  | ENV TMPDIR /dev/shm/ | ||||||
| ENTRYPOINT [ "/lifecycle/bootstrap.sh" ] | ENTRYPOINT [ "/lifecycle/bootstrap.sh" ] | ||||||
|  | |||||||
							
								
								
									
										35
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										35
									
								
								Makefile
									
									
									
									
									
								
							| @ -1,26 +1,43 @@ | |||||||
| all: lint-fix lint coverage gen | all: lint-fix lint coverage gen | ||||||
|  |  | ||||||
|  | test-full: | ||||||
|  | 	coverage run manage.py test --failfast -v 3 . | ||||||
|  | 	coverage html | ||||||
|  | 	coverage report | ||||||
|  |  | ||||||
|  | test-integration: | ||||||
|  | 	k3d cluster create || exit 0 | ||||||
|  | 	k3d kubeconfig write -o ~/.kube/config --overwrite | ||||||
|  | 	coverage run manage.py test --failfast -v 3 tests/integration | ||||||
|  |  | ||||||
|  | test-e2e: | ||||||
|  | 	coverage run manage.py test --failfast -v 3 tests/e2e | ||||||
|  |  | ||||||
| coverage: | coverage: | ||||||
| 	coverage run --concurrency=multiprocessing manage.py test --failfast -v 3 | 	coverage run manage.py test --failfast -v 3 authentik | ||||||
| 	coverage combine |  | ||||||
| 	coverage html | 	coverage html | ||||||
| 	coverage report | 	coverage report | ||||||
|  |  | ||||||
| lint-fix: | lint-fix: | ||||||
| 	isort -rc . | 	isort -rc authentik tests lifecycle | ||||||
| 	black passbook e2e lifecycle | 	black authentik tests lifecycle | ||||||
|  |  | ||||||
| lint: | lint: | ||||||
| 	pyright passbook e2e lifecycle | 	pyright authentik tests lifecycle | ||||||
| 	bandit -r passbook e2e lifecycle -x node_modules | 	bandit -r authentik tests lifecycle -x node_modules | ||||||
| 	pylint passbook e2e lifecycle | 	pylint authentik tests lifecycle | ||||||
| 	prospector | 	prospector | ||||||
|  |  | ||||||
| gen: coverage | gen: coverage | ||||||
| 	./manage.py generate_swagger -o swagger.yaml -f yaml | 	./manage.py generate_swagger -o swagger.yaml -f yaml | ||||||
|  |  | ||||||
| local-stack: | local-stack: | ||||||
| 	export PASSBOOK_TAG=testing | 	export AUTHENTIK_TAG=testing | ||||||
| 	docker build -t beryju/passbook:testng . | 	docker build -t beryju/authentik:testng . | ||||||
| 	docker-compose up -d | 	docker-compose up -d | ||||||
| 	docker-compose run --rm server migrate | 	docker-compose run --rm server migrate | ||||||
|  |  | ||||||
|  | build-static: | ||||||
|  | 	docker-compose -f scripts/ci.docker-compose.yml up -d | ||||||
|  | 	docker build -t beryju/authentik-static -f static.Dockerfile --network=scripts_default . | ||||||
|  | 	docker-compose -f scripts/ci.docker-compose.yml down -v | ||||||
|  | |||||||
							
								
								
									
										460
									
								
								Pipfile.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										460
									
								
								Pipfile.lock
									
									
									
										generated
									
									
									
								
							| @ -28,7 +28,6 @@ | |||||||
|                 "sha256:5b9062d5c0812335c75434bf17ce33d7a20ecfedaa0733faec7379868eb4068a", |                 "sha256:5b9062d5c0812335c75434bf17ce33d7a20ecfedaa0733faec7379868eb4068a", | ||||||
|                 "sha256:fcd5b3baeeb7fc19b3486ff6d10543099d40ae1f5c9196eae695d1cde1b2f784" |                 "sha256:fcd5b3baeeb7fc19b3486ff6d10543099d40ae1f5c9196eae695d1cde1b2f784" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '3.6'", |  | ||||||
|             "version": "==5.0.2" |             "version": "==5.0.2" | ||||||
|         }, |         }, | ||||||
|         "asgiref": { |         "asgiref": { | ||||||
| @ -36,7 +35,6 @@ | |||||||
|                 "sha256:5ee950735509d04eb673bd7f7120f8fa1c9e2df495394992c73234d526907e17", |                 "sha256:5ee950735509d04eb673bd7f7120f8fa1c9e2df495394992c73234d526907e17", | ||||||
|                 "sha256:7162a3cb30ab0609f1a4c95938fd73e8604f63bdba516a7f7d64b83ff09478f0" |                 "sha256:7162a3cb30ab0609f1a4c95938fd73e8604f63bdba516a7f7d64b83ff09478f0" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '3.5'", |  | ||||||
|             "version": "==3.3.1" |             "version": "==3.3.1" | ||||||
|         }, |         }, | ||||||
|         "async-timeout": { |         "async-timeout": { | ||||||
| @ -44,7 +42,6 @@ | |||||||
|                 "sha256:0c3c816a028d47f659d6ff5c745cb2acf1f966da1fe5c19c77a70282b25f4c5f", |                 "sha256:0c3c816a028d47f659d6ff5c745cb2acf1f966da1fe5c19c77a70282b25f4c5f", | ||||||
|                 "sha256:4291ca197d287d274d0b6cb5d6f8f8f82d434ed288f962539ff18cc9012f9ea3" |                 "sha256:4291ca197d287d274d0b6cb5d6f8f8f82d434ed288f962539ff18cc9012f9ea3" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_full_version >= '3.5.3'", |  | ||||||
|             "version": "==3.0.1" |             "version": "==3.0.1" | ||||||
|         }, |         }, | ||||||
|         "attrs": { |         "attrs": { | ||||||
| @ -52,7 +49,6 @@ | |||||||
|                 "sha256:31b2eced602aa8423c2aea9c76a724617ed67cf9513173fd3a4f03e3a929c7e6", |                 "sha256:31b2eced602aa8423c2aea9c76a724617ed67cf9513173fd3a4f03e3a929c7e6", | ||||||
|                 "sha256:832aa3cde19744e49938b91fea06d69ecb9e649c93ba974535d08ad92164f700" |                 "sha256:832aa3cde19744e49938b91fea06d69ecb9e649c93ba974535d08ad92164f700" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", |  | ||||||
|             "version": "==20.3.0" |             "version": "==20.3.0" | ||||||
|         }, |         }, | ||||||
|         "autobahn": { |         "autobahn": { | ||||||
| @ -60,7 +56,6 @@ | |||||||
|                 "sha256:24ce276d313e84d68241c3aef30d484f352b90a40168981b3640312c821df77b", |                 "sha256:24ce276d313e84d68241c3aef30d484f352b90a40168981b3640312c821df77b", | ||||||
|                 "sha256:86bbce30cdd407137c57670993a8f9bfdfe3f8e994b889181d85e844d5aa8dfb" |                 "sha256:86bbce30cdd407137c57670993a8f9bfdfe3f8e994b889181d85e844d5aa8dfb" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '3.5'", |  | ||||||
|             "version": "==20.7.1" |             "version": "==20.7.1" | ||||||
|         }, |         }, | ||||||
|         "automat": { |         "automat": { | ||||||
| @ -79,82 +74,81 @@ | |||||||
|         }, |         }, | ||||||
|         "boto3": { |         "boto3": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:51c419d890ae216b9b031be31f3182739dc3deb5b64351f286bffca2818ddb35", |                 "sha256:616cde1e326949020da85a5bacaa7ad287e9f117d10ac9c5bfb9150a98dfe1a7", | ||||||
|                 "sha256:d70d21ea137d786e84124639a62be42f92f4b09472ebfb761156057c92dc5366" |                 "sha256:ddad9ada00eccae1fc2da28c69531ba202fead562994ddcd9a9a232e993cd8a2" | ||||||
|             ], |             ], | ||||||
|             "index": "pypi", |             "index": "pypi", | ||||||
|             "version": "==1.16.18" |             "version": "==1.16.34" | ||||||
|         }, |         }, | ||||||
|         "botocore": { |         "botocore": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:288d43e85f12e3c1d6a0535a585a182ca04e8c6e742ebaaf15357a0e3b37ca7a", |                 "sha256:49f5e56a7382a65ee0873371edcd91bdba8fc3f70abe102ebc1a0da2e6fbed06", | ||||||
|                 "sha256:bba18b5c4eef3eb2dc39b1b1f8959ba01ac27e7e12e413e281b0fb242990c0f5" |                 "sha256:4d81d92127ef646ae0f0ee84c9c220c92fa82312e765c29f8cb3b000fdbdd038" | ||||||
|             ], |             ], | ||||||
|             "version": "==1.19.18" |             "version": "==1.19.34" | ||||||
|         }, |         }, | ||||||
|         "cachetools": { |         "cachetools": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:513d4ff98dd27f85743a8dc0e92f55ddb1b49e060c2d5961512855cda2c01a98", |                 "sha256:3796e1de094f0eaca982441c92ce96c68c89cced4cd97721ab297ea4b16db90e", | ||||||
|                 "sha256:bbaa39c3dede00175df2dc2b03d0cf18dd2d32a7de7beb68072d13043c9edb20" |                 "sha256:c6b07a6ded8c78bf36730b3dc452dfff7d95f2a12a2fed856b1a0cb13ca78c61" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version ~= '3.5'", |             "version": "==4.2.0" | ||||||
|             "version": "==4.1.1" |  | ||||||
|         }, |         }, | ||||||
|         "celery": { |         "celery": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:012c814967fe89e3f5d2cf49df2dba3de5f29253a7f4f2270e8fce6b901b4ebf", |                 "sha256:45bb7909061862305cefec94289fabc1b89ac004680f4dc7d9dea642a2507e53", | ||||||
|                 "sha256:930c3acd55349d028c4e7104a7d377729cbcca19d9fce470c17172d9e7f9a8b6" |                 "sha256:533f3635065b7ed362ffc04228635b4c82d53a9ab812118ccdedb5eae281fb97" | ||||||
|             ], |             ], | ||||||
|             "index": "pypi", |             "index": "pypi", | ||||||
|             "version": "==5.0.2" |             "version": "==5.0.4" | ||||||
|         }, |         }, | ||||||
|         "certifi": { |         "certifi": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:1f422849db327d534e3d0c5f02a263458c3955ec0aae4ff09b95f195c59f4edd", |                 "sha256:1a4995114262bffbc2413b159f2a1a480c969de6e6eb13ee966d470af86af59c", | ||||||
|                 "sha256:f05def092c44fbf25834a51509ef6e631dc19765ab8a57b4e7ab85531f0a9cf4" |                 "sha256:719a74fb9e33b9bd44cc7f3a8d94bc35e4049deebe19ba7d8e108280cfd59830" | ||||||
|             ], |             ], | ||||||
|             "version": "==2020.11.8" |             "version": "==2020.12.5" | ||||||
|         }, |         }, | ||||||
|         "cffi": { |         "cffi": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:005f2bfe11b6745d726dbb07ace4d53f057de66e336ff92d61b8c7e9c8f4777d", |                 "sha256:00a1ba5e2e95684448de9b89888ccd02c98d512064b4cb987d48f4b40aa0421e", | ||||||
|                 "sha256:09e96138280241bd355cd585148dec04dbbedb4f46128f340d696eaafc82dd7b", |                 "sha256:00e28066507bfc3fe865a31f325c8391a1ac2916219340f87dfad602c3e48e5d", | ||||||
|                 "sha256:0b1ad452cc824665ddc682400b62c9e4f5b64736a2ba99110712fdee5f2505c4", |                 "sha256:045d792900a75e8b1e1b0ab6787dd733a8190ffcf80e8c8ceb2fb10a29ff238a", | ||||||
|                 "sha256:0ef488305fdce2580c8b2708f22d7785ae222d9825d3094ab073e22e93dfe51f", |                 "sha256:0638c3ae1a0edfb77c6765d487fee624d2b1ee1bdfeffc1f0b58c64d149e7eec", | ||||||
|                 "sha256:15f351bed09897fbda218e4db5a3d5c06328862f6198d4fb385f3e14e19decb3", |                 "sha256:105abaf8a6075dc96c1fe5ae7aae073f4696f2905fde6aeada4c9d2926752362", | ||||||
|                 "sha256:22399ff4870fb4c7ef19fff6eeb20a8bbf15571913c181c78cb361024d574579", |                 "sha256:155136b51fd733fa94e1c2ea5211dcd4c8879869008fc811648f16541bf99668", | ||||||
|                 "sha256:23e5d2040367322824605bc29ae8ee9175200b92cb5483ac7d466927a9b3d537", |                 "sha256:1a465cbe98a7fd391d47dce4b8f7e5b921e6cd805ef421d04f5f66ba8f06086c", | ||||||
|                 "sha256:2791f68edc5749024b4722500e86303a10d342527e1e3bcac47f35fbd25b764e", |                 "sha256:1d2c4994f515e5b485fd6d3a73d05526aa0fcf248eb135996b088d25dfa1865b", | ||||||
|                 "sha256:2f9674623ca39c9ebe38afa3da402e9326c245f0f5ceff0623dccdac15023e05", |                 "sha256:2c24d61263f511551f740d1a065eb0212db1dbbbbd241db758f5244281590c06", | ||||||
|                 "sha256:3363e77a6176afb8823b6e06db78c46dbc4c7813b00a41300a4873b6ba63b171", |                 "sha256:51a8b381b16ddd370178a65360ebe15fbc1c71cf6f584613a7ea08bfad946698", | ||||||
|                 "sha256:33c6cdc071ba5cd6d96769c8969a0531be2d08c2628a0143a10a7dcffa9719ca", |                 "sha256:594234691ac0e9b770aee9fcdb8fa02c22e43e5c619456efd0d6c2bf276f3eb2", | ||||||
|                 "sha256:3b8eaf915ddc0709779889c472e553f0d3e8b7bdf62dab764c8921b09bf94522", |                 "sha256:5cf4be6c304ad0b6602f5c4e90e2f59b47653ac1ed9c662ed379fe48a8f26b0c", | ||||||
|                 "sha256:3cb3e1b9ec43256c4e0f8d2837267a70b0e1ca8c4f456685508ae6106b1f504c", |                 "sha256:64081b3f8f6f3c3de6191ec89d7dc6c86a8a43911f7ecb422c60e90c70be41c7", | ||||||
|                 "sha256:3eeeb0405fd145e714f7633a5173318bd88d8bbfc3dd0a5751f8c4f70ae629bc", |                 "sha256:6bc25fc545a6b3d57b5f8618e59fc13d3a3a68431e8ca5fd4c13241cd70d0009", | ||||||
|                 "sha256:44f60519595eaca110f248e5017363d751b12782a6f2bd6a7041cba275215f5d", |                 "sha256:798caa2a2384b1cbe8a2a139d80734c9db54f9cc155c99d7cc92441a23871c03", | ||||||
|                 "sha256:4d7c26bfc1ea9f92084a1d75e11999e97b62d63128bcc90c3624d07813c52808", |                 "sha256:7c6b1dece89874d9541fc974917b631406233ea0440d0bdfbb8e03bf39a49b3b", | ||||||
|                 "sha256:529c4ed2e10437c205f38f3691a68be66c39197d01062618c55f74294a4a4828", |                 "sha256:840793c68105fe031f34d6a086eaea153a0cd5c491cde82a74b420edd0a2b909", | ||||||
|                 "sha256:6642f15ad963b5092d65aed022d033c77763515fdc07095208f15d3563003869", |                 "sha256:8d6603078baf4e11edc4168a514c5ce5b3ba6e3e9c374298cb88437957960a53", | ||||||
|                 "sha256:85ba797e1de5b48aa5a8427b6ba62cf69607c18c5d4eb747604b7302f1ec382d", |                 "sha256:9cc46bc107224ff5b6d04369e7c595acb700c3613ad7bcf2e2012f62ece80c35", | ||||||
|                 "sha256:8f0f1e499e4000c4c347a124fa6a27d37608ced4fe9f7d45070563b7c4c370c9", |                 "sha256:9f7a31251289b2ab6d4012f6e83e58bc3b96bd151f5b5262467f4bb6b34a7c26", | ||||||
|                 "sha256:a624fae282e81ad2e4871bdb767e2c914d0539708c0f078b5b355258293c98b0", |                 "sha256:9ffb888f19d54a4d4dfd4b3f29bc2c16aa4972f1c2ab9c4ab09b8ab8685b9c2b", | ||||||
|                 "sha256:b0358e6fefc74a16f745afa366acc89f979040e0cbc4eec55ab26ad1f6a9bfbc", |                 "sha256:a5ed8c05548b54b998b9498753fb9cadbfd92ee88e884641377d8a8b291bcc01", | ||||||
|                 "sha256:bbd2f4dfee1079f76943767fce837ade3087b578aeb9f69aec7857d5bf25db15", |                 "sha256:a7711edca4dcef1a75257b50a2fbfe92a65187c47dab5a0f1b9b332c5919a3fb", | ||||||
|                 "sha256:bf39a9e19ce7298f1bd6a9758fa99707e9e5b1ebe5e90f2c3913a47bc548747c", |                 "sha256:af5c59122a011049aad5dd87424b8e65a80e4a6477419c0c1015f73fb5ea0293", | ||||||
|                 "sha256:c11579638288e53fc94ad60022ff1b67865363e730ee41ad5e6f0a17188b327a", |                 "sha256:b18e0a9ef57d2b41f5c68beefa32317d286c3d6ac0484efd10d6e07491bb95dd", | ||||||
|                 "sha256:c150eaa3dadbb2b5339675b88d4573c1be3cb6f2c33a6c83387e10cc0bf05bd3", |                 "sha256:b4e248d1087abf9f4c10f3c398896c87ce82a9856494a7155823eb45a892395d", | ||||||
|                 "sha256:c53af463f4a40de78c58b8b2710ade243c81cbca641e34debf3396a9640d6ec1", |                 "sha256:ba4e9e0ae13fc41c6b23299545e5ef73055213e466bd107953e4a013a5ddd7e3", | ||||||
|                 "sha256:cb763ceceae04803adcc4e2d80d611ef201c73da32d8f2722e9d0ab0c7f10768", |                 "sha256:c6332685306b6417a91b1ff9fae889b3ba65c2292d64bd9245c093b1b284809d", | ||||||
|                 "sha256:cc75f58cdaf043fe6a7a6c04b3b5a0e694c6a9e24050967747251fb80d7bce0d", |                 "sha256:d5ff0621c88ce83a28a10d2ce719b2ee85635e85c515f12bac99a95306da4b2e", | ||||||
|                 "sha256:d80998ed59176e8cba74028762fbd9b9153b9afc71ea118e63bbf5d4d0f9552b", |                 "sha256:d9efd8b7a3ef378dd61a1e77367f1924375befc2eba06168b6ebfa903a5e59ca", | ||||||
|                 "sha256:de31b5164d44ef4943db155b3e8e17929707cac1e5bd2f363e67a56e3af4af6e", |                 "sha256:df5169c4396adc04f9b0a05f13c074df878b6052430e03f50e68adf3a57aa28d", | ||||||
|                 "sha256:e66399cf0fc07de4dce4f588fc25bfe84a6d1285cc544e67987d22663393926d", |                 "sha256:ebb253464a5d0482b191274f1c8bf00e33f7e0b9c66405fbffc61ed2c839c775", | ||||||
|                 "sha256:f0620511387790860b249b9241c2f13c3a80e21a73e0b861a2df24e9d6f56730", |                 "sha256:ec80dc47f54e6e9a78181ce05feb71a0353854cc26999db963695f950b5fb375", | ||||||
|                 "sha256:f4eae045e6ab2bb54ca279733fe4eb85f1effda392666308250714e01907f394", |                 "sha256:f032b34669220030f905152045dfa27741ce1a6db3324a5bc0b96b6c7420c87b", | ||||||
|                 "sha256:f92cdecb618e5fa4658aeb97d5eb3d2f47aa94ac6477c6daf0f306c5a3b9e6b1", |                 "sha256:f60567825f791c6f8a592f3c6e3bd93dd2934e3f9dac189308426bd76b00ef3b", | ||||||
|                 "sha256:f92f789e4f9241cd262ad7a555ca2c648a98178a953af117ef7fad46aa1d5591" |                 "sha256:f803eaa94c2fcda012c047e62bc7a51b0bdabda1cad7a92a522694ea2d76e49f" | ||||||
|             ], |             ], | ||||||
|             "version": "==1.14.3" |             "version": "==1.14.4" | ||||||
|         }, |         }, | ||||||
|         "channels": { |         "channels": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
| @ -184,7 +178,6 @@ | |||||||
|                 "sha256:d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a", |                 "sha256:d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a", | ||||||
|                 "sha256:dacca89f4bfadd5de3d7489b7c8a566eee0d3676333fbb50030263894c38c0dc" |                 "sha256:dacca89f4bfadd5de3d7489b7c8a566eee0d3676333fbb50030263894c38c0dc" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", |  | ||||||
|             "version": "==7.1.2" |             "version": "==7.1.2" | ||||||
|         }, |         }, | ||||||
|         "click-didyoumean": { |         "click-didyoumean": { | ||||||
| @ -193,6 +186,13 @@ | |||||||
|             ], |             ], | ||||||
|             "version": "==0.0.3" |             "version": "==0.0.3" | ||||||
|         }, |         }, | ||||||
|  |         "click-plugins": { | ||||||
|  |             "hashes": [ | ||||||
|  |                 "sha256:46ab999744a9d831159c3411bb0c79346d94a444df9a3a3742e9ed63645f264b", | ||||||
|  |                 "sha256:5d262006d3222f5057fd81e1623d4443e41dcda5dc815c06b442aa3c02889fc8" | ||||||
|  |             ], | ||||||
|  |             "version": "==1.1.1" | ||||||
|  |         }, | ||||||
|         "click-repl": { |         "click-repl": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:9c4c3d022789cae912aad8a3f5e1d7c2cdd016ee1225b5212ad3e8691563cda5", |                 "sha256:9c4c3d022789cae912aad8a3f5e1d7c2cdd016ee1225b5212ad3e8691563cda5", | ||||||
| @ -223,45 +223,36 @@ | |||||||
|         }, |         }, | ||||||
|         "cryptography": { |         "cryptography": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:07ca431b788249af92764e3be9a488aa1d39a0bc3be313d826bbec690417e538", |                 "sha256:0003a52a123602e1acee177dc90dd201f9bb1e73f24a070db7d36c588e8f5c7d", | ||||||
|                 "sha256:13b88a0bd044b4eae1ef40e265d006e34dbcde0c2f1e15eb9896501b2d8f6c6f", |                 "sha256:0e85aaae861d0485eb5a79d33226dd6248d2a9f133b81532c8f5aae37de10ff7", | ||||||
|                 "sha256:32434673d8505b42c0de4de86da8c1620651abd24afe91ae0335597683ed1b77", |                 "sha256:594a1db4511bc4d960571536abe21b4e5c3003e8750ab8365fafce71c5d86901", | ||||||
|                 "sha256:3cd75a683b15576cfc822c7c5742b3276e50b21a06672dc3a800a2d5da4ecd1b", |                 "sha256:69e836c9e5ff4373ce6d3ab311c1a2eed274793083858d3cd4c7d12ce20d5f9c", | ||||||
|                 "sha256:4e7268a0ca14536fecfdf2b00297d4e407da904718658c1ff1961c713f90fd33", |                 "sha256:788a3c9942df5e4371c199d10383f44a105d67d401fb4304178020142f020244", | ||||||
|                 "sha256:545a8550782dda68f8cdc75a6e3bf252017aa8f75f19f5a9ca940772fc0cb56e", |                 "sha256:7e177e4bea2de937a584b13645cab32f25e3d96fc0bc4a4cf99c27dc77682be6", | ||||||
|                 "sha256:55d0b896631412b6f0c7de56e12eb3e261ac347fbaa5d5e705291a9016e5f8cb", |                 "sha256:83d9d2dfec70364a74f4e7c70ad04d3ca2e6a08b703606993407bf46b97868c5", | ||||||
|                 "sha256:5849d59358547bf789ee7e0d7a9036b2d29e9a4ddf1ce5e06bb45634f995c53e", |                 "sha256:84ef7a0c10c24a7773163f917f1cb6b4444597efd505a8aed0a22e8c4780f27e", | ||||||
|                 "sha256:6dc59630ecce8c1f558277ceb212c751d6730bd12c80ea96b4ac65637c4f55e7", |                 "sha256:9e21301f7a1e7c03dbea73e8602905a4ebba641547a462b26dd03451e5769e7c", | ||||||
|                 "sha256:7117319b44ed1842c617d0a452383a5a052ec6aa726dfbaffa8b94c910444297", |                 "sha256:9f6b0492d111b43de5f70052e24c1f0951cb9e6022188ebcb1cc3a3d301469b0", | ||||||
|                 "sha256:75e8e6684cf0034f6bf2a97095cb95f81537b12b36a8fedf06e73050bb171c2d", |                 "sha256:a69bd3c68b98298f490e84519b954335154917eaab52cf582fa2c5c7efc6e812", | ||||||
|                 "sha256:7b8d9d8d3a9bd240f453342981f765346c87ade811519f98664519696f8e6ab7", |                 "sha256:b4890d5fb9b7a23e3bf8abf5a8a7da8e228f1e97dc96b30b95685df840b6914a", | ||||||
|                 "sha256:a035a10686532b0587d58a606004aa20ad895c60c4d029afa245802347fab57b", |                 "sha256:c366df0401d1ec4e548bebe8f91d55ebcc0ec3137900d214dd7aac8427ef3030", | ||||||
|                 "sha256:a4e27ed0b2504195f855b52052eadcc9795c59909c9d84314c5408687f933fc7", |                 "sha256:dc42f645f8f3a489c3dd416730a514e7a91a59510ddaadc09d04224c098d3302" | ||||||
|                 "sha256:a733671100cd26d816eed39507e585c156e4498293a907029969234e5e634bc4", |  | ||||||
|                 "sha256:a75f306a16d9f9afebfbedc41c8c2351d8e61e818ba6b4c40815e2b5740bb6b8", |  | ||||||
|                 "sha256:bd717aa029217b8ef94a7d21632a3bb5a4e7218a4513d2521c2a2fd63011e98b", |  | ||||||
|                 "sha256:d25cecbac20713a7c3bc544372d42d8eafa89799f492a43b79e1dfd650484851", |  | ||||||
|                 "sha256:d26a2557d8f9122f9bf445fc7034242f4375bd4e95ecda007667540270965b13", |  | ||||||
|                 "sha256:d3545829ab42a66b84a9aaabf216a4dce7f16dbc76eb69be5c302ed6b8f4a29b", |  | ||||||
|                 "sha256:d3d5e10be0cf2a12214ddee45c6bd203dab435e3d83b4560c03066eda600bfe3", |  | ||||||
|                 "sha256:efe15aca4f64f3a7ea0c09c87826490e50ed166ce67368a68f315ea0807a20df" |  | ||||||
|             ], |             ], | ||||||
|             "version": "==3.2.1" |             "version": "==3.3.1" | ||||||
|         }, |         }, | ||||||
|         "dacite": { |         "dacite": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:764c96e0304cb189628686689a163a6a3a8ce7bf3465f0a2d882a8b42f88108f", |                 "sha256:4331535f7aabb505c732fa4c3c094313fc0a1d5ea19907bf4726a7819a68b93f", | ||||||
|                 "sha256:f7f269647ede90f8702728eb7dcb972051511c81b853a93c962fbd31f1753b9f" |                 "sha256:d48125ed0a0352d3de9f493bf980038088f45f3f9d7498f090b50a847daaa6df" | ||||||
|             ], |             ], | ||||||
|             "index": "pypi", |             "index": "pypi", | ||||||
|             "version": "==1.5.1" |             "version": "==1.6.0" | ||||||
|         }, |         }, | ||||||
|         "daphne": { |         "daphne": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:0052c9887600c57054a5867d4b0240159fa009faa3bcf6a1627271d9cdcb005a", |                 "sha256:0052c9887600c57054a5867d4b0240159fa009faa3bcf6a1627271d9cdcb005a", | ||||||
|                 "sha256:c22b692707f514de9013651ecb687f2abe4f35cf6fe292ece634e9f1737bc7e3" |                 "sha256:c22b692707f514de9013651ecb687f2abe4f35cf6fe292ece634e9f1737bc7e3" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '3.6'", |  | ||||||
|             "version": "==3.0.1" |             "version": "==3.0.1" | ||||||
|         }, |         }, | ||||||
|         "defusedxml": { |         "defusedxml": { | ||||||
| @ -274,11 +265,11 @@ | |||||||
|         }, |         }, | ||||||
|         "django": { |         "django": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:14a4b7cd77297fba516fc0d92444cc2e2e388aa9de32d7a68d4a83d58f5a4927", |                 "sha256:5c866205f15e7a7123f1eec6ab939d22d5bde1416635cab259684af66d8e48a2", | ||||||
|                 "sha256:14b87775ffedab2ef6299b73343d1b4b41e5d4e2aa58c6581f114dbec01e3f8f" |                 "sha256:edb10b5c45e7e9c0fb1dc00b76ec7449aca258a39ffd613dbd078c51d19c9f03" | ||||||
|             ], |             ], | ||||||
|             "index": "pypi", |             "index": "pypi", | ||||||
|             "version": "==3.1.3" |             "version": "==3.1.4" | ||||||
|         }, |         }, | ||||||
|         "django-cors-middleware": { |         "django-cors-middleware": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
| @ -313,11 +304,11 @@ | |||||||
|         }, |         }, | ||||||
|         "django-model-utils": { |         "django-model-utils": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:9cf882e5b604421b62dbe57ad2b18464dc9c8f963fc3f9831badccae66c1139c", |                 "sha256:eb5dd05ef7d7ce6bc79cae54ea7c4a221f6f81e2aad7722933aee66489e7264b", | ||||||
|                 "sha256:adf09e5be15122a7f4e372cb5a6dd512bbf8d78a23a90770ad0983ee9d909061" |                 "sha256:ef7c440024e797796a3811432abdd2be8b5225ae64ef346f8bfc6de7d8e5d73c" | ||||||
|             ], |             ], | ||||||
|             "index": "pypi", |             "index": "pypi", | ||||||
|             "version": "==4.0.0" |             "version": "==4.1.1" | ||||||
|         }, |         }, | ||||||
|         "django-otp": { |         "django-otp": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
| @ -375,11 +366,11 @@ | |||||||
|         }, |         }, | ||||||
|         "docker": { |         "docker": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:13966471e8bc23b36bfb3a6fb4ab75043a5ef1dac86516274777576bed3b9828", |                 "sha256:317e95a48c32de8c1aac92a48066a5b73e218ed096e03758bcdd799a7130a1a1", | ||||||
|                 "sha256:bad94b8dd001a8a4af19ce4becc17f41b09f228173ffe6a4e0355389eef142f2" |                 "sha256:cffc771d4ea1389fc66bc95cb72d304aa41d1a1563482a9a000fba3a84ed5071" | ||||||
|             ], |             ], | ||||||
|             "index": "pypi", |             "index": "pypi", | ||||||
|             "version": "==4.3.1" |             "version": "==4.4.0" | ||||||
|         }, |         }, | ||||||
|         "drf-yasg2": { |         "drf-yasg2": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
| @ -401,7 +392,6 @@ | |||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:b1bead90b70cf6ec3f0710ae53a525360fa360d306a86583adc6bf83a4db537d" |                 "sha256:b1bead90b70cf6ec3f0710ae53a525360fa360d306a86583adc6bf83a4db537d" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'", |  | ||||||
|             "version": "==0.18.2" |             "version": "==0.18.2" | ||||||
|         }, |         }, | ||||||
|         "google-auth": { |         "google-auth": { | ||||||
| @ -409,7 +399,6 @@ | |||||||
|                 "sha256:5176db85f1e7e837a646cd9cede72c3c404ccf2e3373d9ee14b2db88febad440", |                 "sha256:5176db85f1e7e837a646cd9cede72c3c404ccf2e3373d9ee14b2db88febad440", | ||||||
|                 "sha256:b728625ff5dfce8f9e56a499c8a4eb51443a67f20f6d28b67d5774c310ec4b6b" |                 "sha256:b728625ff5dfce8f9e56a499c8a4eb51443a67f20f6d28b67d5774c310ec4b6b" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", |  | ||||||
|             "version": "==1.23.0" |             "version": "==1.23.0" | ||||||
|         }, |         }, | ||||||
|         "gunicorn": { |         "gunicorn": { | ||||||
| @ -476,7 +465,6 @@ | |||||||
|                 "sha256:e64be68255234bb489a574c4f2f8df7029c98c81ec4d160d6cd836e7f0679390", |                 "sha256:e64be68255234bb489a574c4f2f8df7029c98c81ec4d160d6cd836e7f0679390", | ||||||
|                 "sha256:e82d6b930e02e80e5109b678c663a9ed210680ded81c1abaf54635d88d1da298" |                 "sha256:e82d6b930e02e80e5109b678c663a9ed210680ded81c1abaf54635d88d1da298" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", |  | ||||||
|             "version": "==1.1.0" |             "version": "==1.1.0" | ||||||
|         }, |         }, | ||||||
|         "httptools": { |         "httptools": { | ||||||
| @ -522,7 +510,6 @@ | |||||||
|                 "sha256:1a29730d366e996aaacffb2f1f1cb9593dc38e2ddd30c91250c6dde09ea9b417", |                 "sha256:1a29730d366e996aaacffb2f1f1cb9593dc38e2ddd30c91250c6dde09ea9b417", | ||||||
|                 "sha256:f38b2b640938a4f35ade69ac3d053042959b62a0f1076a5bbaa1b9526605a8a2" |                 "sha256:f38b2b640938a4f35ade69ac3d053042959b62a0f1076a5bbaa1b9526605a8a2" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '3.5'", |  | ||||||
|             "version": "==0.5.1" |             "version": "==0.5.1" | ||||||
|         }, |         }, | ||||||
|         "itypes": { |         "itypes": { | ||||||
| @ -537,7 +524,6 @@ | |||||||
|                 "sha256:89aab215427ef59c34ad58735269eb58b1a5808103067f7bb9d5836c651b3bb0", |                 "sha256:89aab215427ef59c34ad58735269eb58b1a5808103067f7bb9d5836c651b3bb0", | ||||||
|                 "sha256:f0a4641d3cf955324a89c04f3d94663aa4d638abe8f733ecd3582848e1c37035" |                 "sha256:f0a4641d3cf955324a89c04f3d94663aa4d638abe8f733ecd3582848e1c37035" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", |  | ||||||
|             "version": "==2.11.2" |             "version": "==2.11.2" | ||||||
|         }, |         }, | ||||||
|         "jmespath": { |         "jmespath": { | ||||||
| @ -545,7 +531,6 @@ | |||||||
|                 "sha256:b85d0567b8666149a93172712e68920734333c0ce7e89b78b3e987f71e5ed4f9", |                 "sha256:b85d0567b8666149a93172712e68920734333c0ce7e89b78b3e987f71e5ed4f9", | ||||||
|                 "sha256:cdf6525904cc597730141d61b36f2e4b8ecc257c420fa2f4549bac2c2d0cb72f" |                 "sha256:cdf6525904cc597730141d61b36f2e4b8ecc257c420fa2f4549bac2c2d0cb72f" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'", |  | ||||||
|             "version": "==0.10.0" |             "version": "==0.10.0" | ||||||
|         }, |         }, | ||||||
|         "jsonschema": { |         "jsonschema": { | ||||||
| @ -560,7 +545,6 @@ | |||||||
|                 "sha256:6dc509178ac4269b0e66ab4881f70a2035c33d3a622e20585f965986a5182006", |                 "sha256:6dc509178ac4269b0e66ab4881f70a2035c33d3a622e20585f965986a5182006", | ||||||
|                 "sha256:f4965fba0a4718d47d470beeb5d6446e3357a62402b16c510b6a2f251e05ac3c" |                 "sha256:f4965fba0a4718d47d470beeb5d6446e3357a62402b16c510b6a2f251e05ac3c" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '3.6'", |  | ||||||
|             "version": "==5.0.2" |             "version": "==5.0.2" | ||||||
|         }, |         }, | ||||||
|         "kubernetes": { |         "kubernetes": { | ||||||
| @ -573,57 +557,54 @@ | |||||||
|         }, |         }, | ||||||
|         "ldap3": { |         "ldap3": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:10bdd23b612e942ce90ea4dbc744dfd88735949833e46c5467a2dcf68e60f469", |  | ||||||
|                 "sha256:37d633e20fa360c302b1263c96fe932d40622d0119f1bddcb829b03462eeeeb7", |                 "sha256:37d633e20fa360c302b1263c96fe932d40622d0119f1bddcb829b03462eeeeb7", | ||||||
|                 "sha256:7c3738570766f5e5e74a56fade15470f339d5c436d821cf476ef27da0a4de8b0", |                 "sha256:7c3738570766f5e5e74a56fade15470f339d5c436d821cf476ef27da0a4de8b0" | ||||||
|                 "sha256:8f59a7b5399555b22db06f153daa76c77ded2dd84bc0f0ffe5b0b33901b6eac4", |  | ||||||
|                 "sha256:bed71c6ce2f70a00a330eed0c8370664c065239d45bcbe1b82517b6f6eed7f25" |  | ||||||
|             ], |             ], | ||||||
|             "index": "pypi", |             "index": "pypi", | ||||||
|             "version": "==2.8.1" |             "version": "==2.8.1" | ||||||
|         }, |         }, | ||||||
|         "lxml": { |         "lxml": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:098fb713b31050463751dcc694878e1d39f316b86366fb9fe3fbbe5396ac9fab", |                 "sha256:0448576c148c129594d890265b1a83b9cd76fd1f0a6a04620753d9a6bcfd0a4d", | ||||||
|                 "sha256:0e89f5d422988c65e6936e4ec0fe54d6f73f3128c80eb7ecc3b87f595523607b", |                 "sha256:127f76864468d6630e1b453d3ffbbd04b024c674f55cf0a30dc2595137892d37", | ||||||
|                 "sha256:189ad47203e846a7a4951c17694d845b6ade7917c47c64b29b86526eefc3adf5", |                 "sha256:1471cee35eba321827d7d53d104e7b8c593ea3ad376aa2df89533ce8e1b24a01", | ||||||
|                 "sha256:1d87936cb5801c557f3e981c9c193861264c01209cb3ad0964a16310ca1b3301", |                 "sha256:2363c35637d2d9d6f26f60a208819e7eafc4305ce39dc1d5005eccc4593331c2", | ||||||
|                 "sha256:211b3bcf5da70c2d4b84d09232534ad1d78320762e2c59dedc73bf01cb1fc45b", |                 "sha256:2e5cc908fe43fe1aa299e58046ad66981131a66aea3129aac7770c37f590a644", | ||||||
|                 "sha256:2358809cc64394617f2719147a58ae26dac9e21bae772b45cfb80baa26bfca5d", |                 "sha256:2e6fd1b8acd005bd71e6c94f30c055594bbd0aa02ef51a22bbfa961ab63b2d75", | ||||||
|                 "sha256:23c83112b4dada0b75789d73f949dbb4e8f29a0a3511647024a398ebd023347b", |                 "sha256:366cb750140f221523fa062d641393092813b81e15d0e25d9f7c6025f910ee80", | ||||||
|                 "sha256:24e811118aab6abe3ce23ff0d7d38932329c513f9cef849d3ee88b0f848f2aa9", |                 "sha256:42ebca24ba2a21065fb546f3e6bd0c58c3fe9ac298f3a320147029a4850f51a2", | ||||||
|                 "sha256:2d5896ddf5389560257bbe89317ca7bcb4e54a02b53a3e572e1ce4226512b51b", |                 "sha256:4e751e77006da34643ab782e4a5cc21ea7b755551db202bc4d3a423b307db780", | ||||||
|                 "sha256:2d6571c48328be4304aee031d2d5046cbc8aed5740c654575613c5a4f5a11311", |                 "sha256:4fb85c447e288df535b17ebdebf0ec1cf3a3f1a8eba7e79169f4f37af43c6b98", | ||||||
|                 "sha256:2e311a10f3e85250910a615fe194839a04a0f6bc4e8e5bb5cac221344e3a7891", |                 "sha256:50c348995b47b5a4e330362cf39fc503b4a43b14a91c34c83b955e1805c8e308", | ||||||
|                 "sha256:302160eb6e9764168e01d8c9ec6becddeb87776e81d3fcb0d97954dd51d48e0a", |                 "sha256:535332fe9d00c3cd455bd3dd7d4bacab86e2d564bdf7606079160fa6251caacf", | ||||||
|                 "sha256:3a7a380bfecc551cfd67d6e8ad9faa91289173bdf12e9cfafbd2bdec0d7b1ec1", |                 "sha256:535f067002b0fd1a4e5296a8f1bf88193080ff992a195e66964ef2a6cfec5388", | ||||||
|                 "sha256:3d9b2b72eb0dbbdb0e276403873ecfae870599c83ba22cadff2db58541e72856", |                 "sha256:5be4a2e212bb6aa045e37f7d48e3e1e4b6fd259882ed5a00786f82e8c37ce77d", | ||||||
|                 "sha256:475325e037fdf068e0c2140b818518cf6bc4aa72435c407a798b2db9f8e90810", |                 "sha256:60a20bfc3bd234d54d49c388950195d23a5583d4108e1a1d47c9eef8d8c042b3", | ||||||
|                 "sha256:4b7572145054330c8e324a72d808c8c8fbe12be33368db28c39a255ad5f7fb51", |                 "sha256:648914abafe67f11be7d93c1a546068f8eff3c5fa938e1f94509e4a5d682b2d8", | ||||||
|                 "sha256:4fff34721b628cce9eb4538cf9a73d02e0f3da4f35a515773cce6f5fe413b360", |                 "sha256:681d75e1a38a69f1e64ab82fe4b1ed3fd758717bed735fb9aeaa124143f051af", | ||||||
|                 "sha256:56eff8c6fb7bc4bcca395fdff494c52712b7a57486e4fbde34c31bb9da4c6cc4", |                 "sha256:68a5d77e440df94011214b7db907ec8f19e439507a70c958f750c18d88f995d2", | ||||||
|                 "sha256:573b2f5496c7e9f4985de70b9bbb4719ffd293d5565513e04ac20e42e6e5583f", |                 "sha256:69a63f83e88138ab7642d8f61418cf3180a4d8cd13995df87725cb8b893e950e", | ||||||
|                 "sha256:7ecaef52fd9b9535ae5f01a1dd2651f6608e4ec9dc136fc4dfe7ebe3c3ddb230", |                 "sha256:6e4183800f16f3679076dfa8abf2db3083919d7e30764a069fb66b2b9eff9939", | ||||||
|                 "sha256:803a80d72d1f693aa448566be46ffd70882d1ad8fc689a2e22afe63035eb998a", |                 "sha256:6fd8d5903c2e53f49e99359b063df27fdf7acb89a52b6a12494208bf61345a03", | ||||||
|                 "sha256:8862d1c2c020cb7a03b421a9a7b4fe046a208db30994fc8ff68c627a7915987f", |                 "sha256:791394449e98243839fa822a637177dd42a95f4883ad3dec2a0ce6ac99fb0a9d", | ||||||
|                 "sha256:9b06690224258db5cd39a84e993882a6874676f5de582da57f3df3a82ead9174", |                 "sha256:7a7669ff50f41225ca5d6ee0a1ec8413f3a0d8aa2b109f86d540887b7ec0d72a", | ||||||
|                 "sha256:a71400b90b3599eb7bf241f947932e18a066907bf84617d80817998cee81e4bf", |                 "sha256:7e9eac1e526386df7c70ef253b792a0a12dd86d833b1d329e038c7a235dfceb5", | ||||||
|                 "sha256:bb252f802f91f59767dcc559744e91efa9df532240a502befd874b54571417bd", |                 "sha256:7ee8af0b9f7de635c61cdd5b8534b76c52cd03536f29f51151b377f76e214a1a", | ||||||
|                 "sha256:be1ebf9cc25ab5399501c9046a7dcdaa9e911802ed0e12b7d620cd4bbf0518b3", |                 "sha256:8246f30ca34dc712ab07e51dc34fea883c00b7ccb0e614651e49da2c49a30711", | ||||||
|                 "sha256:be7c65e34d1b50ab7093b90427cbc488260e4b3a38ef2435d65b62e9fa3d798a", |                 "sha256:8c88b599e226994ad4db29d93bc149aa1aff3dc3a4355dd5757569ba78632bdf", | ||||||
|                 "sha256:c0dac835c1a22621ffa5e5f999d57359c790c52bbd1c687fe514ae6924f65ef5", |                 "sha256:923963e989ffbceaa210ac37afc9b906acebe945d2723e9679b643513837b089", | ||||||
|                 "sha256:c152b2e93b639d1f36ec5a8ca24cde4a8eefb2b6b83668fcd8e83a67badcb367", |                 "sha256:94d55bd03d8671686e3f012577d9caa5421a07286dd351dfef64791cf7c6c505", | ||||||
|                 "sha256:d182eada8ea0de61a45a526aa0ae4bcd222f9673424e65315c35820291ff299c", |                 "sha256:97db258793d193c7b62d4e2586c6ed98d51086e93f9a3af2b2034af01450a74b", | ||||||
|                 "sha256:d18331ea905a41ae71596502bd4c9a2998902328bbabd29e3d0f5f8569fabad1", |                 "sha256:a9d6bc8642e2c67db33f1247a77c53476f3a166e09067c0474facb045756087f", | ||||||
|                 "sha256:d20d32cbb31d731def4b1502294ca2ee99f9249b63bc80e03e67e8f8e126dea8", |                 "sha256:cd11c7e8d21af997ee8079037fff88f16fda188a9776eb4b81c7e4c9c0a7d7fc", | ||||||
|                 "sha256:d4ad7fd3269281cb471ad6c7bafca372e69789540d16e3755dd717e9e5c9d82f", |                 "sha256:d8d3d4713f0c28bdc6c806a278d998546e8efc3498949e3ace6e117462ac0a5e", | ||||||
|                 "sha256:d6f8c23f65a4bfe4300b85f1f40f6c32569822d08901db3b6454ab785d9117cc", |                 "sha256:e0bfe9bb028974a481410432dbe1b182e8191d5d40382e5b8ff39cdd2e5c5931", | ||||||
|                 "sha256:d84d741c6e35c9f3e7406cb7c4c2e08474c2a6441d59322a00dcae65aac6315d", |                 "sha256:f4822c0660c3754f1a41a655e37cb4dbbc9be3d35b125a37fab6f82d47674ebc", | ||||||
|                 "sha256:e65c221b2115a91035b55a593b6eb94aa1206fa3ab374f47c6dc10d364583ff9", |                 "sha256:f83d281bb2a6217cd806f4cf0ddded436790e66f393e124dfe9731f6b3fb9afe", | ||||||
|                 "sha256:f98b6f256be6cec8dd308a8563976ddaff0bdc18b730720f6f4bee927ffe926f" |                 "sha256:fc37870d6716b137e80d19241d0e2cff7a7643b925dfa49b4c8ebd1295eb506e" | ||||||
|             ], |             ], | ||||||
|             "index": "pypi", |             "index": "pypi", | ||||||
|             "version": "==4.6.1" |             "version": "==4.6.2" | ||||||
|         }, |         }, | ||||||
|         "markupsafe": { |         "markupsafe": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
| @ -661,7 +642,6 @@ | |||||||
|                 "sha256:e249096428b3ae81b08327a63a485ad0878de3fb939049038579ac0ef61e17e7", |                 "sha256:e249096428b3ae81b08327a63a485ad0878de3fb939049038579ac0ef61e17e7", | ||||||
|                 "sha256:e8313f01ba26fbbe36c7be1966a7b7424942f670f38e666995b88d012765b9be" |                 "sha256:e8313f01ba26fbbe36c7be1966a7b7424942f670f38e666995b88d012765b9be" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", |  | ||||||
|             "version": "==1.1.1" |             "version": "==1.1.1" | ||||||
|         }, |         }, | ||||||
|         "msgpack": { |         "msgpack": { | ||||||
| @ -692,106 +672,82 @@ | |||||||
|                 "sha256:bee41cc35fcca6e988463cacc3bcb8a96224f470ca547e697b604cc697b2f889", |                 "sha256:bee41cc35fcca6e988463cacc3bcb8a96224f470ca547e697b604cc697b2f889", | ||||||
|                 "sha256:df884cd6cbe20e32633f1db1072e9356f53638e4361bef4e8b03c9127c9328ea" |                 "sha256:df884cd6cbe20e32633f1db1072e9356f53638e4361bef4e8b03c9127c9328ea" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", |  | ||||||
|             "version": "==3.1.0" |             "version": "==3.1.0" | ||||||
|         }, |         }, | ||||||
|         "packaging": { |         "packaging": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:4357f74f47b9c12db93624a82154e9b120fa8293699949152b22065d556079f8", |                 "sha256:05af3bb85d320377db281cf254ab050e1a7ebcbf5410685a9a407e18a1f81236", | ||||||
|                 "sha256:998416ba6962ae7fbd6596850b80e17859a5753ba17c32284f67bfff33784181" |                 "sha256:eb41423378682dadb7166144a4926e443093863024de508ca5c9737d6bc08376" | ||||||
|             ], |             ], | ||||||
|             "index": "pypi", |             "index": "pypi", | ||||||
|             "version": "==20.4" |             "version": "==20.7" | ||||||
|         }, |         }, | ||||||
|         "prometheus-client": { |         "prometheus-client": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:983c7ac4b47478720db338f1491ef67a100b474e3bc7dafcbaefb7d0b8f9b01c", |                 "sha256:9da7b32f02439d8c04f7777021c304ed51d9ec180604700c1ba72a4d44dceb03", | ||||||
|                 "sha256:c6e6b706833a6bd1fd51711299edee907857be10ece535126a158f911ee80915" |                 "sha256:b08c34c328e1bf5961f0b4352668e6c8f145b4a087e09b7296ef62cbe4693d35" | ||||||
|             ], |             ], | ||||||
|             "version": "==0.8.0" |             "version": "==0.9.0" | ||||||
|         }, |         }, | ||||||
|         "prompt-toolkit": { |         "prompt-toolkit": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:25c95d2ac813909f813c93fde734b6e44406d1477a9faef7c915ff37d39c0a8c", |                 "sha256:25c95d2ac813909f813c93fde734b6e44406d1477a9faef7c915ff37d39c0a8c", | ||||||
|                 "sha256:7debb9a521e0b1ee7d2fe96ee4bd60ef03c6492784de0547337ca4433e46aa63" |                 "sha256:7debb9a521e0b1ee7d2fe96ee4bd60ef03c6492784de0547337ca4433e46aa63" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_full_version >= '3.6.1'", |  | ||||||
|             "version": "==3.0.8" |             "version": "==3.0.8" | ||||||
|         }, |         }, | ||||||
|         "psycopg2-binary": { |         "psycopg2-binary": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:ad20d2eb875aaa1ea6d0f2916949f5c08a19c74d05b16ce6ebf6d24f2c9f75d1", |                 "sha256:0deac2af1a587ae12836aa07970f5cb91964f05a7c6cdb69d8425ff4c15d4e2c", | ||||||
|  |                 "sha256:0e4dc3d5996760104746e6cfcdb519d9d2cd27c738296525d5867ea695774e67", | ||||||
|  |                 "sha256:11b9c0ebce097180129e422379b824ae21c8f2a6596b159c7659e2e5a00e1aa0", | ||||||
|                 "sha256:15978a1fbd225583dd8cdaf37e67ccc278b5abecb4caf6b2d6b8e2b948e953f6", |                 "sha256:15978a1fbd225583dd8cdaf37e67ccc278b5abecb4caf6b2d6b8e2b948e953f6", | ||||||
|                 "sha256:d14b140a4439d816e3b1229a4a525df917d6ea22a0771a2a78332273fd9528a4", |                 "sha256:1fabed9ea2acc4efe4671b92c669a213db744d2af8a9fc5d69a8e9bc14b7a9db", | ||||||
|  |                 "sha256:2dac98e85565d5688e8ab7bdea5446674a83a3945a8f416ad0110018d1501b94", | ||||||
|  |                 "sha256:42ec1035841b389e8cc3692277a0bd81cdfe0b65d575a2c8862cec7a80e62e52", | ||||||
|                 "sha256:6422f2ff0919fd720195f64ffd8f924c1395d30f9a495f31e2392c2efafb5056", |                 "sha256:6422f2ff0919fd720195f64ffd8f924c1395d30f9a495f31e2392c2efafb5056", | ||||||
|                 "sha256:6a32f3a4cb2f6e1a0b15215f448e8ce2da192fd4ff35084d80d5e39da683e79b", |                 "sha256:6a32f3a4cb2f6e1a0b15215f448e8ce2da192fd4ff35084d80d5e39da683e79b", | ||||||
|                 "sha256:2dac98e85565d5688e8ab7bdea5446674a83a3945a8f416ad0110018d1501b94", |  | ||||||
|                 "sha256:89705f45ce07b2dfa806ee84439ec67c5d9a0ef20154e0e475e2b2ed392a5b83", |  | ||||||
|                 "sha256:7d92a09b788cbb1aec325af5fcba9fed7203897bbd9269d5691bb1e3bce29550", |  | ||||||
|                 "sha256:0deac2af1a587ae12836aa07970f5cb91964f05a7c6cdb69d8425ff4c15d4e2c", |  | ||||||
|                 "sha256:aaa4213c862f0ef00022751161df35804127b78adf4a2755b9f991a507e425fd", |  | ||||||
|                 "sha256:cec7e622ebc545dbb4564e483dd20e4e404da17ae07e06f3e780b2dacd5cee66", |  | ||||||
|                 "sha256:42ec1035841b389e8cc3692277a0bd81cdfe0b65d575a2c8862cec7a80e62e52", |  | ||||||
|                 "sha256:c2507d796fca339c8fb03216364cca68d87e037c1f774977c8fc377627d01c71", |  | ||||||
|                 "sha256:833709a5c66ca52f1d21d41865a637223b368c0ee76ea54ca5bad6f2526c7679", |  | ||||||
|                 "sha256:a0eb43a07386c3f1f1ebb4dc7aafb13f67188eab896e7397aa1ee95a9c884eb2", |  | ||||||
|                 "sha256:e74a55f6bad0e7d3968399deb50f61f4db1926acf4a6d83beaaa7df986f48b1c", |  | ||||||
|                 "sha256:950bc22bb56ee6ff142a2cb9ee980b571dd0912b0334aa3fe0fe3788d860bea2", |  | ||||||
|                 "sha256:b8a3715b3c4e604bcc94c90a825cd7f5635417453b253499664f784fc4da0152", |  | ||||||
|                 "sha256:1fabed9ea2acc4efe4671b92c669a213db744d2af8a9fc5d69a8e9bc14b7a9db", |  | ||||||
|                 "sha256:e1f57aa70d3f7cc6947fd88636a481638263ba04a742b4a37dd25c373e41491a", |  | ||||||
|                 "sha256:11b9c0ebce097180129e422379b824ae21c8f2a6596b159c7659e2e5a00e1aa0", |  | ||||||
|                 "sha256:bd1be66dde2b82f80afb9459fc618216753f67109b859a361cf7def5c7968729", |  | ||||||
|                 "sha256:e82aba2188b9ba309fd8e271702bd0d0fc9148ae3150532bbb474f4590039ffb", |  | ||||||
|                 "sha256:a0c50db33c32594305b0ef9abc0cb7db13de7621d2cadf8392a1d9b3c437ef77", |  | ||||||
|                 "sha256:7312e931b90fe14f925729cde58022f5d034241918a5c4f9797cac62f6b3a9dd", |                 "sha256:7312e931b90fe14f925729cde58022f5d034241918a5c4f9797cac62f6b3a9dd", | ||||||
|                 "sha256:ba381aec3a5dc29634f20692349d73f2d21f17653bda1decf0b52b11d694541f", |                 "sha256:7d92a09b788cbb1aec325af5fcba9fed7203897bbd9269d5691bb1e3bce29550", | ||||||
|  |                 "sha256:833709a5c66ca52f1d21d41865a637223b368c0ee76ea54ca5bad6f2526c7679", | ||||||
|  |                 "sha256:89705f45ce07b2dfa806ee84439ec67c5d9a0ef20154e0e475e2b2ed392a5b83", | ||||||
|                 "sha256:8cd0fb36c7412996859cb4606a35969dd01f4ea34d9812a141cd920c3b18be77", |                 "sha256:8cd0fb36c7412996859cb4606a35969dd01f4ea34d9812a141cd920c3b18be77", | ||||||
|                 "sha256:ee69dad2c7155756ad114c02db06002f4cded41132cc51378e57aad79cc8e4f4", |                 "sha256:950bc22bb56ee6ff142a2cb9ee980b571dd0912b0334aa3fe0fe3788d860bea2", | ||||||
|                 "sha256:f5ab93a2cb2d8338b1674be43b442a7f544a0971da062a5da774ed40587f18f5", |                 "sha256:a0c50db33c32594305b0ef9abc0cb7db13de7621d2cadf8392a1d9b3c437ef77", | ||||||
|                 "sha256:ba28584e6bca48c59eecbf7efb1576ca214b47f05194646b081717fa628dfddf", |                 "sha256:a0eb43a07386c3f1f1ebb4dc7aafb13f67188eab896e7397aa1ee95a9c884eb2", | ||||||
|                 "sha256:0e4dc3d5996760104746e6cfcdb519d9d2cd27c738296525d5867ea695774e67", |                 "sha256:aaa4213c862f0ef00022751161df35804127b78adf4a2755b9f991a507e425fd", | ||||||
|                 "sha256:d5227b229005a696cc67676e24c214740efd90b148de5733419ac9aaba3773da", |  | ||||||
|                 "sha256:ac0c682111fbf404525dfc0f18a8b5f11be52657d4f96e9fcb75daf4f3984859", |                 "sha256:ac0c682111fbf404525dfc0f18a8b5f11be52657d4f96e9fcb75daf4f3984859", | ||||||
|  |                 "sha256:ad20d2eb875aaa1ea6d0f2916949f5c08a19c74d05b16ce6ebf6d24f2c9f75d1", | ||||||
|                 "sha256:b4afc542c0ac0db720cf516dd20c0846f71c248d2b3d21013aa0d4ef9c71ca25", |                 "sha256:b4afc542c0ac0db720cf516dd20c0846f71c248d2b3d21013aa0d4ef9c71ca25", | ||||||
|                 "sha256:d1b4ab59e02d9008efe10ceabd0b31e79519da6fb67f7d8e8977118832d0f449" |                 "sha256:b8a3715b3c4e604bcc94c90a825cd7f5635417453b253499664f784fc4da0152", | ||||||
|  |                 "sha256:ba28584e6bca48c59eecbf7efb1576ca214b47f05194646b081717fa628dfddf", | ||||||
|  |                 "sha256:ba381aec3a5dc29634f20692349d73f2d21f17653bda1decf0b52b11d694541f", | ||||||
|  |                 "sha256:bd1be66dde2b82f80afb9459fc618216753f67109b859a361cf7def5c7968729", | ||||||
|  |                 "sha256:c2507d796fca339c8fb03216364cca68d87e037c1f774977c8fc377627d01c71", | ||||||
|  |                 "sha256:cec7e622ebc545dbb4564e483dd20e4e404da17ae07e06f3e780b2dacd5cee66", | ||||||
|  |                 "sha256:d14b140a4439d816e3b1229a4a525df917d6ea22a0771a2a78332273fd9528a4", | ||||||
|  |                 "sha256:d1b4ab59e02d9008efe10ceabd0b31e79519da6fb67f7d8e8977118832d0f449", | ||||||
|  |                 "sha256:d5227b229005a696cc67676e24c214740efd90b148de5733419ac9aaba3773da", | ||||||
|  |                 "sha256:e1f57aa70d3f7cc6947fd88636a481638263ba04a742b4a37dd25c373e41491a", | ||||||
|  |                 "sha256:e74a55f6bad0e7d3968399deb50f61f4db1926acf4a6d83beaaa7df986f48b1c", | ||||||
|  |                 "sha256:e82aba2188b9ba309fd8e271702bd0d0fc9148ae3150532bbb474f4590039ffb", | ||||||
|  |                 "sha256:ee69dad2c7155756ad114c02db06002f4cded41132cc51378e57aad79cc8e4f4", | ||||||
|  |                 "sha256:f5ab93a2cb2d8338b1674be43b442a7f544a0971da062a5da774ed40587f18f5" | ||||||
|             ], |             ], | ||||||
|             "index": "pypi", |             "index": "pypi", | ||||||
|             "version": "==2.8.6" |             "version": "==2.8.6" | ||||||
|         }, |         }, | ||||||
|         "pyasn1": { |         "pyasn1": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:014c0e9976956a08139dc0712ae195324a75e142284d5f87f1a87ee1b068a359", |  | ||||||
|                 "sha256:03840c999ba71680a131cfaee6fab142e1ed9bbd9c693e285cc6aca0d555e576", |  | ||||||
|                 "sha256:0458773cfe65b153891ac249bcf1b5f8f320b7c2ce462151f8fa74de8934becf", |  | ||||||
|                 "sha256:08c3c53b75eaa48d71cf8c710312316392ed40899cb34710d092e96745a358b7", |  | ||||||
|                 "sha256:39c7e2ec30515947ff4e87fb6f456dfc6e84857d34be479c9d4a4ba4bf46aa5d", |                 "sha256:39c7e2ec30515947ff4e87fb6f456dfc6e84857d34be479c9d4a4ba4bf46aa5d", | ||||||
|                 "sha256:5c9414dcfede6e441f7e8f81b43b34e834731003427e5b09e4e00e3172a10f00", |                 "sha256:aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba" | ||||||
|                 "sha256:6e7545f1a61025a4e58bb336952c5061697da694db1cae97b116e9c46abcf7c8", |  | ||||||
|                 "sha256:78fa6da68ed2727915c4767bb386ab32cdba863caa7dbe473eaae45f9959da86", |  | ||||||
|                 "sha256:7ab8a544af125fb704feadb008c99a88805126fb525280b2270bb25cc1d78a12", |  | ||||||
|                 "sha256:99fcc3c8d804d1bc6d9a099921e39d827026409a58f2a720dcdb89374ea0c776", |  | ||||||
|                 "sha256:aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba", |  | ||||||
|                 "sha256:e89bf84b5437b532b0803ba5c9a5e054d21fec423a89952a74f87fa2c9b7bce2", |  | ||||||
|                 "sha256:fec3e9d8e36808a28efb59b489e4528c10ad0f480e57dcc32b4de5c9d8c9fdf3" |  | ||||||
|             ], |             ], | ||||||
|             "version": "==0.4.8" |             "version": "==0.4.8" | ||||||
|         }, |         }, | ||||||
|         "pyasn1-modules": { |         "pyasn1-modules": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:0845a5582f6a02bb3e1bde9ecfc4bfcae6ec3210dd270522fee602365430c3f8", |  | ||||||
|                 "sha256:0fe1b68d1e486a1ed5473f1302bd991c1611d319bba158e98b106ff86e1d7199", |  | ||||||
|                 "sha256:15b7c67fabc7fc240d87fb9aabf999cf82311a6d6fb2c70d00d3d0604878c811", |  | ||||||
|                 "sha256:426edb7a5e8879f1ec54a1864f16b882c2837bfd06eee62f2c982315ee2473ed", |  | ||||||
|                 "sha256:65cebbaffc913f4fe9e4808735c95ea22d7a7775646ab690518c056784bc21b4", |  | ||||||
|                 "sha256:905f84c712230b2c592c19470d3ca8d552de726050d1d1716282a1f6146be65e", |                 "sha256:905f84c712230b2c592c19470d3ca8d552de726050d1d1716282a1f6146be65e", | ||||||
|                 "sha256:a50b808ffeb97cb3601dd25981f6b016cbb3d31fbf57a8b8a87428e6158d0c74", |                 "sha256:a50b808ffeb97cb3601dd25981f6b016cbb3d31fbf57a8b8a87428e6158d0c74" | ||||||
|                 "sha256:a99324196732f53093a84c4369c996713eb8c89d360a496b599fb1a9c47fc3eb", |  | ||||||
|                 "sha256:b80486a6c77252ea3a3e9b1e360bc9cf28eaac41263d173c032581ad2f20fe45", |  | ||||||
|                 "sha256:c29a5e5cc7a3f05926aff34e097e84f8589cd790ce0ed41b67aed6857b26aafd", |  | ||||||
|                 "sha256:cbac4bc38d117f2a49aeedec4407d23e8866ea4ac27ff2cf7fb3e5b570df19e0", |  | ||||||
|                 "sha256:f39edd8c4ecaa4556e989147ebf219227e2cd2e8a43c7e7fcb1f1c18c5fd6a3d", |  | ||||||
|                 "sha256:fe0644d9ab041506b62782e92b06b8c68cca799e1a9636ec398675459e031405" |  | ||||||
|             ], |             ], | ||||||
|             "version": "==0.2.8" |             "version": "==0.2.8" | ||||||
|         }, |         }, | ||||||
| @ -800,7 +756,6 @@ | |||||||
|                 "sha256:2d475327684562c3a96cc71adf7dc8c4f0565175cf86b6d7a404ff4c771f15f0", |                 "sha256:2d475327684562c3a96cc71adf7dc8c4f0565175cf86b6d7a404ff4c771f15f0", | ||||||
|                 "sha256:7582ad22678f0fcd81102833f60ef8d0e57288b6b5fb00323d101be910e35705" |                 "sha256:7582ad22678f0fcd81102833f60ef8d0e57288b6b5fb00323d101be910e35705" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", |  | ||||||
|             "version": "==2.20" |             "version": "==2.20" | ||||||
|         }, |         }, | ||||||
|         "pycryptodome": { |         "pycryptodome": { | ||||||
| @ -882,7 +837,6 @@ | |||||||
|                 "sha256:f20a62397e09704049ce9007bea4f6bad965ba9336a760c6f4ef1b4192e12d6d", |                 "sha256:f20a62397e09704049ce9007bea4f6bad965ba9336a760c6f4ef1b4192e12d6d", | ||||||
|                 "sha256:f81f7311250d9480e36dec819127897ae772e7e8de07abfabe931b8566770b8e" |                 "sha256:f81f7311250d9480e36dec819127897ae772e7e8de07abfabe931b8566770b8e" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'", |  | ||||||
|             "version": "==3.9.9" |             "version": "==3.9.9" | ||||||
|         }, |         }, | ||||||
|         "pyhamcrest": { |         "pyhamcrest": { | ||||||
| @ -890,7 +844,6 @@ | |||||||
|                 "sha256:412e00137858f04bde0729913874a48485665f2d36fe9ee449f26be864af9316", |                 "sha256:412e00137858f04bde0729913874a48485665f2d36fe9ee449f26be864af9316", | ||||||
|                 "sha256:7ead136e03655af85069b6f47b23eb7c3e5c221aa9f022a4fbb499f5b7308f29" |                 "sha256:7ead136e03655af85069b6f47b23eb7c3e5c221aa9f022a4fbb499f5b7308f29" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '3.5'", |  | ||||||
|             "version": "==2.0.2" |             "version": "==2.0.2" | ||||||
|         }, |         }, | ||||||
|         "pyjwkest": { |         "pyjwkest": { | ||||||
| @ -902,24 +855,22 @@ | |||||||
|         }, |         }, | ||||||
|         "pyopenssl": { |         "pyopenssl": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:621880965a720b8ece2f1b2f54ea2071966ab00e2970ad2ce11d596102063504", |                 "sha256:898aefbde331ba718570244c3b01dcddb1b31a3b336613436a45e52e27d9a82d", | ||||||
|                 "sha256:9a24494b2602aaf402be5c9e30a0b82d4a5c67528fe8fb475e3f3bc00dd69507" |                 "sha256:92f08eccbd73701cf744e8ffd6989aa7842d48cbe3fea8a7c031c5647f590ac5" | ||||||
|             ], |             ], | ||||||
|             "version": "==19.1.0" |             "version": "==20.0.0" | ||||||
|         }, |         }, | ||||||
|         "pyparsing": { |         "pyparsing": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1", |                 "sha256:c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1", | ||||||
|                 "sha256:ef9d7589ef3c200abe66653d3f1ab1033c3c419ae9b9bdb1240a85b024efc88b" |                 "sha256:ef9d7589ef3c200abe66653d3f1ab1033c3c419ae9b9bdb1240a85b024efc88b" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'", |  | ||||||
|             "version": "==2.4.7" |             "version": "==2.4.7" | ||||||
|         }, |         }, | ||||||
|         "pyrsistent": { |         "pyrsistent": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:2e636185d9eb976a18a8a8e96efce62f2905fea90041958d8cc2a189756ebf3e" |                 "sha256:2e636185d9eb976a18a8a8e96efce62f2905fea90041958d8cc2a189756ebf3e" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '3.5'", |  | ||||||
|             "version": "==0.17.3" |             "version": "==0.17.3" | ||||||
|         }, |         }, | ||||||
|         "python-dateutil": { |         "python-dateutil": { | ||||||
| @ -927,7 +878,6 @@ | |||||||
|                 "sha256:73ebfe9dbf22e832286dafa60473e4cd239f8592f699aa5adaf10050e6e1823c", |                 "sha256:73ebfe9dbf22e832286dafa60473e4cd239f8592f699aa5adaf10050e6e1823c", | ||||||
|                 "sha256:75bb3f31ea686f1197762692a9ee6a7550b59fc6ca3a1f4b5d7e32fb98e2da2a" |                 "sha256:75bb3f31ea686f1197762692a9ee6a7550b59fc6ca3a1f4b5d7e32fb98e2da2a" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", |  | ||||||
|             "version": "==2.8.1" |             "version": "==2.8.1" | ||||||
|         }, |         }, | ||||||
|         "python-dotenv": { |         "python-dotenv": { | ||||||
| @ -949,11 +899,13 @@ | |||||||
|                 "sha256:06a0d7ba600ce0b2d2fe2e78453a470b5a6e000a985dd4a4e54e436cc36b0e97", |                 "sha256:06a0d7ba600ce0b2d2fe2e78453a470b5a6e000a985dd4a4e54e436cc36b0e97", | ||||||
|                 "sha256:240097ff019d7c70a4922b6869d8a86407758333f02203e0fc6ff79c5dcede76", |                 "sha256:240097ff019d7c70a4922b6869d8a86407758333f02203e0fc6ff79c5dcede76", | ||||||
|                 "sha256:4f4b913ca1a7319b33cfb1369e91e50354d6f07a135f3b901aca02aa95940bd2", |                 "sha256:4f4b913ca1a7319b33cfb1369e91e50354d6f07a135f3b901aca02aa95940bd2", | ||||||
|  |                 "sha256:6034f55dab5fea9e53f436aa68fa3ace2634918e8b5994d82f3621c04ff5ed2e", | ||||||
|                 "sha256:69f00dca373f240f842b2931fb2c7e14ddbacd1397d57157a9b005a6a9942648", |                 "sha256:69f00dca373f240f842b2931fb2c7e14ddbacd1397d57157a9b005a6a9942648", | ||||||
|                 "sha256:73f099454b799e05e5ab51423c7bcf361c58d3206fa7b0d555426b1f4d9a3eaf", |                 "sha256:73f099454b799e05e5ab51423c7bcf361c58d3206fa7b0d555426b1f4d9a3eaf", | ||||||
|                 "sha256:74809a57b329d6cc0fdccee6318f44b9b8649961fa73144a98735b0aaf029f1f", |                 "sha256:74809a57b329d6cc0fdccee6318f44b9b8649961fa73144a98735b0aaf029f1f", | ||||||
|                 "sha256:7739fc0fa8205b3ee8808aea45e968bc90082c10aef6ea95e855e10abf4a37b2", |                 "sha256:7739fc0fa8205b3ee8808aea45e968bc90082c10aef6ea95e855e10abf4a37b2", | ||||||
|                 "sha256:95f71d2af0ff4227885f7a6605c37fd53d3a106fcab511b8860ecca9fcf400ee", |                 "sha256:95f71d2af0ff4227885f7a6605c37fd53d3a106fcab511b8860ecca9fcf400ee", | ||||||
|  |                 "sha256:ad9c67312c84def58f3c04504727ca879cb0013b2517c85a9a253f0cb6380c0a", | ||||||
|                 "sha256:b8eac752c5e14d3eca0e6dd9199cd627518cb5ec06add0de9d32baeee6fe645d", |                 "sha256:b8eac752c5e14d3eca0e6dd9199cd627518cb5ec06add0de9d32baeee6fe645d", | ||||||
|                 "sha256:cc8955cfbfc7a115fa81d85284ee61147059a753344bc51098f3ccd69b0d7e0c", |                 "sha256:cc8955cfbfc7a115fa81d85284ee61147059a753344bc51098f3ccd69b0d7e0c", | ||||||
|                 "sha256:d13155f591e6fcc1ec3b30685d50bf0711574e2c0dfffd7644babf8b5102ca1a" |                 "sha256:d13155f591e6fcc1ec3b30685d50bf0711574e2c0dfffd7644babf8b5102ca1a" | ||||||
| @ -974,7 +926,6 @@ | |||||||
|                 "sha256:0e7e0cfca8660dea8b7d5cd8c4f6c5e29e11f31158c0b0ae91a397f00e5a05a2", |                 "sha256:0e7e0cfca8660dea8b7d5cd8c4f6c5e29e11f31158c0b0ae91a397f00e5a05a2", | ||||||
|                 "sha256:432b788c4530cfe16d8d943a09d40ca6c16149727e4afe8c2c9d5580c59d9f24" |                 "sha256:432b788c4530cfe16d8d943a09d40ca6c16149727e4afe8c2c9d5580c59d9f24" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", |  | ||||||
|             "version": "==3.5.3" |             "version": "==3.5.3" | ||||||
|         }, |         }, | ||||||
|         "requests": { |         "requests": { | ||||||
| @ -982,14 +933,12 @@ | |||||||
|                 "sha256:7f1a0b932f4a60a1a65caa4263921bb7d9ee911957e0ae4a23a6dd08185ad5f8", |                 "sha256:7f1a0b932f4a60a1a65caa4263921bb7d9ee911957e0ae4a23a6dd08185ad5f8", | ||||||
|                 "sha256:e786fa28d8c9154e6a4de5d46a1d921b8749f8b74e28bde23768e5e16eece998" |                 "sha256:e786fa28d8c9154e6a4de5d46a1d921b8749f8b74e28bde23768e5e16eece998" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", |  | ||||||
|             "version": "==2.25.0" |             "version": "==2.25.0" | ||||||
|         }, |         }, | ||||||
|         "requests-oauthlib": { |         "requests-oauthlib": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:7f71572defaecd16372f9006f33c2ec8c077c3cfa6f5911a9a90202beb513f3d", |                 "sha256:7f71572defaecd16372f9006f33c2ec8c077c3cfa6f5911a9a90202beb513f3d", | ||||||
|                 "sha256:b4261601a71fd721a8bd6d7aa1cc1d6a8a93b4a9f5e96626f8e4d91e8beeaa6a", |                 "sha256:b4261601a71fd721a8bd6d7aa1cc1d6a8a93b4a9f5e96626f8e4d91e8beeaa6a" | ||||||
|                 "sha256:fa6c47b933f01060936d87ae9327fead68768b69c6c9ea2109c48be30f2d4dbc" |  | ||||||
|             ], |             ], | ||||||
|             "index": "pypi", |             "index": "pypi", | ||||||
|             "version": "==1.3.0" |             "version": "==1.3.0" | ||||||
| @ -1018,11 +967,11 @@ | |||||||
|         }, |         }, | ||||||
|         "sentry-sdk": { |         "sentry-sdk": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:81d7a5d8ca0b13a16666e8280127b004565aa988bfeec6481e98a8601804b215", |                 "sha256:0a711ec952441c2ec89b8f5d226c33bc697914f46e876b44a4edd3e7864cf4d0", | ||||||
|                 "sha256:fd48f627945511c140546939b4d73815be4860cd1d2b9149577d7f6563e7bd60" |                 "sha256:737a094e49a529dd0fdcaafa9e97cf7c3d5eb964bd229821d640bc77f3502b3f" | ||||||
|             ], |             ], | ||||||
|             "index": "pypi", |             "index": "pypi", | ||||||
|             "version": "==0.19.3" |             "version": "==0.19.5" | ||||||
|         }, |         }, | ||||||
|         "service-identity": { |         "service-identity": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
| @ -1037,7 +986,6 @@ | |||||||
|                 "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259", |                 "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259", | ||||||
|                 "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced" |                 "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", |  | ||||||
|             "version": "==1.15.0" |             "version": "==1.15.0" | ||||||
|         }, |         }, | ||||||
|         "sqlparse": { |         "sqlparse": { | ||||||
| @ -1045,7 +993,6 @@ | |||||||
|                 "sha256:017cde379adbd6a1f15a61873f43e8274179378e95ef3fede90b5aa64d304ed0", |                 "sha256:017cde379adbd6a1f15a61873f43e8274179378e95ef3fede90b5aa64d304ed0", | ||||||
|                 "sha256:0f91fd2e829c44362cbcfab3e9ae12e22badaa8a29ad5ff599f9ec109f0454e8" |                 "sha256:0f91fd2e829c44362cbcfab3e9ae12e22badaa8a29ad5ff599f9ec109f0454e8" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '3.5'", |  | ||||||
|             "version": "==0.4.1" |             "version": "==0.4.1" | ||||||
|         }, |         }, | ||||||
|         "structlog": { |         "structlog": { | ||||||
| @ -1093,7 +1040,6 @@ | |||||||
|                 "sha256:f058bd0168271de4dcdc39845b52dd0a4a2fecf5f1246335f13f5e96eaebb467", |                 "sha256:f058bd0168271de4dcdc39845b52dd0a4a2fecf5f1246335f13f5e96eaebb467", | ||||||
|                 "sha256:f3c19e5bd42bbe4bf345704ad7c326c74d3fd7a1b3844987853bef180be638d4" |                 "sha256:f3c19e5bd42bbe4bf345704ad7c326c74d3fd7a1b3844987853bef180be638d4" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", |  | ||||||
|             "version": "==20.3.0" |             "version": "==20.3.0" | ||||||
|         }, |         }, | ||||||
|         "txaio": { |         "txaio": { | ||||||
| @ -1101,7 +1047,6 @@ | |||||||
|                 "sha256:17938f2bca4a9cabce61346758e482ca4e600160cbc28e861493eac74a19539d", |                 "sha256:17938f2bca4a9cabce61346758e482ca4e600160cbc28e861493eac74a19539d", | ||||||
|                 "sha256:38a469daf93c37e5527cb062653d6393ae11663147c42fab7ddc3f6d00d434ae" |                 "sha256:38a469daf93c37e5527cb062653d6393ae11663147c42fab7ddc3f6d00d434ae" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '3.5'", |  | ||||||
|             "version": "==20.4.1" |             "version": "==20.4.1" | ||||||
|         }, |         }, | ||||||
|         "uritemplate": { |         "uritemplate": { | ||||||
| @ -1109,7 +1054,6 @@ | |||||||
|                 "sha256:07620c3f3f8eed1f12600845892b0e036a2420acf513c53f7de0abd911a5894f", |                 "sha256:07620c3f3f8eed1f12600845892b0e036a2420acf513c53f7de0abd911a5894f", | ||||||
|                 "sha256:5af8ad10cec94f215e3f48112de2022e1d5a37ed427fbd88652fa908f2ab7cae" |                 "sha256:5af8ad10cec94f215e3f48112de2022e1d5a37ed427fbd88652fa908f2ab7cae" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", |  | ||||||
|             "version": "==3.0.1" |             "version": "==3.0.1" | ||||||
|         }, |         }, | ||||||
|         "urllib3": { |         "urllib3": { | ||||||
| @ -1121,6 +1065,7 @@ | |||||||
|                 "sha256:d8ff90d979214d7b4f8ce956e80f4028fc6860e4431f731ea4a8c08f23f99473" |                 "sha256:d8ff90d979214d7b4f8ce956e80f4028fc6860e4431f731ea4a8c08f23f99473" | ||||||
|             ], |             ], | ||||||
|             "index": "pypi", |             "index": "pypi", | ||||||
|  |             "markers": null, | ||||||
|             "version": "==1.26.2" |             "version": "==1.26.2" | ||||||
|         }, |         }, | ||||||
|         "uvicorn": { |         "uvicorn": { | ||||||
| @ -1128,11 +1073,11 @@ | |||||||
|                 "standard" |                 "standard" | ||||||
|             ], |             ], | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:8ff7495c74b8286a341526ff9efa3988ebab9a4b2f561c7438c3cb420992d7dd", |                 "sha256:28420526640d800aabe648038f8e2ea8ba2a8bdc363002eecd5dfc57a0f75ab7", | ||||||
|                 "sha256:e5dbed4a8a44c7b04376021021d63798d6a7bcfae9c654a0b153577b93854fba" |                 "sha256:5123606e0f1d15ffbe0f63161c5078f7c28f350c5eb102435671eae58046db0f" | ||||||
|             ], |             ], | ||||||
|             "index": "pypi", |             "index": "pypi", | ||||||
|             "version": "==0.12.2" |             "version": "==0.13.0" | ||||||
|         }, |         }, | ||||||
|         "uvloop": { |         "uvloop": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
| @ -1153,7 +1098,6 @@ | |||||||
|                 "sha256:4c9dceab6f76ed92105027c49c823800dd33cacce13bdedc5b914e3514b7fb30", |                 "sha256:4c9dceab6f76ed92105027c49c823800dd33cacce13bdedc5b914e3514b7fb30", | ||||||
|                 "sha256:7d3b1624a953da82ef63462013bbd271d3eb75751489f9807598e8f340bd637e" |                 "sha256:7d3b1624a953da82ef63462013bbd271d3eb75751489f9807598e8f340bd637e" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '3.6'", |  | ||||||
|             "version": "==5.0.0" |             "version": "==5.0.0" | ||||||
|         }, |         }, | ||||||
|         "watchgod": { |         "watchgod": { | ||||||
| @ -1278,7 +1222,6 @@ | |||||||
|                 "sha256:f37d45fab14ffef9d33a0dc3bc59ce0c5313e2253323312d47739192da94f5fd", |                 "sha256:f37d45fab14ffef9d33a0dc3bc59ce0c5313e2253323312d47739192da94f5fd", | ||||||
|                 "sha256:f44906f70205d456d503105023041f1e63aece7623b31c390a0103db4de17537" |                 "sha256:f44906f70205d456d503105023041f1e63aece7623b31c390a0103db4de17537" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", |  | ||||||
|             "version": "==5.2.0" |             "version": "==5.2.0" | ||||||
|         } |         } | ||||||
|     }, |     }, | ||||||
| @ -1295,7 +1238,6 @@ | |||||||
|                 "sha256:5ee950735509d04eb673bd7f7120f8fa1c9e2df495394992c73234d526907e17", |                 "sha256:5ee950735509d04eb673bd7f7120f8fa1c9e2df495394992c73234d526907e17", | ||||||
|                 "sha256:7162a3cb30ab0609f1a4c95938fd73e8604f63bdba516a7f7d64b83ff09478f0" |                 "sha256:7162a3cb30ab0609f1a4c95938fd73e8604f63bdba516a7f7d64b83ff09478f0" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '3.5'", |  | ||||||
|             "version": "==3.3.1" |             "version": "==3.3.1" | ||||||
|         }, |         }, | ||||||
|         "astroid": { |         "astroid": { | ||||||
| @ -1303,7 +1245,6 @@ | |||||||
|                 "sha256:4c17cea3e592c21b6e222f673868961bad77e1f985cb1694ed077475a89229c1", |                 "sha256:4c17cea3e592c21b6e222f673868961bad77e1f985cb1694ed077475a89229c1", | ||||||
|                 "sha256:d8506842a3faf734b81599c8b98dcc423de863adcc1999248480b18bd31a0f38" |                 "sha256:d8506842a3faf734b81599c8b98dcc423de863adcc1999248480b18bd31a0f38" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '3.5'", |  | ||||||
|             "version": "==2.4.1" |             "version": "==2.4.1" | ||||||
|         }, |         }, | ||||||
|         "attrs": { |         "attrs": { | ||||||
| @ -1311,7 +1252,6 @@ | |||||||
|                 "sha256:31b2eced602aa8423c2aea9c76a724617ed67cf9513173fd3a4f03e3a929c7e6", |                 "sha256:31b2eced602aa8423c2aea9c76a724617ed67cf9513173fd3a4f03e3a929c7e6", | ||||||
|                 "sha256:832aa3cde19744e49938b91fea06d69ecb9e649c93ba974535d08ad92164f700" |                 "sha256:832aa3cde19744e49938b91fea06d69ecb9e649c93ba974535d08ad92164f700" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", |  | ||||||
|             "version": "==20.3.0" |             "version": "==20.3.0" | ||||||
|         }, |         }, | ||||||
|         "autopep8": { |         "autopep8": { | ||||||
| @ -1323,11 +1263,11 @@ | |||||||
|         }, |         }, | ||||||
|         "bandit": { |         "bandit": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:336620e220cf2d3115877685e264477ff9d9abaeb0afe3dc7264f55fa17a3952", |                 "sha256:2ff3fe35fe3212c0be5fc9c4899bd0108e2b5239c5ff62fb174639e4660fe958", | ||||||
|                 "sha256:41e75315853507aa145d62a78a2a6c5e3240fe14ee7c601459d0df9418196065" |                 "sha256:d02dfe250f4aa2d166c127ad81d192579e2bfcdb8501717c0e2005e35a6bcf60" | ||||||
|             ], |             ], | ||||||
|             "index": "pypi", |             "index": "pypi", | ||||||
|             "version": "==1.6.2" |             "version": "==1.6.3" | ||||||
|         }, |         }, | ||||||
|         "black": { |         "black": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
| @ -1341,7 +1281,6 @@ | |||||||
|                 "sha256:37f927ea17cde7ae2d7baf832f8e80ce3777624554a653006c9144f8017fe410", |                 "sha256:37f927ea17cde7ae2d7baf832f8e80ce3777624554a653006c9144f8017fe410", | ||||||
|                 "sha256:762cb2bfad61f4ec8e2bdf452c7c267416f8c70dd9ecb1653fd0bbb01fa936e6" |                 "sha256:762cb2bfad61f4ec8e2bdf452c7c267416f8c70dd9ecb1653fd0bbb01fa936e6" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '3.5'", |  | ||||||
|             "version": "==1.0.1" |             "version": "==1.0.1" | ||||||
|         }, |         }, | ||||||
|         "bumpversion": { |         "bumpversion": { | ||||||
| @ -1357,7 +1296,6 @@ | |||||||
|                 "sha256:d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a", |                 "sha256:d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a", | ||||||
|                 "sha256:dacca89f4bfadd5de3d7489b7c8a566eee0d3676333fbb50030263894c38c0dc" |                 "sha256:dacca89f4bfadd5de3d7489b7c8a566eee0d3676333fbb50030263894c38c0dc" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", |  | ||||||
|             "version": "==7.1.2" |             "version": "==7.1.2" | ||||||
|         }, |         }, | ||||||
|         "colorama": { |         "colorama": { | ||||||
| @ -1410,19 +1348,19 @@ | |||||||
|         }, |         }, | ||||||
|         "django": { |         "django": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:14a4b7cd77297fba516fc0d92444cc2e2e388aa9de32d7a68d4a83d58f5a4927", |                 "sha256:5c866205f15e7a7123f1eec6ab939d22d5bde1416635cab259684af66d8e48a2", | ||||||
|                 "sha256:14b87775ffedab2ef6299b73343d1b4b41e5d4e2aa58c6581f114dbec01e3f8f" |                 "sha256:edb10b5c45e7e9c0fb1dc00b76ec7449aca258a39ffd613dbd078c51d19c9f03" | ||||||
|             ], |             ], | ||||||
|             "index": "pypi", |             "index": "pypi", | ||||||
|             "version": "==3.1.3" |             "version": "==3.1.4" | ||||||
|         }, |         }, | ||||||
|         "django-debug-toolbar": { |         "django-debug-toolbar": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:a1ce0665f7ef47d27b8df4b5d1058748e1f08500a01421a30d35164f38aaaf4c", |                 "sha256:84e2607d900dbd571df0a2acf380b47c088efb787dce9805aefeb407341961d2", | ||||||
|                 "sha256:c97921a9cd421d392e7860dc4b464db8e06c8628df4dc58fedab012888c293c6" |                 "sha256:9e5a25d0c965f7e686f6a8ba23613ca9ca30184daa26487706d4829f5cfb697a" | ||||||
|             ], |             ], | ||||||
|             "index": "pypi", |             "index": "pypi", | ||||||
|             "version": "==3.1.1" |             "version": "==3.2" | ||||||
|         }, |         }, | ||||||
|         "dodgy": { |         "dodgy": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
| @ -1436,7 +1374,6 @@ | |||||||
|                 "sha256:749dbbd6bfd0cf1318af27bf97a14e28e5ff548ef8e5b1566ccfb25a11e7c839", |                 "sha256:749dbbd6bfd0cf1318af27bf97a14e28e5ff548ef8e5b1566ccfb25a11e7c839", | ||||||
|                 "sha256:aadae8761ec651813c24be05c6f7b4680857ef6afaae4651a4eccaef97ce6c3b" |                 "sha256:aadae8761ec651813c24be05c6f7b4680857ef6afaae4651a4eccaef97ce6c3b" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", |  | ||||||
|             "version": "==3.8.4" |             "version": "==3.8.4" | ||||||
|         }, |         }, | ||||||
|         "flake8-polyfill": { |         "flake8-polyfill": { | ||||||
| @ -1451,7 +1388,6 @@ | |||||||
|                 "sha256:91f36bfb1ab7949b3b40e23736db18231bf7593edada2ba5c3a174a7b23657ac", |                 "sha256:91f36bfb1ab7949b3b40e23736db18231bf7593edada2ba5c3a174a7b23657ac", | ||||||
|                 "sha256:c9e1f2d0db7ddb9a704c2a0217be31214e91a4fe1dea1efad19ae42ba0c285c9" |                 "sha256:c9e1f2d0db7ddb9a704c2a0217be31214e91a4fe1dea1efad19ae42ba0c285c9" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '3.4'", |  | ||||||
|             "version": "==4.0.5" |             "version": "==4.0.5" | ||||||
|         }, |         }, | ||||||
|         "gitpython": { |         "gitpython": { | ||||||
| @ -1459,7 +1395,6 @@ | |||||||
|                 "sha256:6eea89b655917b500437e9668e4a12eabdcf00229a0df1762aabd692ef9b746b", |                 "sha256:6eea89b655917b500437e9668e4a12eabdcf00229a0df1762aabd692ef9b746b", | ||||||
|                 "sha256:befa4d101f91bad1b632df4308ec64555db684c360bd7d2130b4807d49ce86b8" |                 "sha256:befa4d101f91bad1b632df4308ec64555db684c360bd7d2130b4807d49ce86b8" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '3.4'", |  | ||||||
|             "version": "==3.1.11" |             "version": "==3.1.11" | ||||||
|         }, |         }, | ||||||
|         "iniconfig": { |         "iniconfig": { | ||||||
| @ -1474,7 +1409,6 @@ | |||||||
|                 "sha256:54da7e92468955c4fceacd0c86bd0ec997b0e1ee80d97f67c35a78b719dccab1", |                 "sha256:54da7e92468955c4fceacd0c86bd0ec997b0e1ee80d97f67c35a78b719dccab1", | ||||||
|                 "sha256:6e811fcb295968434526407adb8796944f1988c5b65e8139058f2014cbe100fd" |                 "sha256:6e811fcb295968434526407adb8796944f1988c5b65e8139058f2014cbe100fd" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", |  | ||||||
|             "version": "==4.3.21" |             "version": "==4.3.21" | ||||||
|         }, |         }, | ||||||
|         "lazy-object-proxy": { |         "lazy-object-proxy": { | ||||||
| @ -1501,7 +1435,6 @@ | |||||||
|                 "sha256:efa1909120ce98bbb3777e8b6f92237f5d5c8ea6758efea36a473e1d38f7d3e4", |                 "sha256:efa1909120ce98bbb3777e8b6f92237f5d5c8ea6758efea36a473e1d38f7d3e4", | ||||||
|                 "sha256:f3900e8a5de27447acbf900b4750b0ddfd7ec1ea7fbaf11dfa911141bc522af0" |                 "sha256:f3900e8a5de27447acbf900b4750b0ddfd7ec1ea7fbaf11dfa911141bc522af0" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", |  | ||||||
|             "version": "==1.4.3" |             "version": "==1.4.3" | ||||||
|         }, |         }, | ||||||
|         "mccabe": { |         "mccabe": { | ||||||
| @ -1520,11 +1453,11 @@ | |||||||
|         }, |         }, | ||||||
|         "packaging": { |         "packaging": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:4357f74f47b9c12db93624a82154e9b120fa8293699949152b22065d556079f8", |                 "sha256:05af3bb85d320377db281cf254ab050e1a7ebcbf5410685a9a407e18a1f81236", | ||||||
|                 "sha256:998416ba6962ae7fbd6596850b80e17859a5753ba17c32284f67bfff33784181" |                 "sha256:eb41423378682dadb7166144a4926e443093863024de508ca5c9737d6bc08376" | ||||||
|             ], |             ], | ||||||
|             "index": "pypi", |             "index": "pypi", | ||||||
|             "version": "==20.4" |             "version": "==20.7" | ||||||
|         }, |         }, | ||||||
|         "pathspec": { |         "pathspec": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
| @ -1538,7 +1471,6 @@ | |||||||
|                 "sha256:5fad80b613c402d5b7df7bd84812548b2a61e9977387a80a5fc5c396492b13c9", |                 "sha256:5fad80b613c402d5b7df7bd84812548b2a61e9977387a80a5fc5c396492b13c9", | ||||||
|                 "sha256:b236cde0ac9a6aedd5e3c34517b423cd4fd97ef723849da6b0d2231142d89c00" |                 "sha256:b236cde0ac9a6aedd5e3c34517b423cd4fd97ef723849da6b0d2231142d89c00" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.6'", |  | ||||||
|             "version": "==5.5.1" |             "version": "==5.5.1" | ||||||
|         }, |         }, | ||||||
|         "pep8-naming": { |         "pep8-naming": { | ||||||
| @ -1553,7 +1485,6 @@ | |||||||
|                 "sha256:15b2acde666561e1298d71b523007ed7364de07029219b604cf808bfa1c765b0", |                 "sha256:15b2acde666561e1298d71b523007ed7364de07029219b604cf808bfa1c765b0", | ||||||
|                 "sha256:966c145cd83c96502c3c3868f50408687b38434af77734af1e9ca461a4081d2d" |                 "sha256:966c145cd83c96502c3c3868f50408687b38434af77734af1e9ca461a4081d2d" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", |  | ||||||
|             "version": "==0.13.1" |             "version": "==0.13.1" | ||||||
|         }, |         }, | ||||||
|         "prospector": { |         "prospector": { | ||||||
| @ -1568,7 +1499,6 @@ | |||||||
|                 "sha256:366389d1db726cd2fcfc79732e75410e5fe4d31db13692115529d34069a043c2", |                 "sha256:366389d1db726cd2fcfc79732e75410e5fe4d31db13692115529d34069a043c2", | ||||||
|                 "sha256:9ca6883ce56b4e8da7e79ac18787889fa5206c79dcc67fb065376cd2fe03f342" |                 "sha256:9ca6883ce56b4e8da7e79ac18787889fa5206c79dcc67fb065376cd2fe03f342" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", |  | ||||||
|             "version": "==1.9.0" |             "version": "==1.9.0" | ||||||
|         }, |         }, | ||||||
|         "pycodestyle": { |         "pycodestyle": { | ||||||
| @ -1576,7 +1506,6 @@ | |||||||
|                 "sha256:2295e7b2f6b5bd100585ebcb1f616591b652db8a741695b3d8f5d28bdc934367", |                 "sha256:2295e7b2f6b5bd100585ebcb1f616591b652db8a741695b3d8f5d28bdc934367", | ||||||
|                 "sha256:c58a7d2815e0e8d7972bf1803331fb0152f867bd89adf8a01dfd55085434192e" |                 "sha256:c58a7d2815e0e8d7972bf1803331fb0152f867bd89adf8a01dfd55085434192e" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", |  | ||||||
|             "version": "==2.6.0" |             "version": "==2.6.0" | ||||||
|         }, |         }, | ||||||
|         "pydocstyle": { |         "pydocstyle": { | ||||||
| @ -1584,7 +1513,6 @@ | |||||||
|                 "sha256:19b86fa8617ed916776a11cd8bc0197e5b9856d5433b777f51a3defe13075325", |                 "sha256:19b86fa8617ed916776a11cd8bc0197e5b9856d5433b777f51a3defe13075325", | ||||||
|                 "sha256:aca749e190a01726a4fb472dd4ef23b5c9da7b9205c0a7857c06533de13fd678" |                 "sha256:aca749e190a01726a4fb472dd4ef23b5c9da7b9205c0a7857c06533de13fd678" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '3.5'", |  | ||||||
|             "version": "==5.1.1" |             "version": "==5.1.1" | ||||||
|         }, |         }, | ||||||
|         "pyflakes": { |         "pyflakes": { | ||||||
| @ -1592,7 +1520,6 @@ | |||||||
|                 "sha256:0d94e0e05a19e57a99444b6ddcf9a6eb2e5c68d3ca1e98e90707af8152c90a92", |                 "sha256:0d94e0e05a19e57a99444b6ddcf9a6eb2e5c68d3ca1e98e90707af8152c90a92", | ||||||
|                 "sha256:35b2d75ee967ea93b55750aa9edbbf72813e06a66ba54438df2cfac9e3c27fc8" |                 "sha256:35b2d75ee967ea93b55750aa9edbbf72813e06a66ba54438df2cfac9e3c27fc8" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", |  | ||||||
|             "version": "==2.2.0" |             "version": "==2.2.0" | ||||||
|         }, |         }, | ||||||
|         "pylint": { |         "pylint": { | ||||||
| @ -1635,7 +1562,6 @@ | |||||||
|                 "sha256:c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1", |                 "sha256:c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1", | ||||||
|                 "sha256:ef9d7589ef3c200abe66653d3f1ab1033c3c419ae9b9bdb1240a85b024efc88b" |                 "sha256:ef9d7589ef3c200abe66653d3f1ab1033c3c419ae9b9bdb1240a85b024efc88b" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'", |  | ||||||
|             "version": "==2.4.7" |             "version": "==2.4.7" | ||||||
|         }, |         }, | ||||||
|         "pytest": { |         "pytest": { | ||||||
| @ -1666,11 +1592,13 @@ | |||||||
|                 "sha256:06a0d7ba600ce0b2d2fe2e78453a470b5a6e000a985dd4a4e54e436cc36b0e97", |                 "sha256:06a0d7ba600ce0b2d2fe2e78453a470b5a6e000a985dd4a4e54e436cc36b0e97", | ||||||
|                 "sha256:240097ff019d7c70a4922b6869d8a86407758333f02203e0fc6ff79c5dcede76", |                 "sha256:240097ff019d7c70a4922b6869d8a86407758333f02203e0fc6ff79c5dcede76", | ||||||
|                 "sha256:4f4b913ca1a7319b33cfb1369e91e50354d6f07a135f3b901aca02aa95940bd2", |                 "sha256:4f4b913ca1a7319b33cfb1369e91e50354d6f07a135f3b901aca02aa95940bd2", | ||||||
|  |                 "sha256:6034f55dab5fea9e53f436aa68fa3ace2634918e8b5994d82f3621c04ff5ed2e", | ||||||
|                 "sha256:69f00dca373f240f842b2931fb2c7e14ddbacd1397d57157a9b005a6a9942648", |                 "sha256:69f00dca373f240f842b2931fb2c7e14ddbacd1397d57157a9b005a6a9942648", | ||||||
|                 "sha256:73f099454b799e05e5ab51423c7bcf361c58d3206fa7b0d555426b1f4d9a3eaf", |                 "sha256:73f099454b799e05e5ab51423c7bcf361c58d3206fa7b0d555426b1f4d9a3eaf", | ||||||
|                 "sha256:74809a57b329d6cc0fdccee6318f44b9b8649961fa73144a98735b0aaf029f1f", |                 "sha256:74809a57b329d6cc0fdccee6318f44b9b8649961fa73144a98735b0aaf029f1f", | ||||||
|                 "sha256:7739fc0fa8205b3ee8808aea45e968bc90082c10aef6ea95e855e10abf4a37b2", |                 "sha256:7739fc0fa8205b3ee8808aea45e968bc90082c10aef6ea95e855e10abf4a37b2", | ||||||
|                 "sha256:95f71d2af0ff4227885f7a6605c37fd53d3a106fcab511b8860ecca9fcf400ee", |                 "sha256:95f71d2af0ff4227885f7a6605c37fd53d3a106fcab511b8860ecca9fcf400ee", | ||||||
|  |                 "sha256:ad9c67312c84def58f3c04504727ca879cb0013b2517c85a9a253f0cb6380c0a", | ||||||
|                 "sha256:b8eac752c5e14d3eca0e6dd9199cd627518cb5ec06add0de9d32baeee6fe645d", |                 "sha256:b8eac752c5e14d3eca0e6dd9199cd627518cb5ec06add0de9d32baeee6fe645d", | ||||||
|                 "sha256:cc8955cfbfc7a115fa81d85284ee61147059a753344bc51098f3ccd69b0d7e0c", |                 "sha256:cc8955cfbfc7a115fa81d85284ee61147059a753344bc51098f3ccd69b0d7e0c", | ||||||
|                 "sha256:d13155f591e6fcc1ec3b30685d50bf0711574e2c0dfffd7644babf8b5102ca1a" |                 "sha256:d13155f591e6fcc1ec3b30685d50bf0711574e2c0dfffd7644babf8b5102ca1a" | ||||||
| @ -1749,7 +1677,6 @@ | |||||||
|                 "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259", |                 "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259", | ||||||
|                 "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced" |                 "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", |  | ||||||
|             "version": "==1.15.0" |             "version": "==1.15.0" | ||||||
|         }, |         }, | ||||||
|         "smmap": { |         "smmap": { | ||||||
| @ -1757,7 +1684,6 @@ | |||||||
|                 "sha256:54c44c197c819d5ef1991799a7e30b662d1e520f2ac75c9efbeb54a742214cf4", |                 "sha256:54c44c197c819d5ef1991799a7e30b662d1e520f2ac75c9efbeb54a742214cf4", | ||||||
|                 "sha256:9c98bbd1f9786d22f14b3d4126894d56befb835ec90cef151af566c7e19b5d24" |                 "sha256:9c98bbd1f9786d22f14b3d4126894d56befb835ec90cef151af566c7e19b5d24" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", |  | ||||||
|             "version": "==3.0.4" |             "version": "==3.0.4" | ||||||
|         }, |         }, | ||||||
|         "snowballstemmer": { |         "snowballstemmer": { | ||||||
| @ -1772,23 +1698,20 @@ | |||||||
|                 "sha256:017cde379adbd6a1f15a61873f43e8274179378e95ef3fede90b5aa64d304ed0", |                 "sha256:017cde379adbd6a1f15a61873f43e8274179378e95ef3fede90b5aa64d304ed0", | ||||||
|                 "sha256:0f91fd2e829c44362cbcfab3e9ae12e22badaa8a29ad5ff599f9ec109f0454e8" |                 "sha256:0f91fd2e829c44362cbcfab3e9ae12e22badaa8a29ad5ff599f9ec109f0454e8" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '3.5'", |  | ||||||
|             "version": "==0.4.1" |             "version": "==0.4.1" | ||||||
|         }, |         }, | ||||||
|         "stevedore": { |         "stevedore": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:5e1ab03eaae06ef6ce23859402de785f08d97780ed774948ef16c4652c41bc62", |                 "sha256:3a5bbd0652bf552748871eaa73a4a8dc2899786bc497a2aa1fcb4dcdb0debeee", | ||||||
|                 "sha256:f845868b3a3a77a2489d226568abe7328b5c2d4f6a011cc759dfa99144a521f0" |                 "sha256:50d7b78fbaf0d04cd62411188fa7eedcb03eb7f4c4b37005615ceebe582aa82a" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '3.6'", |             "version": "==3.3.0" | ||||||
|             "version": "==3.2.2" |  | ||||||
|         }, |         }, | ||||||
|         "toml": { |         "toml": { | ||||||
|             "hashes": [ |             "hashes": [ | ||||||
|                 "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b", |                 "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b", | ||||||
|                 "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f" |                 "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f" | ||||||
|             ], |             ], | ||||||
|             "markers": "python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'", |  | ||||||
|             "version": "==0.10.2" |             "version": "==0.10.2" | ||||||
|         }, |         }, | ||||||
|         "typed-ast": { |         "typed-ast": { | ||||||
| @ -1843,6 +1766,7 @@ | |||||||
|                 "sha256:d8ff90d979214d7b4f8ce956e80f4028fc6860e4431f731ea4a8c08f23f99473" |                 "sha256:d8ff90d979214d7b4f8ce956e80f4028fc6860e4431f731ea4a8c08f23f99473" | ||||||
|             ], |             ], | ||||||
|             "index": "pypi", |             "index": "pypi", | ||||||
|  |             "markers": null, | ||||||
|             "version": "==1.26.2" |             "version": "==1.26.2" | ||||||
|         }, |         }, | ||||||
|         "wrapt": { |         "wrapt": { | ||||||
|  | |||||||
							
								
								
									
										49
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										49
									
								
								README.md
									
									
									
									
									
								
							| @ -1,21 +1,23 @@ | |||||||
| <img src="website/static/img/logo.svg" height="50" alt="passbook logo"><img src="website/static/img/brand_inverted.svg" height="50" alt="passbook"> | <img src="web/icons/icon_top_brand.svg" height="250" alt="authentik logo"> | ||||||
|  |  | ||||||
| [](https://dev.azure.com/beryjuorg/passbook/_build?definitionId=1) | --- | ||||||
|  |  | ||||||
| [](https://codecov.io/gh/BeryJu/passbook) |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
| ## What is passbook? | [](https://dev.azure.com/beryjuorg/authentik/_build?definitionId=1) | ||||||
|  | [](https://dev.azure.com/beryjuorg/authentik/_build?definitionId=1) | ||||||
|  | [](https://codecov.io/gh/BeryJu/authentik) | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
| passbook is an open-source Identity Provider focused on flexibility and versatility. You can use passbook in an existing environment to add support for new protocols. passbook is also a great solution for implementing signup/recovery/etc in your application, so you don't have to deal with it. | ## What is authentik? | ||||||
|  |  | ||||||
|  | authentik is an open-source Identity Provider focused on flexibility and versatility. You can use authentik in an existing environment to add support for new protocols. authentik is also a great solution for implementing signup/recovery/etc in your application, so you don't have to deal with it. | ||||||
|  |  | ||||||
| ## Installation | ## Installation | ||||||
|  |  | ||||||
| For small/test setups it is recommended to use docker-compose, see the [documentation](https://passbook.beryju.org/website/docs/installation/docker-compose/) | For small/test setups it is recommended to use docker-compose, see the [documentation](https://goauthentik.io/docs/installation/docker-compose/) | ||||||
|  |  | ||||||
| For bigger setups, there is a Helm Chart in the `helm/` directory. This is documented [here](https://passbook.beryju.org/website/docs/installation/kubernetes/) | For bigger setups, there is a Helm Chart in the `helm/` directory. This is documented [here](https://goauthentik.io/docs/installation/kubernetes/) | ||||||
|  |  | ||||||
| ## Screenshots | ## Screenshots | ||||||
|  |  | ||||||
| @ -24,30 +26,7 @@ For bigger setups, there is a Helm Chart in the `helm/` directory. This is docum | |||||||
|  |  | ||||||
| ## Development | ## Development | ||||||
|  |  | ||||||
| To develop on passbook, you need a system with Python 3.8+ (3.9 is recommended). passbook uses [pipenv](https://pipenv.pypa.io/en/latest/) for managing dependencies. | See [Development Documentation](https://goauthentik.io/docs/development/local-dev-environment) | ||||||
|  |  | ||||||
| To get started, run |  | ||||||
|  |  | ||||||
| ``` |  | ||||||
| python3 -m pip install pipenv |  | ||||||
| git clone https://github.com/BeryJu/passbook.git |  | ||||||
| cd passbook |  | ||||||
| pipenv shell |  | ||||||
| pipenv sync -d |  | ||||||
| ``` |  | ||||||
|  |  | ||||||
| Since passbook uses PostgreSQL-specific fields, you also need a local PostgreSQL instance to develop. passbook also uses redis for caching and message queueing. |  | ||||||
| For these databases you can use [Postgres.app](https://postgresapp.com/) and [Redis.app](https://jpadilla.github.io/redisapp/) on macOS or use it the docker-compose file in `scripts/docker-compose.yml`. |  | ||||||
|  |  | ||||||
| To tell passbook about these databases, create a file in the project root called `local.env.yml` with the following contents: |  | ||||||
|  |  | ||||||
| ```yaml |  | ||||||
| debug: true |  | ||||||
| postgresql: |  | ||||||
|   user: postgres |  | ||||||
|  |  | ||||||
| log_level: debug |  | ||||||
| ``` |  | ||||||
|  |  | ||||||
| ## Security | ## Security | ||||||
|  |  | ||||||
|  | |||||||
| @ -2,13 +2,13 @@ | |||||||
|  |  | ||||||
| ## Supported Versions | ## Supported Versions | ||||||
|  |  | ||||||
| As passbook is currently in a pre-stable, only the latest "stable" version is supported. After passbook 1.0, this will change. | As authentik is currently in a pre-stable, only the latest "stable" version is supported. After authentik 1.0, this will change. | ||||||
|  |  | ||||||
| | Version  | Supported          | | | Version  | Supported          | | ||||||
| | -------- | ------------------ | | | -------- | ------------------ | | ||||||
| | 0.10.x   | :white_check_mark: | |  | ||||||
| | 0.11.x   | :white_check_mark: | | | 0.11.x   | :white_check_mark: | | ||||||
| | 0.12.x   | :white_check_mark: | | | 0.12.x   | :white_check_mark: | | ||||||
|  | | 0.13.x   | :white_check_mark: | | ||||||
|  |  | ||||||
| ## Reporting a Vulnerability | ## Reporting a Vulnerability | ||||||
|  |  | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								authentik/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								authentik/__init__.py
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,2 @@ | |||||||
|  | """authentik""" | ||||||
|  | __version__ = "0.13.0-rc4" | ||||||
| @ -1,6 +1,5 @@ | |||||||
| """passbook administration overview""" | """authentik administration overview""" | ||||||
| from django.core.cache import cache | from django.core.cache import cache | ||||||
| from django.http import response |  | ||||||
| from drf_yasg2.utils import swagger_auto_schema | from drf_yasg2.utils import swagger_auto_schema | ||||||
| from rest_framework.fields import SerializerMethodField | from rest_framework.fields import SerializerMethodField | ||||||
| from rest_framework.permissions import IsAdminUser | from rest_framework.permissions import IsAdminUser | ||||||
| @ -9,11 +8,11 @@ from rest_framework.response import Response | |||||||
| from rest_framework.serializers import Serializer | from rest_framework.serializers import Serializer | ||||||
| from rest_framework.viewsets import ViewSet | from rest_framework.viewsets import ViewSet | ||||||
| 
 | 
 | ||||||
| from passbook import __version__ | from authentik import __version__ | ||||||
| from passbook.admin.tasks import VERSION_CACHE_KEY, update_latest_version | from authentik.admin.tasks import VERSION_CACHE_KEY, update_latest_version | ||||||
| from passbook.core.models import Provider | from authentik.core.models import Provider | ||||||
| from passbook.policies.models import Policy | from authentik.policies.models import Policy | ||||||
| from passbook.root.celery import CELERY_APP | from authentik.root.celery import CELERY_APP | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class AdministrationOverviewSerializer(Serializer): | class AdministrationOverviewSerializer(Serializer): | ||||||
| @ -61,7 +60,7 @@ class AdministrationOverviewSerializer(Serializer): | |||||||
|         """Get cached flow count""" |         """Get cached flow count""" | ||||||
|         return len(cache.keys("flow_*")) |         return len(cache.keys("flow_*")) | ||||||
| 
 | 
 | ||||||
|     def create(self, request: Request) -> response: |     def create(self, request: Request) -> Response: | ||||||
|         raise NotImplementedError |         raise NotImplementedError | ||||||
| 
 | 
 | ||||||
|     def update(self, request: Request) -> Response: |     def update(self, request: Request) -> Response: | ||||||
| @ -1,4 +1,4 @@ | |||||||
| """passbook administration overview""" | """authentik administration overview""" | ||||||
| import time | import time | ||||||
| from collections import Counter | from collections import Counter | ||||||
| from datetime import timedelta | from datetime import timedelta | ||||||
| @ -17,7 +17,33 @@ from rest_framework.response import Response | |||||||
| from rest_framework.serializers import Serializer | from rest_framework.serializers import Serializer | ||||||
| from rest_framework.viewsets import ViewSet | from rest_framework.viewsets import ViewSet | ||||||
| 
 | 
 | ||||||
| from passbook.audit.models import Event, EventAction | from authentik.audit.models import Event, EventAction | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | def get_events_per_1h(**filter_kwargs) -> List[Dict[str, int]]: | ||||||
|  |     """Get event count by hour in the last day, fill with zeros""" | ||||||
|  |     date_from = now() - timedelta(days=1) | ||||||
|  |     result = ( | ||||||
|  |         Event.objects.filter(created__gte=date_from, **filter_kwargs) | ||||||
|  |         .annotate( | ||||||
|  |             age=ExpressionWrapper(now() - F("created"), output_field=DurationField()) | ||||||
|  |         ) | ||||||
|  |         .annotate(age_hours=ExtractHour("age")) | ||||||
|  |         .values("age_hours") | ||||||
|  |         .annotate(count=Count("pk")) | ||||||
|  |         .order_by("age_hours") | ||||||
|  |     ) | ||||||
|  |     data = Counter({d["age_hours"]: d["count"] for d in result}) | ||||||
|  |     results = [] | ||||||
|  |     _now = now() | ||||||
|  |     for hour in range(0, -24, -1): | ||||||
|  |         results.append( | ||||||
|  |             { | ||||||
|  |                 "x": time.mktime((_now + timedelta(hours=hour)).timetuple()) * 1000, | ||||||
|  |                 "y": data[hour * -1], | ||||||
|  |             } | ||||||
|  |         ) | ||||||
|  |     return results | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class AdministrationMetricsSerializer(Serializer): | class AdministrationMetricsSerializer(Serializer): | ||||||
| @ -26,40 +52,13 @@ class AdministrationMetricsSerializer(Serializer): | |||||||
|     logins_per_1h = SerializerMethodField() |     logins_per_1h = SerializerMethodField() | ||||||
|     logins_failed_per_1h = SerializerMethodField() |     logins_failed_per_1h = SerializerMethodField() | ||||||
| 
 | 
 | ||||||
|     def get_events_per_1h(self, action: str) -> List[Dict[str, int]]: |  | ||||||
|         """Get event count by hour in the last day, fill with zeros""" |  | ||||||
|         date_from = now() - timedelta(days=1) |  | ||||||
|         result = ( |  | ||||||
|             Event.objects.filter(action=action, created__gte=date_from) |  | ||||||
|             .annotate( |  | ||||||
|                 age=ExpressionWrapper( |  | ||||||
|                     now() - F("created"), output_field=DurationField() |  | ||||||
|                 ) |  | ||||||
|             ) |  | ||||||
|             .annotate(age_hours=ExtractHour("age")) |  | ||||||
|             .values("age_hours") |  | ||||||
|             .annotate(count=Count("pk")) |  | ||||||
|             .order_by("age_hours") |  | ||||||
|         ) |  | ||||||
|         data = Counter({d["age_hours"]: d["count"] for d in result}) |  | ||||||
|         results = [] |  | ||||||
|         _now = now() |  | ||||||
|         for hour in range(0, -24, -1): |  | ||||||
|             results.append( |  | ||||||
|                 { |  | ||||||
|                     "x": time.mktime((_now + timedelta(hours=hour)).timetuple()) * 1000, |  | ||||||
|                     "y": data[hour * -1], |  | ||||||
|                 } |  | ||||||
|             ) |  | ||||||
|         return results |  | ||||||
| 
 |  | ||||||
|     def get_logins_per_1h(self, _): |     def get_logins_per_1h(self, _): | ||||||
|         """Get successful logins per hour for the last 24 hours""" |         """Get successful logins per hour for the last 24 hours""" | ||||||
|         return self.get_events_per_1h(EventAction.LOGIN) |         return get_events_per_1h(action=EventAction.LOGIN) | ||||||
| 
 | 
 | ||||||
|     def get_logins_failed_per_1h(self, _): |     def get_logins_failed_per_1h(self, _): | ||||||
|         """Get failed logins per hour for the last 24 hours""" |         """Get failed logins per hour for the last 24 hours""" | ||||||
|         return self.get_events_per_1h(EventAction.LOGIN_FAILED) |         return get_events_per_1h(action=EventAction.LOGIN_FAILED) | ||||||
| 
 | 
 | ||||||
|     def create(self, request: Request) -> response: |     def create(self, request: Request) -> response: | ||||||
|         raise NotImplementedError |         raise NotImplementedError | ||||||
| @ -13,7 +13,7 @@ from rest_framework.response import Response | |||||||
| from rest_framework.serializers import Serializer | from rest_framework.serializers import Serializer | ||||||
| from rest_framework.viewsets import ViewSet | from rest_framework.viewsets import ViewSet | ||||||
| 
 | 
 | ||||||
| from passbook.lib.tasks import TaskInfo | from authentik.lib.tasks import TaskInfo | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class TaskSerializer(Serializer): | class TaskSerializer(Serializer): | ||||||
							
								
								
									
										11
									
								
								authentik/admin/apps.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								authentik/admin/apps.py
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,11 @@ | |||||||
|  | """authentik admin app config""" | ||||||
|  | from django.apps import AppConfig | ||||||
|  |  | ||||||
|  |  | ||||||
|  | class AuthentikAdminConfig(AppConfig): | ||||||
|  |     """authentik admin app config""" | ||||||
|  |  | ||||||
|  |     name = "authentik.admin" | ||||||
|  |     label = "authentik_admin" | ||||||
|  |     mountpoint = "administration/" | ||||||
|  |     verbose_name = "authentik Admin" | ||||||
| @ -36,15 +36,15 @@ class CodeMirrorWidget(forms.Textarea): | |||||||
|     # CodeMirror mode to enable |     # CodeMirror mode to enable | ||||||
|     mode: str |     mode: str | ||||||
| 
 | 
 | ||||||
|  |     template_name = "fields/codemirror.html" | ||||||
|  | 
 | ||||||
|     def __init__(self, *args, mode="yaml", **kwargs): |     def __init__(self, *args, mode="yaml", **kwargs): | ||||||
|         super().__init__(*args, **kwargs) |         super().__init__(*args, **kwargs) | ||||||
|         self.mode = mode |         self.mode = mode | ||||||
| 
 | 
 | ||||||
|     def render(self, *args, **kwargs): |     def render(self, *args, **kwargs): | ||||||
|         attrs = kwargs.setdefault("attrs", {}) |         attrs = kwargs.setdefault("attrs", {}) | ||||||
|         attrs.setdefault("class", "") |         attrs["mode"] = self.mode | ||||||
|         attrs["class"] += " codemirror" |  | ||||||
|         attrs["data-cm-mode"] = self.mode |  | ||||||
|         return super().render(*args, **kwargs) |         return super().render(*args, **kwargs) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
							
								
								
									
										18
									
								
								authentik/admin/forms/overview.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								authentik/admin/forms/overview.py
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,18 @@ | |||||||
|  | """Forms for modals on overview page""" | ||||||
|  | from django import forms | ||||||
|  |  | ||||||
|  |  | ||||||
|  | class PolicyCacheClearForm(forms.Form): | ||||||
|  |     """Form to clear Policy cache""" | ||||||
|  |  | ||||||
|  |     title = "Clear Policy cache" | ||||||
|  |     body = """Are you sure you want to clear the policy cache? | ||||||
|  |     This will cause all policies to be re-evaluated on their next usage.""" | ||||||
|  |  | ||||||
|  |  | ||||||
|  | class FlowCacheClearForm(forms.Form): | ||||||
|  |     """Form to clear Flow cache""" | ||||||
|  |  | ||||||
|  |     title = "Clear Flow cache" | ||||||
|  |     body = """Are you sure you want to clear the flow cache? | ||||||
|  |     This will cause all flows to be re-evaluated on their next usage.""" | ||||||
| @ -1,8 +1,8 @@ | |||||||
| """passbook administration forms""" | """authentik administration forms""" | ||||||
| from django import forms | from django import forms | ||||||
| 
 | 
 | ||||||
| from passbook.admin.fields import CodeMirrorWidget, YAMLField | from authentik.admin.fields import CodeMirrorWidget, YAMLField | ||||||
| from passbook.core.models import User | from authentik.core.models import User | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class PolicyTestForm(forms.Form): | class PolicyTestForm(forms.Form): | ||||||
| @ -1,4 +1,4 @@ | |||||||
| """passbook core source form fields""" | """authentik core source form fields""" | ||||||
| 
 | 
 | ||||||
| SOURCE_FORM_FIELDS = [ | SOURCE_FORM_FIELDS = [ | ||||||
|     "name", |     "name", | ||||||
| @ -1,9 +1,9 @@ | |||||||
| """passbook administrative user forms""" | """authentik administrative user forms""" | ||||||
| 
 | 
 | ||||||
| from django import forms | from django import forms | ||||||
| 
 | 
 | ||||||
| from passbook.admin.fields import CodeMirrorWidget, YAMLField | from authentik.admin.fields import CodeMirrorWidget, YAMLField | ||||||
| from passbook.core.models import User | from authentik.core.models import User | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class UserForm(forms.ModelForm): | class UserForm(forms.ModelForm): | ||||||
| @ -1,4 +1,4 @@ | |||||||
| """passbook admin mixins""" | """authentik admin mixins""" | ||||||
| from django.contrib.auth.mixins import UserPassesTestMixin | from django.contrib.auth.mixins import UserPassesTestMixin | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -1,10 +1,10 @@ | |||||||
| """passbook admin settings""" | """authentik admin settings""" | ||||||
| from celery.schedules import crontab | from celery.schedules import crontab | ||||||
| 
 | 
 | ||||||
| CELERY_BEAT_SCHEDULE = { | CELERY_BEAT_SCHEDULE = { | ||||||
|     "admin_latest_version": { |     "admin_latest_version": { | ||||||
|         "task": "passbook.admin.tasks.update_latest_version", |         "task": "authentik.admin.tasks.update_latest_version", | ||||||
|         "schedule": crontab(minute=0),  # Run every hour |         "schedule": crontab(minute=0),  # Run every hour | ||||||
|         "options": {"queue": "passbook_scheduled"}, |         "options": {"queue": "authentik_scheduled"}, | ||||||
|     } |     } | ||||||
| } | } | ||||||
| @ -1,13 +1,13 @@ | |||||||
| """passbook admin tasks""" | """authentik admin tasks""" | ||||||
| from django.core.cache import cache | from django.core.cache import cache | ||||||
| from requests import RequestException, get | from requests import RequestException, get | ||||||
| from structlog import get_logger | from structlog import get_logger | ||||||
| 
 | 
 | ||||||
| from passbook.lib.tasks import MonitoredTask, TaskResult, TaskResultStatus | from authentik.lib.tasks import MonitoredTask, TaskResult, TaskResultStatus | ||||||
| from passbook.root.celery import CELERY_APP | from authentik.root.celery import CELERY_APP | ||||||
| 
 | 
 | ||||||
| LOGGER = get_logger() | LOGGER = get_logger() | ||||||
| VERSION_CACHE_KEY = "passbook_latest_version" | VERSION_CACHE_KEY = "authentik_latest_version" | ||||||
| VERSION_CACHE_TIMEOUT = 2 * 60 * 60  # 2 hours | VERSION_CACHE_TIMEOUT = 2 * 60 * 60  # 2 hours | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -15,9 +15,9 @@ VERSION_CACHE_TIMEOUT = 2 * 60 * 60  # 2 hours | |||||||
| def update_latest_version(self: MonitoredTask): | def update_latest_version(self: MonitoredTask): | ||||||
|     """Update latest version info""" |     """Update latest version info""" | ||||||
|     try: |     try: | ||||||
|         data = get( |         response = get("https://api.github.com/repos/beryju/authentik/releases/latest") | ||||||
|             "https://api.github.com/repos/beryju/passbook/releases/latest" |         response.raise_for_status() | ||||||
|         ).json() |         data = response.json() | ||||||
|         tag_name = data.get("tag_name") |         tag_name = data.get("tag_name") | ||||||
|         cache.set(VERSION_CACHE_KEY, tag_name.split("/")[1], VERSION_CACHE_TIMEOUT) |         cache.set(VERSION_CACHE_KEY, tag_name.split("/")[1], VERSION_CACHE_TIMEOUT) | ||||||
|         self.set_status( |         self.set_status( | ||||||
| @ -1,7 +1,7 @@ | |||||||
| {% extends "administration/base.html" %} | {% extends "administration/base.html" %} | ||||||
| 
 | 
 | ||||||
| {% load i18n %} | {% load i18n %} | ||||||
| {% load passbook_utils %} | {% load authentik_utils %} | ||||||
| 
 | 
 | ||||||
| {% block content %} | {% block content %} | ||||||
| <section class="pf-c-page__main-section pf-m-light"> | <section class="pf-c-page__main-section pf-m-light"> | ||||||
| @ -10,7 +10,7 @@ | |||||||
|             <i class="pf-icon pf-icon-applications"></i> |             <i class="pf-icon pf-icon-applications"></i> | ||||||
|             {% trans 'Applications' %} |             {% trans 'Applications' %} | ||||||
|         </h1> |         </h1> | ||||||
|         <p>{% trans "External Applications which use passbook as Identity-Provider, utilizing protocols like OAuth2 and SAML." %}</p> |         <p>{% trans "External Applications which use authentik as Identity-Provider, utilizing protocols like OAuth2 and SAML." %}</p> | ||||||
|     </div> |     </div> | ||||||
| </section> | </section> | ||||||
| <section class="pf-c-page__main-section pf-m-no-padding-mobile"> | <section class="pf-c-page__main-section pf-m-no-padding-mobile"> | ||||||
| @ -20,7 +20,15 @@ | |||||||
|             <div class="pf-c-toolbar__content"> |             <div class="pf-c-toolbar__content"> | ||||||
|                 {% include 'partials/toolbar_search.html' %} |                 {% include 'partials/toolbar_search.html' %} | ||||||
|                 <div class="pf-c-toolbar__bulk-select"> |                 <div class="pf-c-toolbar__bulk-select"> | ||||||
|                     <a href="{% url 'passbook_admin:application-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a> |                     <ak-modal-button href="{% url 'authentik_admin:application-create' %}"> | ||||||
|  |                         <ak-spinner-button slot="trigger" class="pf-m-primary"> | ||||||
|  |                             {% trans 'Create' %} | ||||||
|  |                         </ak-spinner-button> | ||||||
|  |                         <div slot="modal"></div> | ||||||
|  |                     </ak-modal-button> | ||||||
|  |                     <button role="ak-refresh" class="pf-c-button pf-m-primary"> | ||||||
|  |                         {% trans 'Refresh' %} | ||||||
|  |                     </button> | ||||||
|                 </div> |                 </div> | ||||||
|                 {% include 'partials/pagination.html' %} |                 {% include 'partials/pagination.html' %} | ||||||
|             </div> |             </div> | ||||||
| @ -28,23 +36,37 @@ | |||||||
|         <table class="pf-c-table pf-m-compact pf-m-grid-xl" role="grid"> |         <table class="pf-c-table pf-m-compact pf-m-grid-xl" role="grid"> | ||||||
|             <thead> |             <thead> | ||||||
|                 <tr role="row"> |                 <tr role="row"> | ||||||
|  |                     <th role="columnheader"></th> | ||||||
|                     <th role="columnheader" scope="col">{% trans 'Name' %}</th> |                     <th role="columnheader" scope="col">{% trans 'Name' %}</th> | ||||||
|  |                     <th role="columnheader" scope="col">{% trans 'Slug' %}</th> | ||||||
|                     <th role="columnheader" scope="col">{% trans 'Provider' %}</th> |                     <th role="columnheader" scope="col">{% trans 'Provider' %}</th> | ||||||
|                     <th role="columnheader" scope="col">{% trans 'Provider Type' %}</th> |                     <th role="columnheader" scope="col">{% trans 'Provider Type' %}</th> | ||||||
|                     <th role="cell"></th> |                     <th role="columnheader"></th> | ||||||
|                 </tr> |                 </tr> | ||||||
|             </thead> |             </thead> | ||||||
|             <tbody role="rowgroup"> |             <tbody role="rowgroup"> | ||||||
|                 {% for application in object_list %} |                 {% for application in object_list %} | ||||||
|                 <tr role="row"> |                 <tr role="row"> | ||||||
|                     <th role="columnheader"> |                     <td role="cell" {% if application.meta_icon %} style="vertical-align: bottom;" {% endif %}> | ||||||
|                         <div> |                         {% if application.meta_icon %} | ||||||
|                             <div>{{ application.name }}</div> |                         <img class="app-icon pf-c-avatar" src="{{ application.meta_icon.url }}" alt="{% trans 'Application Icon' %}"> | ||||||
|  |                         {% else %} | ||||||
|  |                         <i class="pf-icon pf-icon-arrow"></i> | ||||||
|  |                         {% endif %} | ||||||
|  |                     </td> | ||||||
|  |                     <td role="cell"> | ||||||
|  |                         <a href="/applications/{{ application.slug }}/"> | ||||||
|  |                             <div> | ||||||
|  |                                 {{ application.name }} | ||||||
|  |                             </div> | ||||||
|                             {% if application.meta_publisher %} |                             {% if application.meta_publisher %} | ||||||
|                             <small>{{ application.meta_publisher }}</small> |                             <small>{{ application.meta_publisher }}</small> | ||||||
|                             {% endif %} |                             {% endif %} | ||||||
|                         </div> |                         </a> | ||||||
|                     </th> |                     </td> | ||||||
|  |                     <td role="cell"> | ||||||
|  |                         <code>{{ application.slug }}</span> | ||||||
|  |                     </td> | ||||||
|                     <td role="cell"> |                     <td role="cell"> | ||||||
|                         <span> |                         <span> | ||||||
|                             {{ application.get_provider }} |                             {{ application.get_provider }} | ||||||
| @ -56,8 +78,18 @@ | |||||||
|                         </span> |                         </span> | ||||||
|                     </td> |                     </td> | ||||||
|                     <td> |                     <td> | ||||||
|                         <a class="pf-c-button pf-m-secondary" href="{% url 'passbook_admin:application-update' pk=application.pk %}?back={{ request.get_full_path }}">{% trans 'Edit' %}</a> |                         <ak-modal-button href="{% url 'authentik_admin:application-update' pk=application.pk %}"> | ||||||
|                         <a class="pf-c-button pf-m-danger" href="{% url 'passbook_admin:application-delete' pk=application.pk %}?back={{ request.get_full_path }}">{% trans 'Delete' %}</a> |                             <ak-spinner-button slot="trigger" class="pf-m-secondary"> | ||||||
|  |                                 {% trans 'Edit' %} | ||||||
|  |                             </ak-spinner-button> | ||||||
|  |                             <div slot="modal"></div> | ||||||
|  |                         </ak-modal-button> | ||||||
|  |                         <ak-modal-button href="{% url 'authentik_admin:application-delete' pk=application.pk %}"> | ||||||
|  |                             <ak-spinner-button slot="trigger" class="pf-m-danger"> | ||||||
|  |                                 {% trans 'Delete' %} | ||||||
|  |                             </ak-spinner-button> | ||||||
|  |                             <div slot="modal"></div> | ||||||
|  |                         </ak-modal-button> | ||||||
|                     </td> |                     </td> | ||||||
|                 </tr> |                 </tr> | ||||||
|                 {% endfor %} |                 {% endfor %} | ||||||
| @ -85,7 +117,12 @@ | |||||||
|                     {% trans 'Currently no applications exist. Click the button below to create one.' %} |                     {% trans 'Currently no applications exist. Click the button below to create one.' %} | ||||||
|                 {% endif %} |                 {% endif %} | ||||||
|                 </div> |                 </div> | ||||||
|                 <a href="{% url 'passbook_admin:application-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a> |                 <ak-modal-button href="{% url 'authentik_admin:application-create' %}"> | ||||||
|  |                     <ak-spinner-button slot="trigger" class="pf-m-primary"> | ||||||
|  |                         {% trans 'Create' %} | ||||||
|  |                     </ak-spinner-button> | ||||||
|  |                     <div slot="modal"></div> | ||||||
|  |                 </ak-modal-button> | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|         {% endif %} |         {% endif %} | ||||||
							
								
								
									
										5
									
								
								authentik/admin/templates/administration/base.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								authentik/admin/templates/administration/base.html
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,5 @@ | |||||||
|  | {% load static %} | ||||||
|  | {% load i18n %} | ||||||
|  |  | ||||||
|  | {% block content %} | ||||||
|  | {% endblock %} | ||||||
| @ -1,7 +1,7 @@ | |||||||
| {% extends "administration/base.html" %} | {% extends "administration/base.html" %} | ||||||
| 
 | 
 | ||||||
| {% load i18n %} | {% load i18n %} | ||||||
| {% load passbook_utils %} | {% load authentik_utils %} | ||||||
| 
 | 
 | ||||||
| {% block content %} | {% block content %} | ||||||
| <section class="pf-c-page__main-section pf-m-light"> | <section class="pf-c-page__main-section pf-m-light"> | ||||||
| @ -20,7 +20,15 @@ | |||||||
|             <div class="pf-c-toolbar__content"> |             <div class="pf-c-toolbar__content"> | ||||||
|                 {% include 'partials/toolbar_search.html' %} |                 {% include 'partials/toolbar_search.html' %} | ||||||
|                 <div class="pf-c-toolbar__bulk-select"> |                 <div class="pf-c-toolbar__bulk-select"> | ||||||
|                     <a href="{% url 'passbook_admin:certificatekeypair-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a> |                     <ak-modal-button href="{% url 'authentik_admin:certificatekeypair-create' %}"> | ||||||
|  |                         <ak-spinner-button slot="trigger" class="pf-m-primary"> | ||||||
|  |                             {% trans 'Create' %} | ||||||
|  |                         </ak-spinner-button> | ||||||
|  |                         <div slot="modal"></div> | ||||||
|  |                     </ak-modal-button> | ||||||
|  |                     <button role="ak-refresh" class="pf-c-button pf-m-primary"> | ||||||
|  |                         {% trans 'Refresh' %} | ||||||
|  |                     </button> | ||||||
|                 </div> |                 </div> | ||||||
|                 {% include 'partials/pagination.html' %} |                 {% include 'partials/pagination.html' %} | ||||||
|             </div> |             </div> | ||||||
| @ -31,7 +39,6 @@ | |||||||
|                     <th role="columnheader" scope="col">{% trans 'Name' %}</th> |                     <th role="columnheader" scope="col">{% trans 'Name' %}</th> | ||||||
|                     <th role="columnheader" scope="col">{% trans 'Private Key available' %}</th> |                     <th role="columnheader" scope="col">{% trans 'Private Key available' %}</th> | ||||||
|                     <th role="columnheader" scope="col">{% trans 'Fingerprint' %}</th> |                     <th role="columnheader" scope="col">{% trans 'Fingerprint' %}</th> | ||||||
|                     <th role="columnheader" scope="col">{% trans 'Provider Type' %}</th> |  | ||||||
|                     <th role="cell"></th> |                     <th role="cell"></th> | ||||||
|                 </tr> |                 </tr> | ||||||
|             </thead> |             </thead> | ||||||
| @ -53,13 +60,21 @@ | |||||||
|                         </span> |                         </span> | ||||||
|                     </td> |                     </td> | ||||||
|                     <td role="cell"> |                     <td role="cell"> | ||||||
|                         <span> |                         <code>{{ kp.fingerprint }}</code> | ||||||
|                             {{ kp.fingerprint }} |  | ||||||
|                         </span> |  | ||||||
|                     </td> |                     </td> | ||||||
|                     <td> |                     <td> | ||||||
|                         <a class="pf-c-button pf-m-secondary" href="{% url 'passbook_admin:certificatekeypair-update' pk=kp.pk %}?back={{ request.get_full_path }}">{% trans 'Edit' %}</a> |                         <ak-modal-button href="{% url 'authentik_admin:certificatekeypair-update' pk=kp.pk %}"> | ||||||
|                         <a class="pf-c-button pf-m-danger" href="{% url 'passbook_admin:certificatekeypair-delete' pk=kp.pk %}?back={{ request.get_full_path }}">{% trans 'Delete' %}</a> |                             <ak-spinner-button slot="trigger" class="pf-m-secondary"> | ||||||
|  |                                 {% trans 'Edit' %} | ||||||
|  |                             </ak-spinner-button> | ||||||
|  |                             <div slot="modal"></div> | ||||||
|  |                         </ak-modal-button> | ||||||
|  |                         <ak-modal-button href="{% url 'authentik_admin:certificatekeypair-delete' pk=kp.pk %}"> | ||||||
|  |                             <ak-spinner-button slot="trigger" class="pf-m-danger"> | ||||||
|  |                                 {% trans 'Delete' %} | ||||||
|  |                             </ak-spinner-button> | ||||||
|  |                             <div slot="modal"></div> | ||||||
|  |                         </ak-modal-button> | ||||||
|                     </td> |                     </td> | ||||||
|                 </tr> |                 </tr> | ||||||
|                 {% endfor %} |                 {% endfor %} | ||||||
| @ -87,7 +102,12 @@ | |||||||
|                     {% trans 'Currently no certificates exist. Click the button below to create one.' %} |                     {% trans 'Currently no certificates exist. Click the button below to create one.' %} | ||||||
|                 {% endif %} |                 {% endif %} | ||||||
|                 </div> |                 </div> | ||||||
|                 <a href="{% url 'passbook_admin:certificatekeypair-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a> |                 <ak-modal-button href="{% url 'authentik_admin:certificatekeypair-create' %}"> | ||||||
|  |                     <ak-spinner-button slot="trigger" class="pf-m-primary"> | ||||||
|  |                         {% trans 'Create' %} | ||||||
|  |                     </ak-spinner-button> | ||||||
|  |                     <div slot="modal"></div> | ||||||
|  |                 </ak-modal-button> | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|         {% endif %} |         {% endif %} | ||||||
| @ -1,7 +1,7 @@ | |||||||
| {% extends "administration/base.html" %} | {% extends "administration/base.html" %} | ||||||
| 
 | 
 | ||||||
| {% load i18n %} | {% load i18n %} | ||||||
| {% load passbook_utils %} | {% load authentik_utils %} | ||||||
| 
 | 
 | ||||||
| {% block content %} | {% block content %} | ||||||
| <section class="pf-c-page__main-section pf-m-light"> | <section class="pf-c-page__main-section pf-m-light"> | ||||||
| @ -20,8 +20,21 @@ | |||||||
|             <div class="pf-c-toolbar__content"> |             <div class="pf-c-toolbar__content"> | ||||||
|                 {% include 'partials/toolbar_search.html' %} |                 {% include 'partials/toolbar_search.html' %} | ||||||
|                 <div class="pf-c-toolbar__bulk-select"> |                 <div class="pf-c-toolbar__bulk-select"> | ||||||
|                     <a href="{% url 'passbook_admin:flow-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a> |                     <ak-modal-button href="{% url 'authentik_admin:flow-create' %}"> | ||||||
|                     <a href="{% url 'passbook_admin:flow-import' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-secondary" type="button">{% trans 'Import' %}</a> |                         <ak-spinner-button slot="trigger" class="pf-m-primary"> | ||||||
|  |                             {% trans 'Create' %} | ||||||
|  |                         </ak-spinner-button> | ||||||
|  |                         <div slot="modal"></div> | ||||||
|  |                     </ak-modal-button> | ||||||
|  |                     <ak-modal-button href="{% url 'authentik_admin:flow-import' %}"> | ||||||
|  |                         <ak-spinner-button slot="trigger" class="pf-m-secondary"> | ||||||
|  |                             {% trans 'Import' %} | ||||||
|  |                         </ak-spinner-button> | ||||||
|  |                         <div slot="modal"></div> | ||||||
|  |                     </ak-modal-button> | ||||||
|  |                     <button role="ak-refresh" class="pf-c-button pf-m-primary"> | ||||||
|  |                         {% trans 'Refresh' %} | ||||||
|  |                     </button> | ||||||
|                 </div> |                 </div> | ||||||
|                 {% include 'partials/pagination.html' %} |                 {% include 'partials/pagination.html' %} | ||||||
|             </div> |             </div> | ||||||
| @ -40,10 +53,10 @@ | |||||||
|                 {% for flow in object_list %} |                 {% for flow in object_list %} | ||||||
|                 <tr role="row"> |                 <tr role="row"> | ||||||
|                     <th role="columnheader"> |                     <th role="columnheader"> | ||||||
|                         <div> |                         <a href="/flows/{{ flow.slug }}/"> | ||||||
|                             <div>{{ flow.slug }}</div> |                             <div><code>{{ flow.slug }}</code></div> | ||||||
|                             <small>{{ flow.name }}</small> |                             <small>{{ flow.name }}</small> | ||||||
|                         </div> |                         </a> | ||||||
|                     </th> |                     </th> | ||||||
|                     <td role="cell"> |                     <td role="cell"> | ||||||
|                         <span> |                         <span> | ||||||
| @ -61,10 +74,20 @@ | |||||||
|                         </span> |                         </span> | ||||||
|                     </td> |                     </td> | ||||||
|                     <td> |                     <td> | ||||||
|                         <a class="pf-c-button pf-m-secondary" href="{% url 'passbook_admin:flow-update' pk=flow.pk %}?back={{ request.get_full_path }}">{% trans 'Edit' %}</a> |                         <ak-modal-button href="{% url 'authentik_admin:flow-update' pk=flow.pk %}"> | ||||||
|                         <a class="pf-c-button pf-m-danger" href="{% url 'passbook_admin:flow-delete' pk=flow.pk %}?back={{ request.get_full_path }}">{% trans 'Delete' %}</a> |                             <ak-spinner-button slot="trigger" class="pf-m-secondary"> | ||||||
|                         <a class="pf-c-button pf-m-secondary" href="{% url 'passbook_admin:flow-execute' pk=flow.pk %}?next={{ request.get_full_path }}">{% trans 'Execute' %}</a> |                                 {% trans 'Edit' %} | ||||||
|                         <a class="pf-c-button pf-m-secondary" href="{% url 'passbook_admin:flow-export' pk=flow.pk %}?next={{ request.get_full_path }}">{% trans 'Export' %}</a> |                             </ak-spinner-button> | ||||||
|  |                             <div slot="modal"></div> | ||||||
|  |                         </ak-modal-button> | ||||||
|  |                         <ak-modal-button href="{% url 'authentik_admin:flow-delete' pk=flow.pk %}"> | ||||||
|  |                             <ak-spinner-button slot="trigger" class="pf-m-danger"> | ||||||
|  |                                 {% trans 'Delete' %} | ||||||
|  |                             </ak-spinner-button> | ||||||
|  |                             <div slot="modal"></div> | ||||||
|  |                         </ak-modal-button> | ||||||
|  |                         <a class="pf-c-button pf-m-secondary ak-root-link" href="{% url 'authentik_admin:flow-execute' pk=flow.pk %}?next={{ request.get_full_path }}">{% trans 'Execute' %}</a> | ||||||
|  |                         <a class="pf-c-button pf-m-secondary ak-root-link" href="{% url 'authentik_admin:flow-export' pk=flow.pk %}?next={{ request.get_full_path }}">{% trans 'Export' %}</a> | ||||||
|                     </td> |                     </td> | ||||||
|                 </tr> |                 </tr> | ||||||
|                 {% endfor %} |                 {% endfor %} | ||||||
| @ -92,8 +115,18 @@ | |||||||
|                     {% trans 'Currently no flows exist. Click the button below to create one.' %} |                     {% trans 'Currently no flows exist. Click the button below to create one.' %} | ||||||
|                 {% endif %} |                 {% endif %} | ||||||
|                 </div> |                 </div> | ||||||
|                 <a href="{% url 'passbook_admin:flow-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a> |                 <ak-modal-button href="{% url 'authentik_admin:flow-create' %}"> | ||||||
|                 <a href="{% url 'passbook_admin:flow-import' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Import' %}</a> |                     <ak-spinner-button slot="trigger" class="pf-m-primary"> | ||||||
|  |                         {% trans 'Create' %} | ||||||
|  |                     </ak-spinner-button> | ||||||
|  |                     <div slot="modal"></div> | ||||||
|  |                 </ak-modal-button> | ||||||
|  |                 <ak-modal-button href="{% url 'authentik_admin:flow-import' %}"> | ||||||
|  |                     <ak-spinner-button slot="trigger" class="pf-m-secondary"> | ||||||
|  |                         {% trans 'Import' %} | ||||||
|  |                     </ak-spinner-button> | ||||||
|  |                     <div slot="modal"></div> | ||||||
|  |                 </ak-modal-button> | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|         {% endif %} |         {% endif %} | ||||||
| @ -1,7 +1,6 @@ | |||||||
| {% extends "administration/base.html" %} | {% extends "administration/base.html" %} | ||||||
| 
 | 
 | ||||||
| {% load i18n %} | {% load i18n %} | ||||||
| {% load passbook_utils %} |  | ||||||
| 
 | 
 | ||||||
| {% block content %} | {% block content %} | ||||||
| <section class="pf-c-page__main-section pf-m-light"> | <section class="pf-c-page__main-section pf-m-light"> | ||||||
| @ -21,8 +20,15 @@ | |||||||
|             <div class="pf-c-toolbar__content"> |             <div class="pf-c-toolbar__content"> | ||||||
|                 {% include 'partials/toolbar_search.html' %} |                 {% include 'partials/toolbar_search.html' %} | ||||||
|                 <div class="pf-c-toolbar__bulk-select"> |                 <div class="pf-c-toolbar__bulk-select"> | ||||||
|                     <a href="{% url 'passbook_admin:group-create' %}?back={{ request.get_full_path }}" |                     <ak-modal-button href="{% url 'authentik_admin:group-create' %}"> | ||||||
|                         class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a> |                         <ak-spinner-button slot="trigger" class="pf-m-primary"> | ||||||
|  |                             {% trans 'Create' %} | ||||||
|  |                         </ak-spinner-button> | ||||||
|  |                         <div slot="modal"></div> | ||||||
|  |                     </ak-modal-button> | ||||||
|  |                     <button role="ak-refresh" class="pf-c-button pf-m-primary"> | ||||||
|  |                         {% trans 'Refresh' %} | ||||||
|  |                     </button> | ||||||
|                 </div> |                 </div> | ||||||
|                 {% include 'partials/pagination.html' %} |                 {% include 'partials/pagination.html' %} | ||||||
|             </div> |             </div> | ||||||
| @ -55,8 +61,18 @@ | |||||||
|                         </span> |                         </span> | ||||||
|                     </td> |                     </td> | ||||||
|                     <td> |                     <td> | ||||||
|                         <a class="pf-c-button pf-m-secondary" href="{% url 'passbook_admin:group-update' pk=group.pk %}?back={{ request.get_full_path }}">{% trans 'Edit' %}</a> |                         <ak-modal-button href="{% url 'authentik_admin:group-update' pk=group.pk %}"> | ||||||
|                         <a class="pf-c-button pf-m-danger" href="{% url 'passbook_admin:group-delete' pk=group.pk %}?back={{ request.get_full_path }}">{% trans 'Delete' %}</a> |                             <ak-spinner-button slot="trigger" class="pf-m-secondary"> | ||||||
|  |                                 {% trans 'Edit' %} | ||||||
|  |                             </ak-spinner-button> | ||||||
|  |                             <div slot="modal"></div> | ||||||
|  |                         </ak-modal-button> | ||||||
|  |                         <ak-modal-button href="{% url 'authentik_admin:group-delete' pk=group.pk %}"> | ||||||
|  |                             <ak-spinner-button slot="trigger" class="pf-m-danger"> | ||||||
|  |                                 {% trans 'Delete' %} | ||||||
|  |                             </ak-spinner-button> | ||||||
|  |                             <div slot="modal"></div> | ||||||
|  |                         </ak-modal-button> | ||||||
|                     </td> |                     </td> | ||||||
|                 </tr> |                 </tr> | ||||||
|                 {% endfor %} |                 {% endfor %} | ||||||
| @ -84,7 +100,12 @@ | |||||||
|                     {% trans 'Currently no group exist. Click the button below to create one.' %} |                     {% trans 'Currently no group exist. Click the button below to create one.' %} | ||||||
|                 {% endif %} |                 {% endif %} | ||||||
|                 </div> |                 </div> | ||||||
|                 <a href="{% url 'passbook_admin:group-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a> |                 <ak-modal-button href="{% url 'authentik_admin:group-create' %}"> | ||||||
|  |                     <ak-spinner-button slot="trigger" class="pf-m-primary"> | ||||||
|  |                         {% trans 'Create' %} | ||||||
|  |                     </ak-spinner-button> | ||||||
|  |                     <div slot="modal"></div> | ||||||
|  |                 </ak-modal-button> | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|         {% endif %} |         {% endif %} | ||||||
| @ -2,17 +2,17 @@ | |||||||
| 
 | 
 | ||||||
| {% load i18n %} | {% load i18n %} | ||||||
| {% load humanize %} | {% load humanize %} | ||||||
| {% load passbook_utils %} | {% load authentik_utils %} | ||||||
| {% load admin_reflection %} | {% load admin_reflection %} | ||||||
| 
 | 
 | ||||||
| {% block content %} | {% block content %} | ||||||
| <section class="pf-c-page__main-section pf-m-light"> | <section class="pf-c-page__main-section pf-m-light"> | ||||||
|     <div class="pf-c-content"> |     <div class="pf-c-content"> | ||||||
|         <h1> |         <h1> | ||||||
|             <i class="fas fa-map-marker"></i> |             <i class="pf-icon pf-icon-zone"></i> | ||||||
|             {% trans 'Outposts' %} |             {% trans 'Outposts' %} | ||||||
|         </h1> |         </h1> | ||||||
|         <p>{% trans "Outposts are deployments of passbook components to support different environments and protocols, like reverse proxies." %}</p> |         <p>{% trans "Outposts are deployments of authentik components to support different environments and protocols, like reverse proxies." %}</p> | ||||||
|     </div> |     </div> | ||||||
| </section> | </section> | ||||||
| <section class="pf-c-page__main-section pf-m-no-padding-mobile"> | <section class="pf-c-page__main-section pf-m-no-padding-mobile"> | ||||||
| @ -22,7 +22,15 @@ | |||||||
|             <div class="pf-c-toolbar__content"> |             <div class="pf-c-toolbar__content"> | ||||||
|                 {% include 'partials/toolbar_search.html' %} |                 {% include 'partials/toolbar_search.html' %} | ||||||
|                 <div class="pf-c-toolbar__bulk-select"> |                 <div class="pf-c-toolbar__bulk-select"> | ||||||
|                     <a href="{% url 'passbook_admin:outpost-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a> |                     <ak-modal-button href="{% url 'authentik_admin:outpost-create' %}"> | ||||||
|  |                         <ak-spinner-button slot="trigger" class="pf-m-primary"> | ||||||
|  |                             {% trans 'Create' %} | ||||||
|  |                         </ak-spinner-button> | ||||||
|  |                         <div slot="modal"></div> | ||||||
|  |                     </ak-modal-button> | ||||||
|  |                     <button role="ak-refresh" class="pf-c-button pf-m-primary"> | ||||||
|  |                         {% trans 'Refresh' %} | ||||||
|  |                     </button> | ||||||
|                 </div> |                 </div> | ||||||
|                 {% include 'partials/pagination.html' %} |                 {% include 'partials/pagination.html' %} | ||||||
|             </div> |             </div> | ||||||
| @ -84,8 +92,18 @@ | |||||||
|                     {% endif %} |                     {% endif %} | ||||||
|                     {% endwith %} |                     {% endwith %} | ||||||
|                     <td> |                     <td> | ||||||
|                         <a class="pf-c-button pf-m-secondary" href="{% url 'passbook_admin:outpost-update' pk=outpost.pk %}?back={{ request.get_full_path }}">{% trans 'Edit' %}</a> |                         <ak-modal-button href="{% url 'authentik_admin:outpost-update' pk=outpost.pk %}"> | ||||||
|                         <a class="pf-c-button pf-m-danger" href="{% url 'passbook_admin:outpost-delete' pk=outpost.pk %}?back={{ request.get_full_path }}">{% trans 'Delete' %}</a> |                             <ak-spinner-button slot="trigger" class="pf-m-secondary"> | ||||||
|  |                                 {% trans 'Edit' %} | ||||||
|  |                             </ak-spinner-button> | ||||||
|  |                             <div slot="modal"></div> | ||||||
|  |                         </ak-modal-button> | ||||||
|  |                         <ak-modal-button href="{% url 'authentik_admin:outpost-delete' pk=outpost.pk %}"> | ||||||
|  |                             <ak-spinner-button slot="trigger" class="pf-m-danger"> | ||||||
|  |                                 {% trans 'Delete' %} | ||||||
|  |                             </ak-spinner-button> | ||||||
|  |                             <div slot="modal"></div> | ||||||
|  |                         </ak-modal-button> | ||||||
|                         {% get_htmls outpost as htmls %} |                         {% get_htmls outpost as htmls %} | ||||||
|                         {% for html in htmls %} |                         {% for html in htmls %} | ||||||
|                         {{ html|safe }} |                         {{ html|safe }} | ||||||
| @ -117,7 +135,12 @@ | |||||||
|                     {% trans 'Currently no outposts exist. Click the button below to create one.' %} |                     {% trans 'Currently no outposts exist. Click the button below to create one.' %} | ||||||
|                 {% endif %} |                 {% endif %} | ||||||
|                 </div> |                 </div> | ||||||
|                 <a href="{% url 'passbook_admin:outpost-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a> |                 <ak-modal-button href="{% url 'authentik_admin:outpost-create' %}"> | ||||||
|  |                     <ak-spinner-button slot="trigger" class="pf-m-primary"> | ||||||
|  |                         {% trans 'Create' %} | ||||||
|  |                     </ak-spinner-button> | ||||||
|  |                     <div slot="modal"></div> | ||||||
|  |                 </ak-modal-button> | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|         {% endif %} |         {% endif %} | ||||||
| @ -2,7 +2,7 @@ | |||||||
| 
 | 
 | ||||||
| {% load i18n %} | {% load i18n %} | ||||||
| {% load humanize %} | {% load humanize %} | ||||||
| {% load passbook_utils %} | {% load authentik_utils %} | ||||||
| {% load admin_reflection %} | {% load admin_reflection %} | ||||||
| 
 | 
 | ||||||
| {% block content %} | {% block content %} | ||||||
| @ -12,7 +12,7 @@ | |||||||
|             <i class="pf-icon-integration"></i> |             <i class="pf-icon-integration"></i> | ||||||
|             {% trans 'Outpost Service-Connections' %} |             {% trans 'Outpost Service-Connections' %} | ||||||
|         </h1> |         </h1> | ||||||
|         <p>{% trans "Outpost Service-Connections define how passbook connects to external platforms to manage and deploy Outposts." %}</p> |         <p>{% trans "Outpost Service-Connections define how authentik connects to external platforms to manage and deploy Outposts." %}</p> | ||||||
|     </div> |     </div> | ||||||
| </section> | </section> | ||||||
| <section class="pf-c-page__main-section pf-m-no-padding-mobile"> | <section class="pf-c-page__main-section pf-m-no-padding-mobile"> | ||||||
| @ -22,7 +22,7 @@ | |||||||
|             <div class="pf-c-toolbar__content"> |             <div class="pf-c-toolbar__content"> | ||||||
|                 {% include 'partials/toolbar_search.html' %} |                 {% include 'partials/toolbar_search.html' %} | ||||||
|                 <div class="pf-c-toolbar__bulk-select"> |                 <div class="pf-c-toolbar__bulk-select"> | ||||||
|                     <div class="pf-c-dropdown"> |                     <ak-dropdown class="pf-c-dropdown"> | ||||||
|                         <button class="pf-m-primary pf-c-dropdown__toggle" type="button"> |                         <button class="pf-m-primary pf-c-dropdown__toggle" type="button"> | ||||||
|                             <span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span> |                             <span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span> | ||||||
|                             <i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i> |                             <i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i> | ||||||
| @ -30,16 +30,22 @@ | |||||||
|                         <ul class="pf-c-dropdown__menu" hidden> |                         <ul class="pf-c-dropdown__menu" hidden> | ||||||
|                             {% for type, name in types.items %} |                             {% for type, name in types.items %} | ||||||
|                             <li> |                             <li> | ||||||
|                                 <a class="pf-c-dropdown__menu-item" href="{% url 'passbook_admin:outpost-service-connection-create' %}?type={{ type }}&back={{ request.get_full_path }}"> |                                 <ak-modal-button href="{% url 'authentik_admin:outpost-service-connection-create' %}?type={{ type }}"> | ||||||
|                                     {{ name|verbose_name }}<br> |                                     <button slot="trigger" class="pf-c-dropdown__menu-item"> | ||||||
|                                     <small> |                                         {{ name|verbose_name }}<br> | ||||||
|                                         {{ name|doc }} |                                         <small> | ||||||
|                                     </small> |                                             {{ name|doc }} | ||||||
|                                 </a> |                                         </small> | ||||||
|  |                                     </button> | ||||||
|  |                                     <div slot="modal"></div> | ||||||
|  |                                 </ak-modal-button> | ||||||
|                             </li> |                             </li> | ||||||
|                             {% endfor %} |                             {% endfor %} | ||||||
|                         </ul> |                         </ul> | ||||||
|                     </div> |                     </ak-dropdown> | ||||||
|  |                     <button role="ak-refresh" class="pf-c-button pf-m-primary"> | ||||||
|  |                         {% trans 'Refresh' %} | ||||||
|  |                     </button> | ||||||
|                 </div> |                 </div> | ||||||
|                 {% include 'partials/pagination.html' %} |                 {% include 'partials/pagination.html' %} | ||||||
|             </div> |             </div> | ||||||
| @ -80,8 +86,18 @@ | |||||||
|                         </span> |                         </span> | ||||||
|                     </td> |                     </td> | ||||||
|                     <td> |                     <td> | ||||||
|                         <a class="pf-c-button pf-m-secondary" href="{% url 'passbook_admin:outpost-service-connection-update' pk=sc.pk %}?back={{ request.get_full_path }}">{% trans 'Edit' %}</a> |                         <ak-modal-button href="{% url 'authentik_admin:outpost-service-connection-update' pk=sc.pk %}"> | ||||||
|                         <a class="pf-c-button pf-m-danger" href="{% url 'passbook_admin:outpost-service-connection-delete' pk=sc.pk %}?back={{ request.get_full_path }}">{% trans 'Delete' %}</a> |                             <ak-spinner-button slot="trigger" class="pf-m-secondary"> | ||||||
|  |                                 {% trans 'Edit' %} | ||||||
|  |                             </ak-spinner-button> | ||||||
|  |                             <div slot="modal"></div> | ||||||
|  |                         </ak-modal-button> | ||||||
|  |                         <ak-modal-button href="{% url 'authentik_admin:outpost-service-connection-delete' pk=sc.pk %}"> | ||||||
|  |                             <ak-spinner-button slot="trigger" class="pf-m-danger"> | ||||||
|  |                                 {% trans 'Delete' %} | ||||||
|  |                             </ak-spinner-button> | ||||||
|  |                             <div slot="modal"></div> | ||||||
|  |                         </ak-modal-button> | ||||||
|                     </td> |                     </td> | ||||||
|                 </tr> |                 </tr> | ||||||
|                 {% endfor %} |                 {% endfor %} | ||||||
| @ -109,7 +125,7 @@ | |||||||
|                     {% trans 'Currently no service connections exist. Click the button below to create one.' %} |                     {% trans 'Currently no service connections exist. Click the button below to create one.' %} | ||||||
|                 {% endif %} |                 {% endif %} | ||||||
|                 </div> |                 </div> | ||||||
|                 <div class="pf-c-dropdown"> |                 <ak-dropdown class="pf-c-dropdown"> | ||||||
|                     <button class="pf-m-primary pf-c-dropdown__toggle" type="button"> |                     <button class="pf-m-primary pf-c-dropdown__toggle" type="button"> | ||||||
|                         <span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span> |                         <span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span> | ||||||
|                         <i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i> |                         <i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i> | ||||||
| @ -117,16 +133,19 @@ | |||||||
|                     <ul class="pf-c-dropdown__menu" hidden> |                     <ul class="pf-c-dropdown__menu" hidden> | ||||||
|                         {% for type, name in types.items %} |                         {% for type, name in types.items %} | ||||||
|                         <li> |                         <li> | ||||||
|                             <a class="pf-c-dropdown__menu-item" href="{% url 'passbook_admin:outpost-service-connection-create' %}?type={{ type }}&back={{ request.get_full_path }}"> |                             <ak-modal-button href="{% url 'authentik_admin:outpost-service-connection-create' %}?type={{ type }}"> | ||||||
|                                 {{ name|verbose_name }}<br> |                                 <button slot="trigger" class="pf-c-dropdown__menu-item"> | ||||||
|                                 <small> |                                     {{ name|verbose_name }}<br> | ||||||
|                                     {{ name|doc }} |                                     <small> | ||||||
|                                 </small> |                                         {{ name|doc }} | ||||||
|                             </a> |                                     </small> | ||||||
|  |                                 </button> | ||||||
|  |                                 <div slot="modal"></div> | ||||||
|  |                             </ak-modal-button> | ||||||
|                         </li> |                         </li> | ||||||
|                         {% endfor %} |                         {% endfor %} | ||||||
|                     </ul> |                     </ul> | ||||||
|                 </div> |                 </ak-dropdown> | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|         {% endif %} |         {% endif %} | ||||||
| @ -17,8 +17,8 @@ | |||||||
|                     <i class="pf-icon pf-icon-server"></i> {% trans 'Logins over the last 24 hours' %} |                     <i class="pf-icon pf-icon-server"></i> {% trans 'Logins over the last 24 hours' %} | ||||||
|                 </div> |                 </div> | ||||||
|             </div> |             </div> | ||||||
|             <div class="pf-c-card__body" style="position: relative; height:100%; width:100%"> |             <div class="pf-c-card__body"> | ||||||
|                 <canvas id="logins-last-metrics"></canvas> |                 <ak-admin-logins-chart url="{% url 'authentik_api:admin_metrics-list' %}"></ak-admin-logins-chart> | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|         <div class="pf-c-card pf-c-card-aggregate pf-l-gallery__item pf-m-4-col" style="grid-column-end: span 2;grid-row-end: span 3;"> |         <div class="pf-c-card pf-c-card-aggregate pf-l-gallery__item pf-m-4-col" style="grid-column-end: span 2;grid-row-end: span 3;"> | ||||||
| @ -60,18 +60,18 @@ | |||||||
|                 <div class="pf-c-card__header-main"> |                 <div class="pf-c-card__header-main"> | ||||||
|                     <i class="pf-icon pf-icon-plugged"></i> {% trans 'Providers' %} |                     <i class="pf-icon pf-icon-plugged"></i> {% trans 'Providers' %} | ||||||
|                 </div> |                 </div> | ||||||
|                 <a href="{% url 'passbook_admin:providers' %}"> |                 <a href="{% url 'authentik_admin:providers' %}"> | ||||||
|                     <i class="fa fa-external-link-alt"> </i> |                     <i class="fa fa-external-link-alt"> </i> | ||||||
|                 </a> |                 </a> | ||||||
|             </div> |             </div> | ||||||
|             <div class="pf-c-card__body"> |             <div class="pf-c-card__body"> | ||||||
|                 {% if providers_without_application.exists %} |                 {% if providers_without_application.exists %} | ||||||
|                 <p class="pb-aggregate-card"> |                 <p class="ak-aggregate-card"> | ||||||
|                     <i class="fa fa-exclamation-triangle"></i> {{ provider_count }} |                     <i class="fa fa-exclamation-triangle"></i> {{ provider_count }} | ||||||
|                 </p> |                 </p> | ||||||
|                 <p>{% trans 'Warning: At least one Provider has no application assigned.' %}</p> |                 <p>{% trans 'Warning: At least one Provider has no application assigned.' %}</p> | ||||||
|                 {% else %} |                 {% else %} | ||||||
|                 <p class="pb-aggregate-card"> |                 <p class="ak-aggregate-card"> | ||||||
|                     <i class="fa fa-check-circle"></i> {{ provider_count }} |                     <i class="fa fa-check-circle"></i> {{ provider_count }} | ||||||
|                 </p> |                 </p> | ||||||
|                 {% endif %} |                 {% endif %} | ||||||
| @ -83,18 +83,18 @@ | |||||||
|                 <div class="pf-c-card__header-main"> |                 <div class="pf-c-card__header-main"> | ||||||
|                     <i class="pf-icon pf-icon-infrastructure"></i> {% trans 'Policies' %} |                     <i class="pf-icon pf-icon-infrastructure"></i> {% trans 'Policies' %} | ||||||
|                 </div> |                 </div> | ||||||
|                 <a href="{% url 'passbook_admin:policies' %}"> |                 <a href="{% url 'authentik_admin:policies' %}"> | ||||||
|                     <i class="fa fa-external-link-alt"> </i> |                     <i class="fa fa-external-link-alt"> </i> | ||||||
|                 </a> |                 </a> | ||||||
|             </div> |             </div> | ||||||
|             <div class="pf-c-card__body"> |             <div class="pf-c-card__body"> | ||||||
|                 {% if policies_without_binding %} |                 {% if policies_without_binding %} | ||||||
|                 <p class="pb-aggregate-card"> |                 <p class="ak-aggregate-card"> | ||||||
|                     <i class="fa fa-exclamation-triangle"></i> {{ policy_count }} |                     <i class="fa fa-exclamation-triangle"></i> {{ policy_count }} | ||||||
|                 </p> |                 </p> | ||||||
|                 <p>{% trans 'Policies without binding exist.' %}</p> |                 <p>{% trans 'Policies without binding exist.' %}</p> | ||||||
|                 {% else %} |                 {% else %} | ||||||
|                 <p class="pb-aggregate-card"> |                 <p class="ak-aggregate-card"> | ||||||
|                     <i class="fa fa-check-circle"></i> {{ policy_count }} |                     <i class="fa fa-check-circle"></i> {{ policy_count }} | ||||||
|                 </p> |                 </p> | ||||||
|                 {% endif %} |                 {% endif %} | ||||||
| @ -106,12 +106,12 @@ | |||||||
|                 <div class="pf-c-card__header-main"> |                 <div class="pf-c-card__header-main"> | ||||||
|                     <i class="pf-icon pf-icon-user"></i> {% trans 'Users' %} |                     <i class="pf-icon pf-icon-user"></i> {% trans 'Users' %} | ||||||
|                 </div> |                 </div> | ||||||
|                 <a href="{% url 'passbook_admin:users' %}"> |                 <a href="{% url 'authentik_admin:users' %}"> | ||||||
|                     <i class="fa fa-external-link-alt"> </i> |                     <i class="fa fa-external-link-alt"> </i> | ||||||
|                 </a> |                 </a> | ||||||
|             </div> |             </div> | ||||||
|             <div class="pf-c-card__body"> |             <div class="pf-c-card__body"> | ||||||
|                 <p class="pb-aggregate-card"> |                 <p class="ak-aggregate-card"> | ||||||
|                     <i class="fa fa-check-circle"></i> {{ user_count }} |                     <i class="fa fa-check-circle"></i> {{ user_count }} | ||||||
|                 </p> |                 </p> | ||||||
|             </div> |             </div> | ||||||
| @ -122,12 +122,12 @@ | |||||||
|                 <div class="pf-c-card__header-main"> |                 <div class="pf-c-card__header-main"> | ||||||
|                     <i class="pf-icon pf-icon-bundle"></i> {% trans 'Version' %} |                     <i class="pf-icon pf-icon-bundle"></i> {% trans 'Version' %} | ||||||
|                 </div> |                 </div> | ||||||
|                 <a href="https://github.com/BeryJu/passbook/releases" target="_blank"> |                 <a href="https://github.com/BeryJu/authentik/releases" target="_blank"> | ||||||
|                     <i class="fa fa-external-link-alt"> </i> |                     <i class="fa fa-external-link-alt"> </i> | ||||||
|                 </a> |                 </a> | ||||||
|             </div> |             </div> | ||||||
|             <div class="pf-c-card__body"> |             <div class="pf-c-card__body"> | ||||||
|                 <p class="pb-aggregate-card"> |                 <p class="ak-aggregate-card"> | ||||||
|                     {% if version >= version_latest %} |                     {% if version >= version_latest %} | ||||||
|                     <i class="fa fa-check-circle"></i> {{ version }} |                     <i class="fa fa-check-circle"></i> {{ version }} | ||||||
|                     {% else %} |                     {% else %} | ||||||
| @ -152,15 +152,15 @@ | |||||||
|                     <i class="pf-icon pf-icon-server"></i> {% trans 'Workers' %} |                     <i class="pf-icon pf-icon-server"></i> {% trans 'Workers' %} | ||||||
|                 </div> |                 </div> | ||||||
|             </div> |             </div> | ||||||
|             <fetch-fill-slot class="pf-c-card__body" url="{% url 'passbook_api:admin_overview-list' %}" key="worker_count"> |             <fetch-fill-slot class="pf-c-card__body" url="{% url 'authentik_api:admin_overview-list' %}" key="worker_count"> | ||||||
|                 <div slot="value < 1"> |                 <div slot="value < 1"> | ||||||
|                     <p class="pb-aggregate-card"> |                     <p class="ak-aggregate-card"> | ||||||
|                         <i class="fa fa-exclamation-triangle"></i> <span data-value></span> |                         <i class="fa fa-exclamation-triangle"></i> <span data-value></span> | ||||||
|                     </p> |                     </p> | ||||||
|                     <p>{% trans 'No workers connected.' %}</p> |                     <p>{% trans 'No workers connected.' %}</p> | ||||||
|                 </div> |                 </div> | ||||||
|                 <div slot="value >= 1"> |                 <div slot="value >= 1"> | ||||||
|                     <p class="pb-aggregate-card"> |                     <p class="ak-aggregate-card"> | ||||||
|                         <i class="fa fa-check-circle"></i> <span data-value></span> |                         <i class="fa fa-check-circle"></i> <span data-value></span> | ||||||
|                     </p> |                     </p> | ||||||
|                 </div> |                 </div> | ||||||
| @ -179,18 +179,21 @@ | |||||||
|                 <div class="pf-c-card__header-main"> |                 <div class="pf-c-card__header-main"> | ||||||
|                     <i class="pf-icon pf-icon-server"></i> {% trans 'Cached Policies' %} |                     <i class="pf-icon pf-icon-server"></i> {% trans 'Cached Policies' %} | ||||||
|                 </div> |                 </div> | ||||||
|                 <a data-target="modal" data-modal="clearPolicyCache"> |                 <ak-modal-button href="{% url 'authentik_admin:overview-clear-policy-cache' %}"> | ||||||
|                     <i class="fa fa-trash"> </i> |                     <a slot="trigger"> | ||||||
|                 </a> |                         <i class="fa fa-trash"> </i> | ||||||
|  |                     </a> | ||||||
|  |                     <div slot="modal"></div> | ||||||
|  |                 </ak-modal-button> | ||||||
|             </div> |             </div> | ||||||
|             <div class="pf-c-card__body"> |             <div class="pf-c-card__body"> | ||||||
|                 {% if cached_policies < 1 %} |                 {% if cached_policies < 1 %} | ||||||
|                 <p class="pb-aggregate-card"> |                 <p class="ak-aggregate-card"> | ||||||
|                     <i class="fa fa-exclamation-triangle"></i> {{ cached_policies }} |                     <i class="fa fa-exclamation-triangle"></i> {{ cached_policies }} | ||||||
|                 </p> |                 </p> | ||||||
|                 <p>{% trans 'No policies cached. Users may experience slow response times.' %}</p> |                 <p>{% trans 'No policies cached. Users may experience slow response times.' %}</p> | ||||||
|                 {% else %} |                 {% else %} | ||||||
|                 <p class="pb-aggregate-card"> |                 <p class="ak-aggregate-card"> | ||||||
|                     <i class="fa fa-check-circle"></i> {{ cached_policies }} |                     <i class="fa fa-check-circle"></i> {{ cached_policies }} | ||||||
|                 </p> |                 </p> | ||||||
|                 {% endif %} |                 {% endif %} | ||||||
| @ -202,18 +205,21 @@ | |||||||
|                 <div class="pf-c-card__header-main"> |                 <div class="pf-c-card__header-main"> | ||||||
|                     <i class="pf-icon pf-icon-server"></i> {% trans 'Cached Flows' %} |                     <i class="pf-icon pf-icon-server"></i> {% trans 'Cached Flows' %} | ||||||
|                 </div> |                 </div> | ||||||
|                 <a data-target="modal" data-modal="clearFlowCache"> |                 <ak-modal-button href="{% url 'authentik_admin:overview-clear-flow-cache' %}"> | ||||||
|                     <i class="fa fa-trash"> </i> |                     <a slot="trigger"> | ||||||
|                 </a> |                         <i class="fa fa-trash"> </i> | ||||||
|  |                     </a> | ||||||
|  |                     <div slot="modal"></div> | ||||||
|  |                 </ak-modal-button> | ||||||
|             </div> |             </div> | ||||||
|             <div class="pf-c-card__body"> |             <div class="pf-c-card__body"> | ||||||
|                 {% if cached_flows < 1 %} |                 {% if cached_flows < 1 %} | ||||||
|                 <p class="pb-aggregate-card"> |                 <p class="ak-aggregate-card"> | ||||||
|                     <span class="fa fa-exclamation-triangle"></span> {{ cached_flows }} |                     <span class="fa fa-exclamation-triangle"></span> {{ cached_flows }} | ||||||
|                 </p> |                 </p> | ||||||
|                 <p>{% trans 'No flows cached.' %}</p> |                 <p>{% trans 'No flows cached.' %}</p> | ||||||
|                 {% else %} |                 {% else %} | ||||||
|                 <p class="pb-aggregate-card"> |                 <p class="ak-aggregate-card"> | ||||||
|                     <i class="fa fa-check-circle"></i> {{ cached_flows }} |                     <i class="fa fa-check-circle"></i> {{ cached_flows }} | ||||||
|                 </p> |                 </p> | ||||||
|                 {% endif %} |                 {% endif %} | ||||||
| @ -221,117 +227,4 @@ | |||||||
|         </div> |         </div> | ||||||
|     </div> |     </div> | ||||||
| </section> | </section> | ||||||
| 
 |  | ||||||
| <div class="pf-c-backdrop" id="clearPolicyCache" hidden> |  | ||||||
|     <div class="pf-l-bullseye"> |  | ||||||
|         <div class="pf-c-modal-box pf-m-sm" role="dialog"> |  | ||||||
|             <button data-modal-close class="pf-c-button pf-m-plain" type="button" aria-label="Close dialog"> |  | ||||||
|                 <i class="fas fa-times" aria-hidden="true"></i> |  | ||||||
|             </button> |  | ||||||
|             <div class="pf-c-modal-box__header"> |  | ||||||
|                 <h1 class="pf-c-title pf-m-2xl" id="modal-title">{% trans 'Clear Policy Cache' %}?</h1> |  | ||||||
|             </div> |  | ||||||
|             <div class="pf-c-modal-box__body" id="modal-description"> |  | ||||||
|                 <form method="post" id="clear_policies"> |  | ||||||
|                     {% csrf_token %} |  | ||||||
|                     <input type="hidden" name="clear_policies"> |  | ||||||
|                     <p> |  | ||||||
|                         {% blocktrans %} |  | ||||||
|                         Are you sure you want to clear the policy cache? This will cause all policies to be re-evaluated on their next usage. |  | ||||||
|                         {% endblocktrans %} |  | ||||||
|                     </p> |  | ||||||
|                 </form> |  | ||||||
|             </div> |  | ||||||
|             <footer class="pf-c-modal-box__footer pf-m-align-left"> |  | ||||||
|                 <button form="clear_policies" class="pf-c-button pf-m-primary" type="submit">{% trans 'Clear' %}</button> |  | ||||||
|                 <button data-modal-close class="pf-c-button pf-m-link" type="button">{% trans 'Cancel' %}</button> |  | ||||||
|             </footer> |  | ||||||
|         </div> |  | ||||||
|     </div> |  | ||||||
| </div> |  | ||||||
| 
 |  | ||||||
| <div class="pf-c-backdrop" id="clearFlowCache" hidden> |  | ||||||
|     <div class="pf-l-bullseye"> |  | ||||||
|         <div class="pf-c-modal-box pf-m-sm" role="dialog"> |  | ||||||
|             <button data-modal-close class="pf-c-button pf-m-plain" type="button" aria-label="Close dialog"> |  | ||||||
|                 <i class="fas fa-times" aria-hidden="true"></i> |  | ||||||
|             </button> |  | ||||||
|             <div class="pf-c-modal-box__header"> |  | ||||||
|                 <h1 class="pf-c-title pf-m-2xl" id="modal-title">{% trans 'Clear Flow Cache' %}?</h1> |  | ||||||
|             </div> |  | ||||||
|             <div class="pf-c-modal-box__body" id="modal-description"> |  | ||||||
|                 <form method="post" id="clear_flows"> |  | ||||||
|                     {% csrf_token %} |  | ||||||
|                     <input type="hidden" name="clear_flows"> |  | ||||||
|                     <p> |  | ||||||
|                         {% blocktrans %} |  | ||||||
|                         Are you sure you want to clear the flow cache? This will cause all flows to be re-evaluated on their next usage. |  | ||||||
|                         {% endblocktrans %} |  | ||||||
|                     </p> |  | ||||||
|                 </form> |  | ||||||
|             </div> |  | ||||||
|             <footer class="pf-c-modal-box__footer pf-m-align-left"> |  | ||||||
|                 <button form="clear_flows" class="pf-c-button pf-m-primary" type="submit">{% trans 'Clear' %}</button> |  | ||||||
|                 <button data-modal-close class="pf-c-button pf-m-link" type="button">{% trans 'Cancel' %}</button> |  | ||||||
|             </footer> |  | ||||||
|         </div> |  | ||||||
|     </div> |  | ||||||
| </div> |  | ||||||
| 
 |  | ||||||
| <script src="{% static 'node_modules/chart.js/dist/Chart.bundle.min.js' %}"></script> |  | ||||||
| <script> |  | ||||||
| var ctx = document.getElementById('logins-last-metrics').getContext('2d'); |  | ||||||
| fetch("{% url 'passbook_api:admin_metrics-list' %}").then(r => r.json()).then(r => { |  | ||||||
|     var myChart = new Chart(ctx, { |  | ||||||
|         type: 'bar', |  | ||||||
|         data: { |  | ||||||
|             datasets: [ |  | ||||||
|                 { |  | ||||||
|                     label: 'Failed Logins', |  | ||||||
|                     backgroundColor: "rgba(201, 25, 11, .5)", |  | ||||||
|                     spanGaps: true, |  | ||||||
|                     data: r.logins_failed_per_1h, |  | ||||||
|                 }, |  | ||||||
|                 { |  | ||||||
|                     label: 'Successful Logins', |  | ||||||
|                     backgroundColor: "rgba(189, 229, 184, .5)", |  | ||||||
|                     spanGaps: true, |  | ||||||
|                     data: r.logins_per_1h, |  | ||||||
|                 }, |  | ||||||
|             ] |  | ||||||
|         }, |  | ||||||
|         options: { |  | ||||||
|             maintainAspectRatio: false, |  | ||||||
|             spanGaps: true, |  | ||||||
|             scales: { |  | ||||||
|                 xAxes: [{ |  | ||||||
|                     stacked: true, |  | ||||||
|                     gridLines: { |  | ||||||
|                         color: "rgba(0, 0, 0, 0)", |  | ||||||
|                     }, |  | ||||||
|                     type: 'time', |  | ||||||
|                     offset: true, |  | ||||||
|                     ticks: { |  | ||||||
|                         callback: function (value, index, values) { |  | ||||||
|                             const date = new Date(); |  | ||||||
|                             const delta = (date - values[index].value); |  | ||||||
|                             const ago = Math.round(delta / 1000 / 3600); |  | ||||||
|                             return `${ago} Hours ago`; |  | ||||||
|                         }, |  | ||||||
|                         autoSkip: true, |  | ||||||
|                         maxTicksLimit: 8 |  | ||||||
|                     } |  | ||||||
|                 }], |  | ||||||
|                 yAxes: [{ |  | ||||||
|                     stacked: true, |  | ||||||
|                     gridLines: { |  | ||||||
|                         color: "rgba(0, 0, 0, 0)", |  | ||||||
|                     } |  | ||||||
|                 }] |  | ||||||
|             } |  | ||||||
|         } |  | ||||||
|     }); |  | ||||||
| }); |  | ||||||
| </script> |  | ||||||
| 
 |  | ||||||
| {% endblock %} | {% endblock %} | ||||||
| @ -1,7 +1,7 @@ | |||||||
| {% extends "administration/base.html" %} | {% extends "administration/base.html" %} | ||||||
| 
 | 
 | ||||||
| {% load i18n %} | {% load i18n %} | ||||||
| {% load passbook_utils %} | {% load authentik_utils %} | ||||||
| 
 | 
 | ||||||
| {% block content %} | {% block content %} | ||||||
| <section class="pf-c-page__main-section pf-m-light"> | <section class="pf-c-page__main-section pf-m-light"> | ||||||
| @ -20,7 +20,7 @@ | |||||||
|             <div class="pf-c-toolbar__content"> |             <div class="pf-c-toolbar__content"> | ||||||
|                 {% include 'partials/toolbar_search.html' %} |                 {% include 'partials/toolbar_search.html' %} | ||||||
|                 <div class="pf-c-toolbar__bulk-select"> |                 <div class="pf-c-toolbar__bulk-select"> | ||||||
|                     <div class="pf-c-dropdown"> |                     <ak-dropdown class="pf-c-dropdown"> | ||||||
|                         <button class="pf-m-primary pf-c-dropdown__toggle" type="button"> |                         <button class="pf-m-primary pf-c-dropdown__toggle" type="button"> | ||||||
|                             <span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span> |                             <span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span> | ||||||
|                             <i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i> |                             <i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i> | ||||||
| @ -28,16 +28,19 @@ | |||||||
|                         <ul class="pf-c-dropdown__menu" hidden> |                         <ul class="pf-c-dropdown__menu" hidden> | ||||||
|                             {% for type, name in types.items %} |                             {% for type, name in types.items %} | ||||||
|                             <li> |                             <li> | ||||||
|                                 <a class="pf-c-dropdown__menu-item" href="{% url 'passbook_admin:policy-create' %}?type={{ type }}&back={{ request.get_full_path }}"> |                                 <ak-modal-button href="{% url 'authentik_admin:policy-create' %}?type={{ type }}"> | ||||||
|                                     {{ name|verbose_name }}<br> |                                     <button slot="trigger" class="pf-c-dropdown__menu-item"> | ||||||
|                                     <small> |                                         {{ name|verbose_name }}<br> | ||||||
|                                         {{ name|doc }} |                                         <small> | ||||||
|                                     </small> |                                             {{ name|doc }} | ||||||
|                                 </a> |                                         </small> | ||||||
|  |                                     </button> | ||||||
|  |                                     <div slot="modal"></div> | ||||||
|  |                                 </ak-modal-button> | ||||||
|                             </li> |                             </li> | ||||||
|                             {% endfor %} |                             {% endfor %} | ||||||
|                         </ul> |                         </ul> | ||||||
|                     </div> |                     </ak-dropdown> | ||||||
|                 </div> |                 </div> | ||||||
|                 {% include 'partials/pagination.html' %} |                 {% include 'partials/pagination.html' %} | ||||||
|             </div> |             </div> | ||||||
| @ -71,9 +74,24 @@ | |||||||
|                         </span> |                         </span> | ||||||
|                     </td> |                     </td> | ||||||
|                     <td> |                     <td> | ||||||
|                         <a class="pf-c-button pf-m-secondary" href="{% url 'passbook_admin:policy-update' pk=policy.pk %}?back={{ request.get_full_path }}">{% trans 'Edit' %}</a> |                         <ak-modal-button href="{% url 'authentik_admin:policy-update' pk=policy.pk %}"> | ||||||
|                         <a class="pf-c-button pf-m-tertiary" href="{% url 'passbook_admin:policy-test' pk=policy.pk %}?back={{ request.get_full_path }}">{% trans 'Test' %}</a> |                             <ak-spinner-button slot="trigger" class="pf-m-secondary"> | ||||||
|                         <a class="pf-c-button pf-m-danger" href="{% url 'passbook_admin:policy-delete' pk=policy.pk %}?back={{ request.get_full_path }}">{% trans 'Delete' %}</a> |                                 {% trans 'Edit' %} | ||||||
|  |                             </ak-spinner-button> | ||||||
|  |                             <div slot="modal"></div> | ||||||
|  |                         </ak-modal-button> | ||||||
|  |                         <ak-modal-button href="{% url 'authentik_admin:policy-test' pk=policy.pk %}"> | ||||||
|  |                             <ak-spinner-button slot="trigger" class="pf-m-tertiary"> | ||||||
|  |                                 {% trans 'Test' %} | ||||||
|  |                             </ak-spinner-button> | ||||||
|  |                             <div slot="modal"></div> | ||||||
|  |                         </ak-modal-button> | ||||||
|  |                         <ak-modal-button href="{% url 'authentik_admin:policy-delete' pk=policy.pk %}"> | ||||||
|  |                             <ak-spinner-button slot="trigger" class="pf-m-danger"> | ||||||
|  |                                 {% trans 'Delete' %} | ||||||
|  |                             </ak-spinner-button> | ||||||
|  |                             <div slot="modal"></div> | ||||||
|  |                         </ak-modal-button> | ||||||
|                     </td> |                     </td> | ||||||
|                 </tr> |                 </tr> | ||||||
|                 {% endfor %} |                 {% endfor %} | ||||||
| @ -101,7 +119,7 @@ | |||||||
|                     {% trans 'Currently no policies exist. Click the button below to create one.' %} |                     {% trans 'Currently no policies exist. Click the button below to create one.' %} | ||||||
|                 {% endif %} |                 {% endif %} | ||||||
|                 </div> |                 </div> | ||||||
|                 <div class="pf-c-dropdown"> |                 <ak-dropdown class="pf-c-dropdown"> | ||||||
|                     <button class="pf-m-primary pf-c-dropdown__toggle" type="button"> |                     <button class="pf-m-primary pf-c-dropdown__toggle" type="button"> | ||||||
|                         <span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span> |                         <span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span> | ||||||
|                         <i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i> |                         <i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i> | ||||||
| @ -109,17 +127,19 @@ | |||||||
|                     <ul class="pf-c-dropdown__menu" hidden> |                     <ul class="pf-c-dropdown__menu" hidden> | ||||||
|                         {% for type, name in types.items %} |                         {% for type, name in types.items %} | ||||||
|                         <li> |                         <li> | ||||||
|                             <a class="pf-c-dropdown__menu-item" |                             <ak-modal-button href="{% url 'authentik_admin:policy-create' %}?type={{ type }}"> | ||||||
|                                 href="{% url 'passbook_admin:policy-create' %}?type={{ type }}&back={{ request.get_full_path }}"> |                                 <button slot="trigger" class="pf-c-dropdown__menu-item"> | ||||||
|                                 {{ name|verbose_name }}<br> |                                     {{ name|verbose_name }}<br> | ||||||
|                                 <small> |                                     <small> | ||||||
|                                     {{ name|doc }} |                                         {{ name|doc }} | ||||||
|                                 </small> |                                     </small> | ||||||
|                             </a> |                                 </button> | ||||||
|  |                                 <div slot="modal"></div> | ||||||
|  |                             </ak-modal-button> | ||||||
|                         </li> |                         </li> | ||||||
|                         {% endfor %} |                         {% endfor %} | ||||||
|                     </ul> |                     </ul> | ||||||
|                 </div> |                 </ak-dropdown> | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|         {% endif %} |         {% endif %} | ||||||
							
								
								
									
										11
									
								
								authentik/admin/templates/administration/policy/test.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								authentik/admin/templates/administration/policy/test.html
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,11 @@ | |||||||
|  | {% extends 'generic/form.html' %} | ||||||
|  |  | ||||||
|  | {% load i18n %} | ||||||
|  |  | ||||||
|  | {% block above_form %} | ||||||
|  | <h1>{% blocktrans with policy=policy %}Test policy {{ policy }}{% endblocktrans %}</h1> | ||||||
|  | {% endblock %} | ||||||
|  |  | ||||||
|  | {% block action %} | ||||||
|  | {% trans 'Test' %} | ||||||
|  | {% endblock %} | ||||||
| @ -1,7 +1,7 @@ | |||||||
| {% extends "administration/base.html" %} | {% extends "administration/base.html" %} | ||||||
| 
 | 
 | ||||||
| {% load i18n %} | {% load i18n %} | ||||||
| {% load passbook_utils %} | {% load authentik_utils %} | ||||||
| 
 | 
 | ||||||
| {% block content %} | {% block content %} | ||||||
| <section class="pf-c-page__main-section pf-m-light"> | <section class="pf-c-page__main-section pf-m-light"> | ||||||
| @ -19,8 +19,15 @@ | |||||||
|         <div class="pf-c-toolbar"> |         <div class="pf-c-toolbar"> | ||||||
|             <div class="pf-c-toolbar__content"> |             <div class="pf-c-toolbar__content"> | ||||||
|                 <div class="pf-c-toolbar__bulk-select"> |                 <div class="pf-c-toolbar__bulk-select"> | ||||||
|                     <a href="{% url 'passbook_admin:policy-binding-create' %}?back={{ request.get_full_path }}" |                     <ak-modal-button href="{% url 'authentik_admin:policy-binding-create' %}"> | ||||||
|                         class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a> |                         <ak-spinner-button slot="trigger" class="pf-m-primary"> | ||||||
|  |                             {% trans 'Create' %} | ||||||
|  |                         </ak-spinner-button> | ||||||
|  |                         <div slot="modal"></div> | ||||||
|  |                     </ak-modal-button> | ||||||
|  |                     <button role="ak-refresh" class="pf-c-button pf-m-primary"> | ||||||
|  |                         {% trans 'Refresh' %} | ||||||
|  |                     </button> | ||||||
|                 </div> |                 </div> | ||||||
|                 {% include 'partials/pagination.html' %} |                 {% include 'partials/pagination.html' %} | ||||||
|             </div> |             </div> | ||||||
| @ -66,9 +73,19 @@ | |||||||
|                         <th role="cell"> |                         <th role="cell"> | ||||||
|                             <div>{{ binding.timeout }}</div> |                             <div>{{ binding.timeout }}</div> | ||||||
|                         </th> |                         </th> | ||||||
|                         <td class="pb-table-action" role="cell"> |                         <td> | ||||||
|                             <a class="pf-c-button pf-m-secondary" href="{% url 'passbook_admin:policy-binding-update' pk=binding.pk %}?back={{ request.get_full_path }}">{% trans 'Edit' %}</a> |                             <ak-modal-button href="{% url 'authentik_admin:policy-binding-update' pk=binding.pk %}"> | ||||||
|                             <a class="pf-c-button pf-m-danger" href="{% url 'passbook_admin:policy-binding-delete' pk=binding.pk %}?back={{ request.get_full_path }}">{% trans 'Delete' %}</a> |                                 <ak-spinner-button slot="trigger" class="pf-m-secondary"> | ||||||
|  |                                     {% trans 'Edit' %} | ||||||
|  |                                 </ak-spinner-button> | ||||||
|  |                                 <div slot="modal"></div> | ||||||
|  |                             </ak-modal-button> | ||||||
|  |                             <ak-modal-button href="{% url 'authentik_admin:policy-binding-delete' pk=binding.pk %}"> | ||||||
|  |                                 <ak-spinner-button slot="trigger" class="pf-m-danger"> | ||||||
|  |                                     {% trans 'Delete' %} | ||||||
|  |                                 </ak-spinner-button> | ||||||
|  |                                 <div slot="modal"></div> | ||||||
|  |                             </ak-modal-button> | ||||||
|                         </td> |                         </td> | ||||||
|                     </tr> |                     </tr> | ||||||
|                     {% endfor %} |                     {% endfor %} | ||||||
| @ -88,7 +105,12 @@ | |||||||
|                 <div class="pf-c-empty-state__body"> |                 <div class="pf-c-empty-state__body"> | ||||||
|                     {% trans 'Currently no policy bindings exist. Click the button below to create one.' %} |                     {% trans 'Currently no policy bindings exist. Click the button below to create one.' %} | ||||||
|                 </div> |                 </div> | ||||||
|                 <a href="{% url 'passbook_admin:policy-binding-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a> |                 <ak-modal-button href="{% url 'authentik_admin:policy-binding-create' %}"> | ||||||
|  |                     <ak-spinner-button slot="trigger" class="pf-m-primary"> | ||||||
|  |                         {% trans 'Create' %} | ||||||
|  |                     </ak-spinner-button> | ||||||
|  |                     <div slot="modal"></div> | ||||||
|  |                 </ak-modal-button> | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|         {% endif %} |         {% endif %} | ||||||
| @ -1,7 +1,7 @@ | |||||||
| {% extends "administration/base.html" %} | {% extends "administration/base.html" %} | ||||||
| 
 | 
 | ||||||
| {% load i18n %} | {% load i18n %} | ||||||
| {% load passbook_utils %} | {% load authentik_utils %} | ||||||
| 
 | 
 | ||||||
| {% block content %} | {% block content %} | ||||||
| <section class="pf-c-page__main-section pf-m-light"> | <section class="pf-c-page__main-section pf-m-light"> | ||||||
| @ -10,7 +10,7 @@ | |||||||
|             <i class="pf-icon pf-icon-blueprint"></i> |             <i class="pf-icon pf-icon-blueprint"></i> | ||||||
|             {% trans 'Property Mappings' %} |             {% trans 'Property Mappings' %} | ||||||
|         </h1> |         </h1> | ||||||
|         <p>{% trans "Control how passbook exposes and interprets information." %} |         <p>{% trans "Control how authentik exposes and interprets information." %} | ||||||
|         </p> |         </p> | ||||||
|     </div> |     </div> | ||||||
| </section> | </section> | ||||||
| @ -21,7 +21,7 @@ | |||||||
|             <div class="pf-c-toolbar__content"> |             <div class="pf-c-toolbar__content"> | ||||||
|                 {% include 'partials/toolbar_search.html' %} |                 {% include 'partials/toolbar_search.html' %} | ||||||
|                 <div class="pf-c-toolbar__bulk-select"> |                 <div class="pf-c-toolbar__bulk-select"> | ||||||
|                     <div class="pf-c-dropdown"> |                     <ak-dropdown class="pf-c-dropdown"> | ||||||
|                         <button class="pf-m-primary pf-c-dropdown__toggle" type="button"> |                         <button class="pf-m-primary pf-c-dropdown__toggle" type="button"> | ||||||
|                             <span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span> |                             <span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span> | ||||||
|                             <i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i> |                             <i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i> | ||||||
| @ -29,17 +29,22 @@ | |||||||
|                         <ul class="pf-c-dropdown__menu" hidden> |                         <ul class="pf-c-dropdown__menu" hidden> | ||||||
|                             {% for type, name in types.items %} |                             {% for type, name in types.items %} | ||||||
|                             <li> |                             <li> | ||||||
|                                 <a class="pf-c-dropdown__menu-item" |                                 <ak-modal-button href="{% url 'authentik_admin:property-mapping-create' %}?type={{ type }}"> | ||||||
|                                     href="{% url 'passbook_admin:property-mapping-create' %}?type={{ type }}&back={{ request.get_full_path }}"> |                                     <button slot="trigger" class="pf-c-dropdown__menu-item"> | ||||||
|                                     {{ name|verbose_name }}<br> |                                         {{ name|verbose_name }}<br> | ||||||
|                                     <small> |                                         <small> | ||||||
|                                         {{ name|doc }} |                                             {{ name|doc }} | ||||||
|                                     </small> |                                         </small> | ||||||
|                                 </a> |                                     </button> | ||||||
|  |                                     <div slot="modal"></div> | ||||||
|  |                                 </ak-modal-button> | ||||||
|                             </li> |                             </li> | ||||||
|                             {% endfor %} |                             {% endfor %} | ||||||
|                         </ul> |                         </ul> | ||||||
|                     </div> |                     </ak-dropdown> | ||||||
|  |                     <button role="ak-refresh" class="pf-c-button pf-m-primary"> | ||||||
|  |                         {% trans 'Refresh' %} | ||||||
|  |                     </button> | ||||||
|                 </div> |                 </div> | ||||||
|                 {% include 'partials/pagination.html' %} |                 {% include 'partials/pagination.html' %} | ||||||
|             </div> |             </div> | ||||||
| @ -66,8 +71,18 @@ | |||||||
|                         </span> |                         </span> | ||||||
|                     </td> |                     </td> | ||||||
|                     <td> |                     <td> | ||||||
|                         <a class="pf-c-button pf-m-secondary" href="{% url 'passbook_admin:property-mapping-update' pk=property_mapping.pk %}?back={{ request.get_full_path }}">{% trans 'Edit' %}</a> |                         <ak-modal-button href="{% url 'authentik_admin:property-mapping-update' pk=property_mapping.pk %}"> | ||||||
|                         <a class="pf-c-button pf-m-danger" href="{% url 'passbook_admin:property-mapping-delete' pk=property_mapping.pk %}?back={{ request.get_full_path }}">{% trans 'Delete' %}</a> |                             <ak-spinner-button slot="trigger" class="pf-m-secondary"> | ||||||
|  |                                 {% trans 'Edit' %} | ||||||
|  |                             </ak-spinner-button> | ||||||
|  |                             <div slot="modal"></div> | ||||||
|  |                         </ak-modal-button> | ||||||
|  |                         <ak-modal-button href="{% url 'authentik_admin:property-mapping-delete' pk=property_mapping.pk %}"> | ||||||
|  |                             <ak-spinner-button slot="trigger" class="pf-m-danger"> | ||||||
|  |                                 {% trans 'Delete' %} | ||||||
|  |                             </ak-spinner-button> | ||||||
|  |                             <div slot="modal"></div> | ||||||
|  |                         </ak-modal-button> | ||||||
|                     </td> |                     </td> | ||||||
|                 </tr> |                 </tr> | ||||||
|                 {% endfor %} |                 {% endfor %} | ||||||
| @ -95,7 +110,7 @@ | |||||||
|                     {% trans 'Currently no property mappings exist. Click the button below to create one.' %} |                     {% trans 'Currently no property mappings exist. Click the button below to create one.' %} | ||||||
|                 {% endif %} |                 {% endif %} | ||||||
|                 </div> |                 </div> | ||||||
|                 <div class="pf-c-dropdown"> |                 <ak-dropdown class="pf-c-dropdown"> | ||||||
|                     <button class="pf-m-primary pf-c-dropdown__toggle" type="button"> |                     <button class="pf-m-primary pf-c-dropdown__toggle" type="button"> | ||||||
|                         <span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span> |                         <span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span> | ||||||
|                         <i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i> |                         <i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i> | ||||||
| @ -103,17 +118,19 @@ | |||||||
|                     <ul class="pf-c-dropdown__menu" hidden> |                     <ul class="pf-c-dropdown__menu" hidden> | ||||||
|                         {% for type, name in types.items %} |                         {% for type, name in types.items %} | ||||||
|                         <li> |                         <li> | ||||||
|                             <a class="pf-c-dropdown__menu-item" |                             <ak-modal-button href="{% url 'authentik_admin:property-mapping-create' %}?type={{ type }}"> | ||||||
|                                 href="{% url 'passbook_admin:property-mapping-create' %}?type={{ type }}&back={{ request.get_full_path }}"> |                                 <button slot="trigger" class="pf-c-dropdown__menu-item"> | ||||||
|                                 {{ name|verbose_name }}<br> |                                     {{ name|verbose_name }}<br> | ||||||
|                                 <small> |                                     <small> | ||||||
|                                     {{ name|doc }} |                                         {{ name|doc }} | ||||||
|                                 </small> |                                     </small> | ||||||
|                             </a> |                                 </button> | ||||||
|  |                                 <div slot="modal"></div> | ||||||
|  |                             </ak-modal-button> | ||||||
|                         </li> |                         </li> | ||||||
|                         {% endfor %} |                         {% endfor %} | ||||||
|                     </ul> |                     </ul> | ||||||
|                 </div> |                 </ak-dropdown> | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|         {% endif %} |         {% endif %} | ||||||
| @ -1,7 +1,7 @@ | |||||||
| {% extends "administration/base.html" %} | {% extends "administration/base.html" %} | ||||||
| 
 | 
 | ||||||
| {% load i18n %} | {% load i18n %} | ||||||
| {% load passbook_utils %} | {% load authentik_utils %} | ||||||
| {% load admin_reflection %} | {% load admin_reflection %} | ||||||
| 
 | 
 | ||||||
| {% block content %} | {% block content %} | ||||||
| @ -22,7 +22,7 @@ | |||||||
|             <div class="pf-c-toolbar__content"> |             <div class="pf-c-toolbar__content"> | ||||||
|                 {% include 'partials/toolbar_search.html' %} |                 {% include 'partials/toolbar_search.html' %} | ||||||
|                 <div class="pf-c-toolbar__bulk-select"> |                 <div class="pf-c-toolbar__bulk-select"> | ||||||
|                     <div class="pf-c-dropdown"> |                     <ak-dropdown class="pf-c-dropdown"> | ||||||
|                         <button class="pf-m-primary pf-c-dropdown__toggle" type="button"> |                         <button class="pf-m-primary pf-c-dropdown__toggle" type="button"> | ||||||
|                             <span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span> |                             <span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span> | ||||||
|                             <i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i> |                             <i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i> | ||||||
| @ -30,16 +30,22 @@ | |||||||
|                         <ul class="pf-c-dropdown__menu" hidden> |                         <ul class="pf-c-dropdown__menu" hidden> | ||||||
|                             {% for type, name in types.items %} |                             {% for type, name in types.items %} | ||||||
|                             <li> |                             <li> | ||||||
|                                 <a class="pf-c-dropdown__menu-item" href="{% url 'passbook_admin:provider-create' %}?type={{ type }}&back={{ request.get_full_path }}"> |                                 <ak-modal-button href="{% url 'authentik_admin:provider-create' %}?type={{ type }}"> | ||||||
|                                     {{ name|verbose_name }}<br> |                                     <button slot="trigger" class="pf-c-dropdown__menu-item"> | ||||||
|                                     <small> |                                         {{ name|verbose_name }}<br> | ||||||
|                                         {{ name|doc }} |                                         <small> | ||||||
|                                     </small> |                                             {{ name|doc }} | ||||||
|                                 </a> |                                         </small> | ||||||
|  |                                     </button> | ||||||
|  |                                     <div slot="modal"></div> | ||||||
|  |                                 </ak-modal-button> | ||||||
|                             </li> |                             </li> | ||||||
|                             {% endfor %} |                             {% endfor %} | ||||||
|                         </ul> |                         </ul> | ||||||
|                     </div> |                     </ak-dropdown> | ||||||
|  |                     <button role="ak-refresh" class="pf-c-button pf-m-primary"> | ||||||
|  |                         {% trans 'Refresh' %} | ||||||
|  |                     </button> | ||||||
|                 </div> |                 </div> | ||||||
|                 {% include 'partials/pagination.html' %} |                 {% include 'partials/pagination.html' %} | ||||||
|             </div> |             </div> | ||||||
| @ -77,11 +83,21 @@ | |||||||
|                         </span> |                         </span> | ||||||
|                     </td> |                     </td> | ||||||
|                     <td> |                     <td> | ||||||
|                         <a class="pf-c-button pf-m-secondary" href="{% url 'passbook_admin:provider-update' pk=provider.pk %}?back={{ request.get_full_path }}">{% trans 'Edit' %}</a> |                         <ak-modal-button href="{% url 'authentik_admin:provider-update' pk=provider.pk %}"> | ||||||
|                         <a class="pf-c-button pf-m-danger" href="{% url 'passbook_admin:provider-delete' pk=provider.pk %}?back={{ request.get_full_path }}">{% trans 'Delete' %}</a> |                             <ak-spinner-button slot="trigger" class="pf-m-secondary"> | ||||||
|  |                                 {% trans 'Edit' %} | ||||||
|  |                             </ak-spinner-button> | ||||||
|  |                             <div slot="modal"></div> | ||||||
|  |                         </ak-modal-button> | ||||||
|  |                         <ak-modal-button href="{% url 'authentik_admin:provider-delete' pk=provider.pk %}"> | ||||||
|  |                             <ak-spinner-button slot="trigger" class="pf-m-danger"> | ||||||
|  |                                 {% trans 'Delete' %} | ||||||
|  |                             </ak-spinner-button> | ||||||
|  |                             <div slot="modal"></div> | ||||||
|  |                         </ak-modal-button> | ||||||
|                         {% get_links provider as links %} |                         {% get_links provider as links %} | ||||||
|                         {% for name, href in links.items %} |                         {% for name, href in links.items %} | ||||||
|                             <a class="pf-c-button pf-m-tertiary" href="{{ href }}?back={{ request.get_full_path }}">{% trans name %}</a> |                             <a class="pf-c-button pf-m-tertiary ak-root-link" href="{{ href }}?back={{ request.get_full_path }}">{% trans name %}</a> | ||||||
|                         {% endfor %} |                         {% endfor %} | ||||||
|                         {% get_htmls provider as htmls %} |                         {% get_htmls provider as htmls %} | ||||||
|                         {% for html in htmls %} |                         {% for html in htmls %} | ||||||
| @ -114,7 +130,7 @@ | |||||||
|                     {% trans 'Currently no providers exist. Click the button below to create one.' %} |                     {% trans 'Currently no providers exist. Click the button below to create one.' %} | ||||||
|                 {% endif %} |                 {% endif %} | ||||||
|                 </div> |                 </div> | ||||||
|                 <div class="pf-c-dropdown"> |                 <ak-dropdown class="pf-c-dropdown"> | ||||||
|                     <button class="pf-m-primary pf-c-dropdown__toggle" type="button"> |                     <button class="pf-m-primary pf-c-dropdown__toggle" type="button"> | ||||||
|                         <span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span> |                         <span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span> | ||||||
|                         <i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i> |                         <i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i> | ||||||
| @ -122,16 +138,19 @@ | |||||||
|                     <ul class="pf-c-dropdown__menu" hidden> |                     <ul class="pf-c-dropdown__menu" hidden> | ||||||
|                         {% for type, name in types.items %} |                         {% for type, name in types.items %} | ||||||
|                         <li> |                         <li> | ||||||
|                             <a class="pf-c-dropdown__menu-item" href="{% url 'passbook_admin:provider-create' %}?type={{ type }}&back={{ request.get_full_path }}"> |                             <ak-modal-button href="{% url 'authentik_admin:provider-create' %}?type={{ type }}"> | ||||||
|                                 {{ name|verbose_name }}<br> |                                 <button slot="trigger" class="pf-c-dropdown__menu-item"> | ||||||
|                                 <small> |                                     {{ name|verbose_name }}<br> | ||||||
|                                     {{ name|doc }} |                                     <small> | ||||||
|                                 </small> |                                         {{ name|doc }} | ||||||
|                             </a> |                                     </small> | ||||||
|  |                                 </button> | ||||||
|  |                                 <div slot="modal"></div> | ||||||
|  |                             </ak-modal-button> | ||||||
|                         </li> |                         </li> | ||||||
|                         {% endfor %} |                         {% endfor %} | ||||||
|                     </ul> |                     </ul> | ||||||
|                 </div> |                 </ak-dropdown> | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|         {% endif %} |         {% endif %} | ||||||
| @ -1,7 +1,7 @@ | |||||||
| {% extends "administration/base.html" %} | {% extends "administration/base.html" %} | ||||||
| 
 | 
 | ||||||
| {% load i18n %} | {% load i18n %} | ||||||
| {% load passbook_utils %} | {% load authentik_utils %} | ||||||
| {% load admin_reflection %} | {% load admin_reflection %} | ||||||
| 
 | 
 | ||||||
| {% block content %} | {% block content %} | ||||||
| @ -11,7 +11,7 @@ | |||||||
|             <i class="pf-icon pf-icon-middleware"></i> |             <i class="pf-icon pf-icon-middleware"></i> | ||||||
|             {% trans 'Source' %} |             {% trans 'Source' %} | ||||||
|         </h1> |         </h1> | ||||||
|         <p>{% trans "External Sources which can be used to get Identities into passbook, for example Social Providers like Twiter and GitHub or Enterprise Providers like ADFS and LDAP." %} |         <p>{% trans "External Sources which can be used to get Identities into authentik, for example Social Providers like Twiter and GitHub or Enterprise Providers like ADFS and LDAP." %} | ||||||
|         </p> |         </p> | ||||||
|     </div> |     </div> | ||||||
| </section> | </section> | ||||||
| @ -22,7 +22,7 @@ | |||||||
|             <div class="pf-c-toolbar__content"> |             <div class="pf-c-toolbar__content"> | ||||||
|                 {% include 'partials/toolbar_search.html' %} |                 {% include 'partials/toolbar_search.html' %} | ||||||
|                 <div class="pf-c-toolbar__bulk-select"> |                 <div class="pf-c-toolbar__bulk-select"> | ||||||
|                     <div class="pf-c-dropdown"> |                     <ak-dropdown class="pf-c-dropdown"> | ||||||
|                         <button class="pf-m-primary pf-c-dropdown__toggle" type="button"> |                         <button class="pf-m-primary pf-c-dropdown__toggle" type="button"> | ||||||
|                             <span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span> |                             <span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span> | ||||||
|                             <i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i> |                             <i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i> | ||||||
| @ -30,16 +30,22 @@ | |||||||
|                         <ul class="pf-c-dropdown__menu" hidden> |                         <ul class="pf-c-dropdown__menu" hidden> | ||||||
|                             {% for type, name in types.items %} |                             {% for type, name in types.items %} | ||||||
|                             <li> |                             <li> | ||||||
|                                 <a class="pf-c-dropdown__menu-item" href="{% url 'passbook_admin:source-create' %}?type={{ type }}&back={{ request.get_full_path }}"> |                                 <ak-modal-button href="{% url 'authentik_admin:source-create' %}?type={{ type }}"> | ||||||
|                                     {{ name|verbose_name }}<br> |                                     <button slot="trigger" class="pf-c-dropdown__menu-item"> | ||||||
|                                     <small> |                                         {{ name|verbose_name }}<br> | ||||||
|                                         {{ name|doc }} |                                         <small> | ||||||
|                                     </small> |                                             {{ name|doc }} | ||||||
|                                 </a> |                                         </small> | ||||||
|  |                                     </button> | ||||||
|  |                                     <div slot="modal"></div> | ||||||
|  |                                 </ak-modal-button> | ||||||
|                             </li> |                             </li> | ||||||
|                             {% endfor %} |                             {% endfor %} | ||||||
|                         </ul> |                         </ul> | ||||||
|                     </div> |                     </ak-dropdown> | ||||||
|  |                     <button role="ak-refresh" class="pf-c-button pf-m-primary"> | ||||||
|  |                         {% trans 'Refresh' %} | ||||||
|  |                     </button> | ||||||
|                 </div> |                 </div> | ||||||
|                 {% include 'partials/pagination.html' %} |                 {% include 'partials/pagination.html' %} | ||||||
|             </div> |             </div> | ||||||
| @ -57,12 +63,12 @@ | |||||||
|                 {% for source in object_list %} |                 {% for source in object_list %} | ||||||
|                 <tr role="row"> |                 <tr role="row"> | ||||||
|                     <th role="columnheader"> |                     <th role="columnheader"> | ||||||
|                         <div> |                         <a href="/sources/{{ source.slug }}/"> | ||||||
|                             <div>{{ source.name }}</div> |                             <div>{{ source.name }}</div> | ||||||
|                             {% if not source.enabled %} |                             {% if not source.enabled %} | ||||||
|                             <small>{% trans 'Disabled' %}</small> |                             <small>{% trans 'Disabled' %}</small> | ||||||
|                             {% endif %} |                             {% endif %} | ||||||
|                         </div> |                         </a> | ||||||
|                     </th> |                     </th> | ||||||
|                     <td role="cell"> |                     <td role="cell"> | ||||||
|                         <span> |                         <span> | ||||||
| @ -75,11 +81,21 @@ | |||||||
|                         </span> |                         </span> | ||||||
|                     </td> |                     </td> | ||||||
|                     <td> |                     <td> | ||||||
|                         <a class="pf-c-button pf-m-secondary" href="{% url 'passbook_admin:source-update' pk=source.pk %}?back={{ request.get_full_path }}">{% trans 'Edit' %}</a> |                         <ak-modal-button href="{% url 'authentik_admin:source-update' pk=source.pk %}"> | ||||||
|                         <a class="pf-c-button pf-m-danger" href="{% url 'passbook_admin:source-delete' pk=source.pk %}?back={{ request.get_full_path }}">{% trans 'Delete' %}</a> |                             <ak-spinner-button slot="trigger" class="pf-m-secondary"> | ||||||
|  |                                 {% trans 'Edit' %} | ||||||
|  |                             </ak-spinner-button> | ||||||
|  |                             <div slot="modal"></div> | ||||||
|  |                         </ak-modal-button> | ||||||
|  |                         <ak-modal-button href="{% url 'authentik_admin:source-delete' pk=source.pk %}"> | ||||||
|  |                             <ak-spinner-button slot="trigger" class="pf-m-danger"> | ||||||
|  |                                 {% trans 'Delete' %} | ||||||
|  |                             </ak-spinner-button> | ||||||
|  |                             <div slot="modal"></div> | ||||||
|  |                         </ak-modal-button> | ||||||
|                         {% get_links source as links %} |                         {% get_links source as links %} | ||||||
|                         {% for name, href in links %} |                         {% for name, href in links %} | ||||||
|                             <a class="pf-c-button pf-m-tertiary" href="{{ href }}?back={{ request.get_full_path }}">{% trans name %}</a> |                             <a class="pf-c-button pf-m-tertiary ak-root-link" href="{{ href }}?back={{ request.get_full_path }}">{% trans name %}</a> | ||||||
|                         {% endfor %} |                         {% endfor %} | ||||||
|                     </td> |                     </td> | ||||||
|                 </tr> |                 </tr> | ||||||
| @ -108,7 +124,7 @@ | |||||||
|                     {% trans 'Currently no sources exist. Click the button below to create one.' %} |                     {% trans 'Currently no sources exist. Click the button below to create one.' %} | ||||||
|                 {% endif %} |                 {% endif %} | ||||||
|                 </div> |                 </div> | ||||||
|                 <div class="pf-c-dropdown"> |                 <ak-dropdown class="pf-c-dropdown"> | ||||||
|                     <button class="pf-m-primary pf-c-dropdown__toggle" type="button"> |                     <button class="pf-m-primary pf-c-dropdown__toggle" type="button"> | ||||||
|                         <span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span> |                         <span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span> | ||||||
|                         <i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i> |                         <i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i> | ||||||
| @ -116,16 +132,19 @@ | |||||||
|                     <ul class="pf-c-dropdown__menu" hidden> |                     <ul class="pf-c-dropdown__menu" hidden> | ||||||
|                         {% for type, name in types.items %} |                         {% for type, name in types.items %} | ||||||
|                         <li> |                         <li> | ||||||
|                             <a class="pf-c-dropdown__menu-item" href="{% url 'passbook_admin:source-create' %}?type={{ type }}&back={{ request.get_full_path }}"> |                             <ak-modal-button href="{% url 'authentik_admin:source-create' %}?type={{ type }}"> | ||||||
|                                 {{ name|verbose_name }}<br> |                                 <button slot="trigger" class="pf-c-dropdown__menu-item"> | ||||||
|                                 <small> |                                     {{ name|verbose_name }}<br> | ||||||
|                                     {{ name|doc }} |                                     <small> | ||||||
|                                 </small> |                                         {{ name|doc }} | ||||||
|                             </a> |                                     </small> | ||||||
|  |                                 </button> | ||||||
|  |                                 <div slot="modal"></div> | ||||||
|  |                             </ak-modal-button> | ||||||
|                         </li> |                         </li> | ||||||
|                         {% endfor %} |                         {% endfor %} | ||||||
|                     </ul> |                     </ul> | ||||||
|                 </div> |                 </ak-dropdown> | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|         {% endif %} |         {% endif %} | ||||||
| @ -1,7 +1,7 @@ | |||||||
| {% extends "administration/base.html" %} | {% extends "administration/base.html" %} | ||||||
| 
 | 
 | ||||||
| {% load i18n %} | {% load i18n %} | ||||||
| {% load passbook_utils %} | {% load authentik_utils %} | ||||||
| {% load admin_reflection %} | {% load admin_reflection %} | ||||||
| 
 | 
 | ||||||
| {% block content %} | {% block content %} | ||||||
| @ -21,7 +21,7 @@ | |||||||
|             <div class="pf-c-toolbar__content"> |             <div class="pf-c-toolbar__content"> | ||||||
|                 {% include 'partials/toolbar_search.html' %} |                 {% include 'partials/toolbar_search.html' %} | ||||||
|                 <div class="pf-c-toolbar__bulk-select"> |                 <div class="pf-c-toolbar__bulk-select"> | ||||||
|                     <div class="pf-c-dropdown"> |                     <ak-dropdown class="pf-c-dropdown"> | ||||||
|                         <button class="pf-m-primary pf-c-dropdown__toggle" type="button"> |                         <button class="pf-m-primary pf-c-dropdown__toggle" type="button"> | ||||||
|                             <span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span> |                             <span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span> | ||||||
|                             <i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i> |                             <i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i> | ||||||
| @ -29,16 +29,22 @@ | |||||||
|                         <ul class="pf-c-dropdown__menu" hidden> |                         <ul class="pf-c-dropdown__menu" hidden> | ||||||
|                             {% for type, name in types.items %} |                             {% for type, name in types.items %} | ||||||
|                             <li> |                             <li> | ||||||
|                                 <a class="pf-c-dropdown__menu-item" href="{% url 'passbook_admin:stage-create' %}?type={{ type }}&back={{ request.get_full_path }}"> |                                 <ak-modal-button href="{% url 'authentik_admin:stage-create' %}?type={{ type }}"> | ||||||
|                                     {{ name|verbose_name }}<br> |                                     <button slot="trigger" class="pf-c-dropdown__menu-item"> | ||||||
|                                     <small> |                                         {{ name|verbose_name }}<br> | ||||||
|                                         {{ name|doc }} |                                         <small> | ||||||
|                                     </small> |                                             {{ name|doc }} | ||||||
|                                 </a> |                                         </small> | ||||||
|  |                                     </button> | ||||||
|  |                                     <div slot="modal"></div> | ||||||
|  |                                 </ak-modal-button> | ||||||
|                             </li> |                             </li> | ||||||
|                             {% endfor %} |                             {% endfor %} | ||||||
|                         </ul> |                         </ul> | ||||||
|                     </div> |                     </ak-dropdown> | ||||||
|  |                     <button role="ak-refresh" class="pf-c-button pf-m-primary"> | ||||||
|  |                         {% trans 'Refresh' %} | ||||||
|  |                     </button> | ||||||
|                 </div> |                 </div> | ||||||
|                 {% include 'partials/pagination.html' %} |                 {% include 'partials/pagination.html' %} | ||||||
|             </div> |             </div> | ||||||
| @ -63,18 +69,28 @@ | |||||||
|                     <td role="cell"> |                     <td role="cell"> | ||||||
|                         <ul> |                         <ul> | ||||||
|                             {% for flow in stage.flow_set.all %} |                             {% for flow in stage.flow_set.all %} | ||||||
|                             <li><a href="{% url 'passbook_admin:flow-update' pk=flow.pk %}">{{ flow.slug }}</a></li> |                             <li>{{ flow.slug }}<</li> | ||||||
|                             {% empty %} |                             {% empty %} | ||||||
|                             <li>-</li> |                             <li>-</li> | ||||||
|                             {% endfor %} |                             {% endfor %} | ||||||
|                         </ul> |                         </ul> | ||||||
|                     </td> |                     </td> | ||||||
|                     <td> |                     <td> | ||||||
|                         <a class="pf-c-button pf-m-secondary" href="{% url 'passbook_admin:stage-update' pk=stage.stage_uuid %}?back={{ request.get_full_path }}">{% trans 'Edit' %}</a> |                         <ak-modal-button href="{% url 'authentik_admin:stage-update' pk=stage.stage_uuid %}"> | ||||||
|                         <a class="pf-c-button pf-m-danger" href="{% url 'passbook_admin:stage-delete' pk=stage.stage_uuid %}?back={{ request.get_full_path }}">{% trans 'Delete' %}</a> |                             <ak-spinner-button slot="trigger" class="pf-m-secondary"> | ||||||
|  |                                 {% trans 'Edit' %} | ||||||
|  |                             </ak-spinner-button> | ||||||
|  |                             <div slot="modal"></div> | ||||||
|  |                         </ak-modal-button> | ||||||
|  |                         <ak-modal-button href="{% url 'authentik_admin:stage-delete' pk=stage.stage_uuid %}"> | ||||||
|  |                             <ak-spinner-button slot="trigger" class="pf-m-danger"> | ||||||
|  |                                 {% trans 'Delete' %} | ||||||
|  |                             </ak-spinner-button> | ||||||
|  |                             <div slot="modal"></div> | ||||||
|  |                         </ak-modal-button> | ||||||
|                         {% get_links stage as links %} |                         {% get_links stage as links %} | ||||||
|                         {% for name, href in links.items %} |                         {% for name, href in links.items %} | ||||||
|                         <a class="pf-c-button pf-m-tertiary" href="{{ href }}?back={{ request.get_full_path }}">{% trans name %}</a> |                         <a class="pf-c-button pf-m-tertiary ak-root-link" href="{{ href }}?back={{ request.get_full_path }}">{% trans name %}</a> | ||||||
|                         {% endfor %} |                         {% endfor %} | ||||||
|                     </td> |                     </td> | ||||||
|                 </tr> |                 </tr> | ||||||
| @ -103,7 +119,7 @@ | |||||||
|                     {% trans 'Currently no stages exist. Click the button below to create one.' %} |                     {% trans 'Currently no stages exist. Click the button below to create one.' %} | ||||||
|                 {% endif %} |                 {% endif %} | ||||||
|                 </div> |                 </div> | ||||||
|                 <div class="pf-c-dropdown"> |                 <ak-dropdown class="pf-c-dropdown"> | ||||||
|                     <button class="pf-m-primary pf-c-dropdown__toggle" type="button"> |                     <button class="pf-m-primary pf-c-dropdown__toggle" type="button"> | ||||||
|                         <span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span> |                         <span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span> | ||||||
|                         <i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i> |                         <i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i> | ||||||
| @ -111,17 +127,19 @@ | |||||||
|                     <ul class="pf-c-dropdown__menu" hidden> |                     <ul class="pf-c-dropdown__menu" hidden> | ||||||
|                         {% for type, name in types.items %} |                         {% for type, name in types.items %} | ||||||
|                         <li> |                         <li> | ||||||
|                             <a class="pf-c-dropdown__menu-item" |                             <ak-modal-button href="{% url 'authentik_admin:stage-create' %}?type={{ type }}"> | ||||||
|                                 href="{% url 'passbook_admin:stage-create' %}?type={{ type }}&back={{ request.get_full_path }}"> |                                 <button slot="trigger" class="pf-c-dropdown__menu-item"> | ||||||
|                                 {{ name|verbose_name }}<br> |                                     {{ name|verbose_name }}<br> | ||||||
|                                 <small> |                                     <small> | ||||||
|                                     {{ name|doc }} |                                         {{ name|doc }} | ||||||
|                                 </small> |                                     </small> | ||||||
|                             </a> |                                 </button> | ||||||
|  |                                 <div slot="modal"></div> | ||||||
|  |                             </ak-modal-button> | ||||||
|                         </li> |                         </li> | ||||||
|                         {% endfor %} |                         {% endfor %} | ||||||
|                     </ul> |                     </ul> | ||||||
|                 </div> |                 </ak-dropdown> | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|         {% endif %} |         {% endif %} | ||||||
| @ -1,7 +1,7 @@ | |||||||
| {% extends "administration/base.html" %} | {% extends "administration/base.html" %} | ||||||
| 
 | 
 | ||||||
| {% load i18n %} | {% load i18n %} | ||||||
| {% load passbook_utils %} | {% load authentik_utils %} | ||||||
| 
 | 
 | ||||||
| {% block content %} | {% block content %} | ||||||
| <section class="pf-c-page__main-section pf-m-light"> | <section class="pf-c-page__main-section pf-m-light"> | ||||||
| @ -19,8 +19,15 @@ | |||||||
|         <div class="pf-c-toolbar"> |         <div class="pf-c-toolbar"> | ||||||
|             <div class="pf-c-toolbar__content"> |             <div class="pf-c-toolbar__content"> | ||||||
|                 <div class="pf-c-toolbar__bulk-select"> |                 <div class="pf-c-toolbar__bulk-select"> | ||||||
|                     <a href="{% url 'passbook_admin:stage-binding-create' %}?back={{ request.get_full_path }}" |                     <ak-modal-button href="{% url 'authentik_admin:stage-binding-create' %}"> | ||||||
|                         class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a> |                         <ak-spinner-button slot="trigger" class="pf-m-primary"> | ||||||
|  |                             {% trans 'Create' %} | ||||||
|  |                         </ak-spinner-button> | ||||||
|  |                         <div slot="modal"></div> | ||||||
|  |                     </ak-modal-button> | ||||||
|  |                     <button role="ak-refresh" class="pf-c-button pf-m-primary"> | ||||||
|  |                         {% trans 'Refresh' %} | ||||||
|  |                     </button> | ||||||
|                 </div> |                 </div> | ||||||
|                 {% include 'partials/pagination.html' %} |                 {% include 'partials/pagination.html' %} | ||||||
|             </div> |             </div> | ||||||
| @ -73,8 +80,18 @@ | |||||||
|                             </div> |                             </div> | ||||||
|                         </td> |                         </td> | ||||||
|                         <td> |                         <td> | ||||||
|                             <a class="pf-c-button pf-m-secondary" href="{% url 'passbook_admin:stage-binding-update' pk=binding.pk %}?back={{ request.get_full_path }}">{% trans 'Edit' %}</a> |                             <ak-modal-button href="{% url 'authentik_admin:stage-binding-update' pk=binding.pk %}"> | ||||||
|                             <a class="pf-c-button pf-m-danger" href="{% url 'passbook_admin:stage-binding-delete' pk=binding.pk %}?back={{ request.get_full_path }}">{% trans 'Delete' %}</a> |                                 <ak-spinner-button slot="trigger" class="pf-m-secondary"> | ||||||
|  |                                     {% trans 'Update' %} | ||||||
|  |                                 </ak-spinner-button> | ||||||
|  |                                 <div slot="modal"></div> | ||||||
|  |                             </ak-modal-button> | ||||||
|  |                             <ak-modal-button href="{% url 'authentik_admin:stage-binding-delete' pk=binding.pk %}"> | ||||||
|  |                                 <ak-spinner-button slot="trigger" class="pf-m-danger"> | ||||||
|  |                                     {% trans 'Delete' %} | ||||||
|  |                                 </ak-spinner-button> | ||||||
|  |                                 <div slot="modal"></div> | ||||||
|  |                             </ak-modal-button> | ||||||
|                         </td> |                         </td> | ||||||
|                     </tr> |                     </tr> | ||||||
|                     {% endfor %} |                     {% endfor %} | ||||||
| @ -94,7 +111,12 @@ | |||||||
|                 <div class="pf-c-empty-state__body"> |                 <div class="pf-c-empty-state__body"> | ||||||
|                     {% trans 'Currently no flow-stage bindings exist. Click the button below to create one.' %} |                     {% trans 'Currently no flow-stage bindings exist. Click the button below to create one.' %} | ||||||
|                 </div> |                 </div> | ||||||
|                 <a href="{% url 'passbook_admin:certificatekeypair-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a> |                 <ak-modal-button href="{% url 'authentik_admin:stage-binding-create' %}"> | ||||||
|  |                     <ak-spinner-button slot="trigger" class="pf-m-primary"> | ||||||
|  |                         {% trans 'Create' %} | ||||||
|  |                     </ak-spinner-button> | ||||||
|  |                     <div slot="modal"></div> | ||||||
|  |                 </ak-modal-button> | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|         {% endif %} |         {% endif %} | ||||||
| @ -1,7 +1,7 @@ | |||||||
| {% extends "administration/base.html" %} | {% extends "administration/base.html" %} | ||||||
| 
 | 
 | ||||||
| {% load i18n %} | {% load i18n %} | ||||||
| {% load passbook_utils %} | {% load authentik_utils %} | ||||||
| 
 | 
 | ||||||
| {% block content %} | {% block content %} | ||||||
| <section class="pf-c-page__main-section pf-m-light"> | <section class="pf-c-page__main-section pf-m-light"> | ||||||
| @ -21,8 +21,15 @@ | |||||||
|             <div class="pf-c-toolbar__content"> |             <div class="pf-c-toolbar__content"> | ||||||
|                 {% include 'partials/toolbar_search.html' %} |                 {% include 'partials/toolbar_search.html' %} | ||||||
|                 <div class="pf-c-toolbar__bulk-select"> |                 <div class="pf-c-toolbar__bulk-select"> | ||||||
|                     <a href="{% url 'passbook_admin:stage-invitation-create' %}?back={{ request.get_full_path }}" |                     <ak-modal-button href="{% url 'authentik_admin:stage-invitation-create' %}"> | ||||||
|                         class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a> |                         <ak-spinner-button slot="trigger" class="pf-m-primary"> | ||||||
|  |                             {% trans 'Create' %} | ||||||
|  |                         </ak-spinner-button> | ||||||
|  |                         <div slot="modal"></div> | ||||||
|  |                     </ak-modal-button> | ||||||
|  |                     <button role="ak-refresh" class="pf-c-button pf-m-primary"> | ||||||
|  |                         {% trans 'Refresh' %} | ||||||
|  |                     </button> | ||||||
|                 </div> |                 </div> | ||||||
|                 {% include 'partials/pagination.html' %} |                 {% include 'partials/pagination.html' %} | ||||||
|             </div> |             </div> | ||||||
| @ -49,7 +56,12 @@ | |||||||
|                         </span> |                         </span> | ||||||
|                     </td> |                     </td> | ||||||
|                     <td> |                     <td> | ||||||
|                         <a class="pf-c-button pf-m-danger" href="{% url 'passbook_admin:stage-invitation-delete' pk=invitation.pk %}?back={{ request.get_full_path }}">{% trans 'Delete' %}</a> |                         <ak-modal-button href="{% url 'authentik_admin:stage-invitation-delete' pk=invitation.pk %}"> | ||||||
|  |                             <ak-spinner-button slot="trigger" class="pf-m-danger"> | ||||||
|  |                                 {% trans 'Delete' %} | ||||||
|  |                             </ak-spinner-button> | ||||||
|  |                             <div slot="modal"></div> | ||||||
|  |                         </ak-modal-button> | ||||||
|                     </td> |                     </td> | ||||||
|                 </tr> |                 </tr> | ||||||
|                 {% endfor %} |                 {% endfor %} | ||||||
| @ -77,7 +89,12 @@ | |||||||
|                     {% trans 'Currently no invitations exist. Click the button below to create one.' %} |                     {% trans 'Currently no invitations exist. Click the button below to create one.' %} | ||||||
|                 {% endif %} |                 {% endif %} | ||||||
|                 </div> |                 </div> | ||||||
|                 <a href="{% url 'passbook_admin:stage-invitation-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a> |                 <ak-modal-button href="{% url 'authentik_admin:stage-invitation-create' %}"> | ||||||
|  |                     <ak-spinner-button slot="trigger" class="pf-m-primary"> | ||||||
|  |                         {% trans 'Create' %} | ||||||
|  |                     </ak-spinner-button> | ||||||
|  |                     <div slot="modal"></div> | ||||||
|  |                 </ak-modal-button> | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|         {% endif %} |         {% endif %} | ||||||
| @ -1,7 +1,7 @@ | |||||||
| {% extends "administration/base.html" %} | {% extends "administration/base.html" %} | ||||||
| 
 | 
 | ||||||
| {% load i18n %} | {% load i18n %} | ||||||
| {% load passbook_utils %} | {% load authentik_utils %} | ||||||
| {% load admin_reflection %} | {% load admin_reflection %} | ||||||
| 
 | 
 | ||||||
| {% block content %} | {% block content %} | ||||||
| @ -21,7 +21,15 @@ | |||||||
|             <div class="pf-c-toolbar__content"> |             <div class="pf-c-toolbar__content"> | ||||||
|                 {% include 'partials/toolbar_search.html' %} |                 {% include 'partials/toolbar_search.html' %} | ||||||
|                 <div class="pf-c-toolbar__bulk-select"> |                 <div class="pf-c-toolbar__bulk-select"> | ||||||
|                     <a href="{% url 'passbook_admin:stage-prompt-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a> |                     <ak-modal-button href="{% url 'authentik_admin:stage-prompt-create' %}"> | ||||||
|  |                         <ak-spinner-button slot="trigger" class="pf-m-primary"> | ||||||
|  |                             {% trans 'Create' %} | ||||||
|  |                         </ak-spinner-button> | ||||||
|  |                         <div slot="modal"></div> | ||||||
|  |                     </ak-modal-button> | ||||||
|  |                     <button role="ak-refresh" class="pf-c-button pf-m-primary"> | ||||||
|  |                         {% trans 'Refresh' %} | ||||||
|  |                     </button> | ||||||
|                 </div> |                 </div> | ||||||
|                 {% include 'partials/pagination.html' %} |                 {% include 'partials/pagination.html' %} | ||||||
|             </div> |             </div> | ||||||
| @ -63,18 +71,28 @@ | |||||||
|                     <td role="cell"> |                     <td role="cell"> | ||||||
|                         <ul> |                         <ul> | ||||||
|                             {% for flow in prompt.flow_set.all %} |                             {% for flow in prompt.flow_set.all %} | ||||||
|                             <li><a href="{% url 'passbook_admin:flow-update' pk=flow.pk %}">{{ flow.slug }}</a></li> |                             <li>{{ flow.slug }}</li> | ||||||
|                             {% empty %} |                             {% empty %} | ||||||
|                             <li>-</li> |                             <li>-</li> | ||||||
|                             {% endfor %} |                             {% endfor %} | ||||||
|                         </ul> |                         </ul> | ||||||
|                     </td> |                     </td> | ||||||
|                     <td> |                     <td> | ||||||
|                         <a class="pf-c-button pf-m-secondary" href="{% url 'passbook_admin:stage-prompt-update' pk=prompt.pk %}?back={{ request.get_full_path }}">{% trans 'Edit' %}</a> |                         <ak-modal-button href="{% url 'authentik_admin:stage-prompt-update' pk=prompt.pk %}"> | ||||||
|                         <a class="pf-c-button pf-m-danger" href="{% url 'passbook_admin:stage-prompt-delete' pk=prompt.pk %}?back={{ request.get_full_path }}">{% trans 'Delete' %}</a> |                             <ak-spinner-button slot="trigger" class="pf-m-secondary"> | ||||||
|  |                                 {% trans 'Update' %} | ||||||
|  |                             </ak-spinner-button> | ||||||
|  |                             <div slot="modal"></div> | ||||||
|  |                         </ak-modal-button> | ||||||
|  |                         <ak-modal-button href="{% url 'authentik_admin:stage-prompt-delete' pk=prompt.pk %}"> | ||||||
|  |                             <ak-spinner-button slot="trigger" class="pf-m-danger"> | ||||||
|  |                                 {% trans 'Delete' %} | ||||||
|  |                             </ak-spinner-button> | ||||||
|  |                             <div slot="modal"></div> | ||||||
|  |                         </ak-modal-button> | ||||||
|                         {% get_links prompt as links %} |                         {% get_links prompt as links %} | ||||||
|                         {% for name, href in links.items %} |                         {% for name, href in links.items %} | ||||||
|                         <a class="pf-c-button pf-m-tertiary" href="{{ href }}?back={{ request.get_full_path }}">{% trans name %}</a> |                         <a class="pf-c-button pf-m-tertiary ak-root-link" href="{{ href }}?back={{ request.get_full_path }}">{% trans name %}</a> | ||||||
|                         {% endfor %} |                         {% endfor %} | ||||||
|                     </td> |                     </td> | ||||||
|                 </tr> |                 </tr> | ||||||
| @ -103,7 +121,7 @@ | |||||||
|                     {% trans 'Currently no stage prompts exist. Click the button below to create one.' %} |                     {% trans 'Currently no stage prompts exist. Click the button below to create one.' %} | ||||||
|                 {% endif %} |                 {% endif %} | ||||||
|                 </div> |                 </div> | ||||||
|                 <a href="{% url 'passbook_admin:stage-prompt-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a> |                 <a href="{% url 'authentik_admin:stage-prompt-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a> | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|         {% endif %} |         {% endif %} | ||||||
| @ -2,7 +2,7 @@ | |||||||
| 
 | 
 | ||||||
| {% load i18n %} | {% load i18n %} | ||||||
| {% load humanize %} | {% load humanize %} | ||||||
| {% load passbook_utils %} | {% load authentik_utils %} | ||||||
| 
 | 
 | ||||||
| {% block content %} | {% block content %} | ||||||
| <section class="pf-c-page__main-section pf-m-light"> | <section class="pf-c-page__main-section pf-m-light"> | ||||||
| @ -11,11 +11,18 @@ | |||||||
|             <i class="pf-icon pf-icon-automation"></i> |             <i class="pf-icon pf-icon-automation"></i> | ||||||
|             {% trans 'System Tasks' %} |             {% trans 'System Tasks' %} | ||||||
|         </h1> |         </h1> | ||||||
|         <p>{% trans "Long-running operations which passbook executes in the background." %}</p> |         <p>{% trans "Long-running operations which authentik executes in the background." %}</p> | ||||||
|     </div> |     </div> | ||||||
| </section> | </section> | ||||||
| <section class="pf-c-page__main-section pf-m-no-padding-mobile"> | <section class="pf-c-page__main-section pf-m-no-padding-mobile"> | ||||||
|     <div class="pf-c-card"> |     <div class="pf-c-card"> | ||||||
|  |         <div class="pf-c-toolbar"> | ||||||
|  |             <div class="pf-c-toolbar__content"> | ||||||
|  |                 <button role="ak-refresh" class="pf-c-button pf-m-primary"> | ||||||
|  |                     {% trans 'Refresh' %} | ||||||
|  |                 </button> | ||||||
|  |             </div> | ||||||
|  |         </div> | ||||||
|         <table class="pf-c-table pf-m-compact pf-m-grid-xl" role="grid"> |         <table class="pf-c-table pf-m-compact pf-m-grid-xl" role="grid"> | ||||||
|             <thead> |             <thead> | ||||||
|                 <tr role="row"> |                 <tr role="row"> | ||||||
| @ -64,9 +71,9 @@ | |||||||
|                         {% endfor %} |                         {% endfor %} | ||||||
|                     </td> |                     </td> | ||||||
|                     <td> |                     <td> | ||||||
|                         <button is="action-button" class="pf-c-button pf-m-primary" url="{% url 'passbook_api:admin_system_tasks-retry' pk=task.task_name %}"> |                         <ak-action-button url="{% url 'authentik_api:admin_system_tasks-retry' pk=task.task_name %}"> | ||||||
|                             {% trans 'Retry Task' %} |                             {% trans 'Retry Task' %} | ||||||
|                         </button> |                         </ak-action-button> | ||||||
|                     </td> |                     </td> | ||||||
|                 </tr> |                 </tr> | ||||||
|                 {% endfor %} |                 {% endfor %} | ||||||
| @ -1,16 +1,16 @@ | |||||||
| {% extends "administration/base.html" %} | {% extends "administration/base.html" %} | ||||||
| 
 | 
 | ||||||
| {% load i18n %} | {% load i18n %} | ||||||
| {% load passbook_utils %} | {% load authentik_utils %} | ||||||
| 
 | 
 | ||||||
| {% block content %} | {% block content %} | ||||||
| <section class="pf-c-page__main-section pf-m-light"> | <section class="pf-c-page__main-section pf-m-light"> | ||||||
|     <div class="pf-c-content"> |     <div class="pf-c-content"> | ||||||
|         <h1> |         <h1> | ||||||
|             <i class="fas fa-key"></i> |             <i class="pf-icon pf-icon-security"></i> | ||||||
|             {% trans 'Tokens' %} |             {% trans 'Tokens' %} | ||||||
|         </h1> |         </h1> | ||||||
|         <p>{% trans "Tokens are used throughout passbook for Email validation stages, Recovery keys and API access." %}</p> |         <p>{% trans "Tokens are used throughout authentik for Email validation stages, Recovery keys and API access." %}</p> | ||||||
|     </div> |     </div> | ||||||
| </section> | </section> | ||||||
| <section class="pf-c-page__main-section pf-m-no-padding-mobile"> | <section class="pf-c-page__main-section pf-m-no-padding-mobile"> | ||||||
| @ -58,7 +58,15 @@ | |||||||
|                         </span> |                         </span> | ||||||
|                     </td> |                     </td> | ||||||
|                     <td> |                     <td> | ||||||
|                         <a class="pf-c-button pf-m-danger" href="{% url 'passbook_admin:token-delete' pk=token.pk %}?back={{ request.get_full_path }}">{% trans 'Delete' %}</a> |                         <ak-modal-button href="{% url 'authentik_admin:token-delete' pk=token.pk %}"> | ||||||
|  |                             <ak-spinner-button slot="trigger" class="pf-m-danger"> | ||||||
|  |                                 {% trans 'Delete' %} | ||||||
|  |                             </ak-spinner-button> | ||||||
|  |                             <div slot="modal"></div> | ||||||
|  |                         </ak-modal-button> | ||||||
|  |                         <ak-token-copy-button identifier="{{ token.identifier }}"> | ||||||
|  |                             {% trans 'Copy token' %} | ||||||
|  |                         </ak-token-copy-button> | ||||||
|                     </td> |                     </td> | ||||||
|                 </tr> |                 </tr> | ||||||
|                 {% endfor %} |                 {% endfor %} | ||||||
| @ -1,7 +1,7 @@ | |||||||
| {% extends "administration/base.html" %} | {% extends "administration/base.html" %} | ||||||
| 
 | 
 | ||||||
| {% load i18n %} | {% load i18n %} | ||||||
| {% load passbook_utils %} | {% load authentik_utils %} | ||||||
| 
 | 
 | ||||||
| {% block content %} | {% block content %} | ||||||
| <section class="pf-c-page__main-section pf-m-light"> | <section class="pf-c-page__main-section pf-m-light"> | ||||||
| @ -1,7 +1,7 @@ | |||||||
| {% extends "administration/base.html" %} | {% extends "administration/base.html" %} | ||||||
| 
 | 
 | ||||||
| {% load i18n %} | {% load i18n %} | ||||||
| {% load passbook_utils %} | {% load authentik_utils %} | ||||||
| 
 | 
 | ||||||
| {% block content %} | {% block content %} | ||||||
| <section class="pf-c-page__main-section pf-m-light"> | <section class="pf-c-page__main-section pf-m-light"> | ||||||
| @ -19,7 +19,15 @@ | |||||||
|             <div class="pf-c-toolbar__content"> |             <div class="pf-c-toolbar__content"> | ||||||
|                 {% include 'partials/toolbar_search.html' %} |                 {% include 'partials/toolbar_search.html' %} | ||||||
|                 <div class="pf-c-toolbar__bulk-select"> |                 <div class="pf-c-toolbar__bulk-select"> | ||||||
|                     <a href="{% url 'passbook_admin:user-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a> |                     <ak-modal-button href="{% url 'authentik_admin:user-create' %}"> | ||||||
|  |                         <ak-spinner-button slot="trigger" class="pf-m-primary"> | ||||||
|  |                             {% trans 'Create' %} | ||||||
|  |                         </ak-spinner-button> | ||||||
|  |                         <div slot="modal"></div> | ||||||
|  |                     </ak-modal-button> | ||||||
|  |                     <button role="ak-refresh" class="pf-c-button pf-m-primary"> | ||||||
|  |                         {% trans 'Refresh' %} | ||||||
|  |                     </button> | ||||||
|                 </div> |                 </div> | ||||||
|                 {% include 'partials/pagination.html' %} |                 {% include 'partials/pagination.html' %} | ||||||
|             </div> |             </div> | ||||||
| @ -53,14 +61,29 @@ | |||||||
|                         </span> |                         </span> | ||||||
|                     </td> |                     </td> | ||||||
|                     <td> |                     <td> | ||||||
|                         <a class="pf-c-button pf-m-secondary" href="{% url 'passbook_admin:user-update' pk=user.pk %}?back={{ request.get_full_path }}">{% trans 'Edit' %}</a> |                         <ak-modal-button href="{% url 'authentik_admin:user-update' pk=user.pk %}"> | ||||||
|  |                             <ak-spinner-button slot="trigger" class="pf-m-secondary"> | ||||||
|  |                                 {% trans 'Edit' %} | ||||||
|  |                             </ak-spinner-button> | ||||||
|  |                             <div slot="modal"></div> | ||||||
|  |                         </ak-modal-button> | ||||||
|                         {% if user.is_active %} |                         {% if user.is_active %} | ||||||
|                         <a class="pf-c-button pf-m-warning" href="{% url 'passbook_admin:user-disable' pk=user.pk %}?back={{ request.get_full_path }}">{% trans 'Disable' %}</a> |                         <ak-modal-button href="{% url 'authentik_admin:user-disable' pk=user.pk %}"> | ||||||
|  |                             <ak-spinner-button slot="trigger" class="pf-m-warning"> | ||||||
|  |                                 {% trans 'Disable' %} | ||||||
|  |                             </ak-spinner-button> | ||||||
|  |                             <div slot="modal"></div> | ||||||
|  |                         </ak-modal-button> | ||||||
|                         {% else %} |                         {% else %} | ||||||
|                         <a class="pf-c-button pf-m-primary" href="{% url 'passbook_admin:user-enable' pk=user.pk %}?back={{ request.get_full_path }}">{% trans 'Enable' %}</a> |                         <ak-modal-button href="{% url 'authentik_admin:user-delete' pk=user.pk %}"> | ||||||
|  |                             <ak-spinner-button slot="trigger" class="pf-m-primary"> | ||||||
|  |                                 {% trans 'Enable' %} | ||||||
|  |                             </ak-spinner-button> | ||||||
|  |                             <div slot="modal"></div> | ||||||
|  |                         </ak-modal-button> | ||||||
|                         {% endif %} |                         {% endif %} | ||||||
|                         <a class="pf-c-button pf-m-tertiary" href="{% url 'passbook_admin:user-password-reset' pk=user.pk %}?back={{ request.get_full_path }}">{% trans 'Reset Password' %}</a> |                         <a class="pf-c-button pf-m-tertiary ak-root-link" href="{% url 'authentik_admin:user-password-reset' pk=user.pk %}?back={{ request.get_full_path }}">{% trans 'Reset Password' %}</a> | ||||||
|                         <a class="pf-c-button pf-m-tertiary" href="{% url 'passbook_core:impersonate-init' user_id=user.pk %}">{% trans 'Impersonate' %}</a> |                         <a class="pf-c-button pf-m-tertiary ak-root-link" href="{% url 'authentik_core:impersonate-init' user_id=user.pk %}">{% trans 'Impersonate' %}</a> | ||||||
|                     </td> |                     </td> | ||||||
|                 </tr> |                 </tr> | ||||||
|                 {% endfor %} |                 {% endfor %} | ||||||
| @ -88,7 +111,12 @@ | |||||||
|                     {% trans 'Currently no users exist. How did you even get here.' %} |                     {% trans 'Currently no users exist. How did you even get here.' %} | ||||||
|                 {% endif %} |                 {% endif %} | ||||||
|                 </div> |                 </div> | ||||||
|                 <a href="{% url 'passbook_admin:user-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a> |                 <ak-modal-button href="{% url 'authentik_admin:user-create' %}"> | ||||||
|  |                     <ak-spinner-button slot="trigger" class="pf-m-primary"> | ||||||
|  |                         {% trans 'Create' %} | ||||||
|  |                     </ak-spinner-button> | ||||||
|  |                     <div slot="modal"></div> | ||||||
|  |                 </ak-modal-button> | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|         {% endif %} |         {% endif %} | ||||||
							
								
								
									
										1
									
								
								authentik/admin/templates/fields/codemirror.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								authentik/admin/templates/fields/codemirror.html
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | |||||||
|  | <ak-codemirror mode="{{ widget.attrs.mode }}"><textarea class="pf-c-form-control" name="{{ widget.name }}">{% if widget.value %}{{ widget.value }}{% endif %}</textarea></ak-codemirror> | ||||||
| @ -1,6 +1,6 @@ | |||||||
| {% extends base_template|default:"generic/form.html" %} | {% extends base_template|default:"generic/form.html" %} | ||||||
| 
 | 
 | ||||||
| {% load passbook_utils %} | {% load authentik_utils %} | ||||||
| {% load i18n %} | {% load i18n %} | ||||||
| 
 | 
 | ||||||
| {% block above_form %} | {% block above_form %} | ||||||
							
								
								
									
										38
									
								
								authentik/admin/templates/generic/form.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								authentik/admin/templates/generic/form.html
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,38 @@ | |||||||
|  | {% extends container_template|default:"administration/base.html" %} | ||||||
|  |  | ||||||
|  | {% load i18n %} | ||||||
|  | {% load authentik_utils %} | ||||||
|  | {% load static %} | ||||||
|  |  | ||||||
|  | {% block content %} | ||||||
|  | <section class="pf-c-page__main-section pf-m-light"> | ||||||
|  |     <div class="pf-c-content"> | ||||||
|  |         {% block above_form %} | ||||||
|  |         {% endblock %} | ||||||
|  |     </div> | ||||||
|  | </section> | ||||||
|  | <section class="pf-c-page__main-section"> | ||||||
|  |     <div class="pf-l-stack"> | ||||||
|  |         <div class="pf-l-stack__item"> | ||||||
|  |             <div class="pf-c-card"> | ||||||
|  |                 <div class="pf-c-card__body"> | ||||||
|  |                     <form id="main-form" action="" method="post" class="pf-c-form pf-m-horizontal" enctype="multipart/form-data"> | ||||||
|  |                         {% include 'partials/form_horizontal.html' with form=form %} | ||||||
|  |                         {% block beneath_form %} | ||||||
|  |                         {% endblock %} | ||||||
|  |                     </form> | ||||||
|  |                 </div> | ||||||
|  |             </div> | ||||||
|  |         </div> | ||||||
|  |     </div> | ||||||
|  | </section> | ||||||
|  | <footer class="pf-c-modal-box__footer"> | ||||||
|  |     <input class="pf-c-button pf-m-primary" type="submit" form="main-form" value="{% block action %}{% endblock %}" /> | ||||||
|  |     <a class="pf-c-button pf-m-secondary" href="{% back %}">{% trans "Cancel" %}</a> | ||||||
|  | </footer> | ||||||
|  | {% endblock %} | ||||||
|  |  | ||||||
|  | {% block scripts %} | ||||||
|  | {{ block.super }} | ||||||
|  | {{ form.media.js }} | ||||||
|  | {% endblock %} | ||||||
							
								
								
									
										20
									
								
								authentik/admin/templates/generic/form_non_model.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								authentik/admin/templates/generic/form_non_model.html
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,20 @@ | |||||||
|  | {% extends base_template|default:"generic/form.html" %} | ||||||
|  |  | ||||||
|  | {% load authentik_utils %} | ||||||
|  | {% load i18n %} | ||||||
|  |  | ||||||
|  | {% block above_form %} | ||||||
|  | <h1> | ||||||
|  |     {% trans form.title %} | ||||||
|  | </h1> | ||||||
|  | {% endblock %} | ||||||
|  |  | ||||||
|  | {% block beneath_form %} | ||||||
|  | <p> | ||||||
|  |     {% trans form.body %} | ||||||
|  | </p> | ||||||
|  | {% endblock %} | ||||||
|  |  | ||||||
|  | {% block action %} | ||||||
|  | {% trans 'Confirm' %} | ||||||
|  | {% endblock %} | ||||||
| @ -1,6 +1,6 @@ | |||||||
| {% extends base_template|default:"generic/form.html" %} | {% extends base_template|default:"generic/form.html" %} | ||||||
| 
 | 
 | ||||||
| {% load passbook_utils %} | {% load authentik_utils %} | ||||||
| {% load i18n %} | {% load i18n %} | ||||||
| 
 | 
 | ||||||
| {% block above_form %} | {% block above_form %} | ||||||
| @ -1,4 +1,4 @@ | |||||||
| """passbook admin templatetags""" | """authentik admin templatetags""" | ||||||
| from django import template | from django import template | ||||||
| from django.db.models import Model | from django.db.models import Model | ||||||
| from django.utils.html import mark_safe | from django.utils.html import mark_safe | ||||||
							
								
								
									
										37
									
								
								authentik/admin/tests/test_api.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								authentik/admin/tests/test_api.py
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,37 @@ | |||||||
|  | """test admin api""" | ||||||
|  | from json import loads | ||||||
|  |  | ||||||
|  | from django.shortcuts import reverse | ||||||
|  | from django.test import TestCase | ||||||
|  |  | ||||||
|  | from authentik import __version__ | ||||||
|  | from authentik.core.models import Group, User | ||||||
|  |  | ||||||
|  |  | ||||||
|  | class TestAdminAPI(TestCase): | ||||||
|  |     """test admin api""" | ||||||
|  |  | ||||||
|  |     def setUp(self) -> None: | ||||||
|  |         super().setUp() | ||||||
|  |         self.user = User.objects.create(username="test-user") | ||||||
|  |         self.group = Group.objects.create(name="superusers", is_superuser=True) | ||||||
|  |         self.group.users.add(self.user) | ||||||
|  |         self.group.save() | ||||||
|  |         self.client.force_login(self.user) | ||||||
|  |  | ||||||
|  |     def test_overview(self): | ||||||
|  |         """Test Overview API""" | ||||||
|  |         response = self.client.get(reverse("authentik_api:admin_overview-list")) | ||||||
|  |         self.assertEqual(response.status_code, 200) | ||||||
|  |         body = loads(response.content) | ||||||
|  |         self.assertEqual(body["version"], __version__) | ||||||
|  |  | ||||||
|  |     def test_metrics(self): | ||||||
|  |         """Test metrics API""" | ||||||
|  |         response = self.client.get(reverse("authentik_api:admin_metrics-list")) | ||||||
|  |         self.assertEqual(response.status_code, 200) | ||||||
|  |  | ||||||
|  |     def test_tasks(self): | ||||||
|  |         """Test tasks metrics API""" | ||||||
|  |         response = self.client.get(reverse("authentik_api:admin_system_tasks-list")) | ||||||
|  |         self.assertEqual(response.status_code, 200) | ||||||
| @ -7,9 +7,9 @@ from django.shortcuts import reverse | |||||||
| from django.test import Client, TestCase | from django.test import Client, TestCase | ||||||
| from django.urls.exceptions import NoReverseMatch | from django.urls.exceptions import NoReverseMatch | ||||||
| 
 | 
 | ||||||
| from passbook.admin.urls import urlpatterns | from authentik.admin.urls import urlpatterns | ||||||
| from passbook.core.models import Group, User | from authentik.core.models import Group, User | ||||||
| from passbook.lib.utils.reflection import get_apps | from authentik.lib.utils.reflection import get_apps | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class TestAdmin(TestCase): | class TestAdmin(TestCase): | ||||||
| @ -17,7 +17,7 @@ class TestAdmin(TestCase): | |||||||
| 
 | 
 | ||||||
|     def setUp(self): |     def setUp(self): | ||||||
|         self.user = User.objects.create_user(username="test") |         self.user = User.objects.create_user(username="test") | ||||||
|         self.user.pb_groups.add(Group.objects.filter(is_superuser=True).first()) |         self.user.ak_groups.add(Group.objects.filter(is_superuser=True).first()) | ||||||
|         self.user.save() |         self.user.save() | ||||||
|         self.client = Client() |         self.client = Client() | ||||||
|         self.client.force_login(self.user) |         self.client.force_login(self.user) | ||||||
| @ -28,7 +28,7 @@ def generic_view_tester(view_name: str) -> Callable: | |||||||
| 
 | 
 | ||||||
|     def tester(self: TestAdmin): |     def tester(self: TestAdmin): | ||||||
|         try: |         try: | ||||||
|             full_url = reverse(f"passbook_admin:{view_name}") |             full_url = reverse(f"authentik_admin:{view_name}") | ||||||
|             response = self.client.get(full_url) |             response = self.client.get(full_url) | ||||||
|             self.assertTrue(response.status_code < 500) |             self.assertTrue(response.status_code < 500) | ||||||
|         except NoReverseMatch: |         except NoReverseMatch: | ||||||
							
								
								
									
										43
									
								
								authentik/admin/tests/test_policy_binding.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										43
									
								
								authentik/admin/tests/test_policy_binding.py
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,43 @@ | |||||||
|  | """admin tests""" | ||||||
|  | from uuid import uuid4 | ||||||
|  |  | ||||||
|  | from django import forms | ||||||
|  | from django.test import TestCase | ||||||
|  | from django.test.client import RequestFactory | ||||||
|  |  | ||||||
|  | from authentik.admin.views.policies_bindings import PolicyBindingCreateView | ||||||
|  | from authentik.core.models import Application | ||||||
|  | from authentik.policies.forms import PolicyBindingForm | ||||||
|  |  | ||||||
|  |  | ||||||
|  | class TestPolicyBindingView(TestCase): | ||||||
|  |     """Generic admin tests""" | ||||||
|  |  | ||||||
|  |     def setUp(self): | ||||||
|  |         self.factory = RequestFactory() | ||||||
|  |  | ||||||
|  |     def test_without_get_param(self): | ||||||
|  |         """Test PolicyBindingCreateView without get params""" | ||||||
|  |         request = self.factory.get("/") | ||||||
|  |         view = PolicyBindingCreateView(request=request) | ||||||
|  |         self.assertEqual(view.get_initial(), {}) | ||||||
|  |  | ||||||
|  |     def test_with_params_invalid(self): | ||||||
|  |         """Test PolicyBindingCreateView with invalid get params""" | ||||||
|  |         request = self.factory.get("/", {"target": uuid4()}) | ||||||
|  |         view = PolicyBindingCreateView(request=request) | ||||||
|  |         self.assertEqual(view.get_initial(), {}) | ||||||
|  |  | ||||||
|  |     def test_with_params(self): | ||||||
|  |         """Test PolicyBindingCreateView with get params""" | ||||||
|  |         target = Application.objects.create(name="test") | ||||||
|  |         request = self.factory.get("/", {"target": target.pk.hex}) | ||||||
|  |         view = PolicyBindingCreateView(request=request) | ||||||
|  |         self.assertEqual(view.get_initial(), {"target": target, "order": 0}) | ||||||
|  |  | ||||||
|  |         self.assertTrue( | ||||||
|  |             isinstance( | ||||||
|  |                 PolicyBindingForm(initial={"target": "foo"}).fields["target"].widget, | ||||||
|  |                 forms.HiddenInput, | ||||||
|  |             ) | ||||||
|  |         ) | ||||||
							
								
								
									
										43
									
								
								authentik/admin/tests/test_stage_bindings.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										43
									
								
								authentik/admin/tests/test_stage_bindings.py
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,43 @@ | |||||||
|  | """admin tests""" | ||||||
|  | from uuid import uuid4 | ||||||
|  |  | ||||||
|  | from django import forms | ||||||
|  | from django.test import TestCase | ||||||
|  | from django.test.client import RequestFactory | ||||||
|  |  | ||||||
|  | from authentik.admin.views.stages_bindings import StageBindingCreateView | ||||||
|  | from authentik.flows.forms import FlowStageBindingForm | ||||||
|  | from authentik.flows.models import Flow | ||||||
|  |  | ||||||
|  |  | ||||||
|  | class TestStageBindingView(TestCase): | ||||||
|  |     """Generic admin tests""" | ||||||
|  |  | ||||||
|  |     def setUp(self): | ||||||
|  |         self.factory = RequestFactory() | ||||||
|  |  | ||||||
|  |     def test_without_get_param(self): | ||||||
|  |         """Test StageBindingCreateView without get params""" | ||||||
|  |         request = self.factory.get("/") | ||||||
|  |         view = StageBindingCreateView(request=request) | ||||||
|  |         self.assertEqual(view.get_initial(), {}) | ||||||
|  |  | ||||||
|  |     def test_with_params_invalid(self): | ||||||
|  |         """Test StageBindingCreateView with invalid get params""" | ||||||
|  |         request = self.factory.get("/", {"target": uuid4()}) | ||||||
|  |         view = StageBindingCreateView(request=request) | ||||||
|  |         self.assertEqual(view.get_initial(), {}) | ||||||
|  |  | ||||||
|  |     def test_with_params(self): | ||||||
|  |         """Test StageBindingCreateView with get params""" | ||||||
|  |         target = Flow.objects.create(name="test", slug="test") | ||||||
|  |         request = self.factory.get("/", {"target": target.pk.hex}) | ||||||
|  |         view = StageBindingCreateView(request=request) | ||||||
|  |         self.assertEqual(view.get_initial(), {"target": target, "order": 0}) | ||||||
|  |  | ||||||
|  |         self.assertTrue( | ||||||
|  |             isinstance( | ||||||
|  |                 FlowStageBindingForm(initial={"target": "foo"}).fields["target"].widget, | ||||||
|  |                 forms.HiddenInput, | ||||||
|  |             ) | ||||||
|  |         ) | ||||||
| @ -1,7 +1,7 @@ | |||||||
| """passbook URL Configuration""" | """authentik URL Configuration""" | ||||||
| from django.urls import path | from django.urls import path | ||||||
| 
 | 
 | ||||||
| from passbook.admin.views import ( | from authentik.admin.views import ( | ||||||
|     applications, |     applications, | ||||||
|     certificate_key_pair, |     certificate_key_pair, | ||||||
|     flows, |     flows, | ||||||
| @ -24,7 +24,17 @@ from passbook.admin.views import ( | |||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| urlpatterns = [ | urlpatterns = [ | ||||||
|     path("", overview.AdministrationOverviewView.as_view(), name="overview"), |     path( | ||||||
|  |         "overview/cache/flow/", | ||||||
|  |         overview.FlowCacheClearView.as_view(), | ||||||
|  |         name="overview-clear-flow-cache", | ||||||
|  |     ), | ||||||
|  |     path( | ||||||
|  |         "overview/cache/policy/", | ||||||
|  |         overview.PolicyCacheClearView.as_view(), | ||||||
|  |         name="overview-clear-policy-cache", | ||||||
|  |     ), | ||||||
|  |     path("overview/", overview.AdministrationOverviewView.as_view(), name="overview"), | ||||||
|     # Applications |     # Applications | ||||||
|     path( |     path( | ||||||
|         "applications/", applications.ApplicationListView.as_view(), name="applications" |         "applications/", applications.ApplicationListView.as_view(), name="applications" | ||||||
| @ -1,4 +1,4 @@ | |||||||
| """passbook Application administration""" | """authentik Application administration""" | ||||||
| from django.contrib.auth.mixins import LoginRequiredMixin | from django.contrib.auth.mixins import LoginRequiredMixin | ||||||
| from django.contrib.auth.mixins import ( | from django.contrib.auth.mixins import ( | ||||||
|     PermissionRequiredMixin as DjangoPermissionRequiredMixin, |     PermissionRequiredMixin as DjangoPermissionRequiredMixin, | ||||||
| @ -9,15 +9,15 @@ from django.utils.translation import gettext as _ | |||||||
| from django.views.generic import ListView, UpdateView | from django.views.generic import ListView, UpdateView | ||||||
| from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | ||||||
| 
 | 
 | ||||||
| from passbook.admin.views.utils import ( | from authentik.admin.views.utils import ( | ||||||
|     BackSuccessUrlMixin, |     BackSuccessUrlMixin, | ||||||
|     DeleteMessageView, |     DeleteMessageView, | ||||||
|     SearchListMixin, |     SearchListMixin, | ||||||
|     UserPaginateListMixin, |     UserPaginateListMixin, | ||||||
| ) | ) | ||||||
| from passbook.core.forms.applications import ApplicationForm | from authentik.core.forms.applications import ApplicationForm | ||||||
| from passbook.core.models import Application | from authentik.core.models import Application | ||||||
| from passbook.lib.views import CreateAssignPermView | from authentik.lib.views import CreateAssignPermView | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class ApplicationListView( | class ApplicationListView( | ||||||
| @ -30,7 +30,7 @@ class ApplicationListView( | |||||||
|     """Show list of all applications""" |     """Show list of all applications""" | ||||||
| 
 | 
 | ||||||
|     model = Application |     model = Application | ||||||
|     permission_required = "passbook_core.view_application" |     permission_required = "authentik_core.view_application" | ||||||
|     ordering = "name" |     ordering = "name" | ||||||
|     template_name = "administration/application/list.html" |     template_name = "administration/application/list.html" | ||||||
| 
 | 
 | ||||||
| @ -55,10 +55,10 @@ class ApplicationCreateView( | |||||||
| 
 | 
 | ||||||
|     model = Application |     model = Application | ||||||
|     form_class = ApplicationForm |     form_class = ApplicationForm | ||||||
|     permission_required = "passbook_core.add_application" |     permission_required = "authentik_core.add_application" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/create.html" |     template_name = "generic/create.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:applications") |     success_url = reverse_lazy("authentik_admin:applications") | ||||||
|     success_message = _("Successfully created Application") |     success_message = _("Successfully created Application") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -73,10 +73,10 @@ class ApplicationUpdateView( | |||||||
| 
 | 
 | ||||||
|     model = Application |     model = Application | ||||||
|     form_class = ApplicationForm |     form_class = ApplicationForm | ||||||
|     permission_required = "passbook_core.change_application" |     permission_required = "authentik_core.change_application" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/update.html" |     template_name = "generic/update.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:applications") |     success_url = reverse_lazy("authentik_admin:applications") | ||||||
|     success_message = _("Successfully updated Application") |     success_message = _("Successfully updated Application") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -86,8 +86,8 @@ class ApplicationDeleteView( | |||||||
|     """Delete application""" |     """Delete application""" | ||||||
| 
 | 
 | ||||||
|     model = Application |     model = Application | ||||||
|     permission_required = "passbook_core.delete_application" |     permission_required = "authentik_core.delete_application" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/delete.html" |     template_name = "generic/delete.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:applications") |     success_url = reverse_lazy("authentik_admin:applications") | ||||||
|     success_message = _("Successfully deleted Application") |     success_message = _("Successfully deleted Application") | ||||||
| @ -1,4 +1,4 @@ | |||||||
| """passbook CertificateKeyPair administration""" | """authentik CertificateKeyPair administration""" | ||||||
| from django.contrib.auth.mixins import LoginRequiredMixin | from django.contrib.auth.mixins import LoginRequiredMixin | ||||||
| from django.contrib.auth.mixins import ( | from django.contrib.auth.mixins import ( | ||||||
|     PermissionRequiredMixin as DjangoPermissionRequiredMixin, |     PermissionRequiredMixin as DjangoPermissionRequiredMixin, | ||||||
| @ -9,15 +9,15 @@ from django.utils.translation import gettext as _ | |||||||
| from django.views.generic import ListView, UpdateView | from django.views.generic import ListView, UpdateView | ||||||
| from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | ||||||
| 
 | 
 | ||||||
| from passbook.admin.views.utils import ( | from authentik.admin.views.utils import ( | ||||||
|     BackSuccessUrlMixin, |     BackSuccessUrlMixin, | ||||||
|     DeleteMessageView, |     DeleteMessageView, | ||||||
|     SearchListMixin, |     SearchListMixin, | ||||||
|     UserPaginateListMixin, |     UserPaginateListMixin, | ||||||
| ) | ) | ||||||
| from passbook.crypto.forms import CertificateKeyPairForm | from authentik.crypto.forms import CertificateKeyPairForm | ||||||
| from passbook.crypto.models import CertificateKeyPair | from authentik.crypto.models import CertificateKeyPair | ||||||
| from passbook.lib.views import CreateAssignPermView | from authentik.lib.views import CreateAssignPermView | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class CertificateKeyPairListView( | class CertificateKeyPairListView( | ||||||
| @ -30,7 +30,7 @@ class CertificateKeyPairListView( | |||||||
|     """Show list of all keypairs""" |     """Show list of all keypairs""" | ||||||
| 
 | 
 | ||||||
|     model = CertificateKeyPair |     model = CertificateKeyPair | ||||||
|     permission_required = "passbook_crypto.view_certificatekeypair" |     permission_required = "authentik_crypto.view_certificatekeypair" | ||||||
|     ordering = "name" |     ordering = "name" | ||||||
|     template_name = "administration/certificatekeypair/list.html" |     template_name = "administration/certificatekeypair/list.html" | ||||||
| 
 | 
 | ||||||
| @ -48,10 +48,10 @@ class CertificateKeyPairCreateView( | |||||||
| 
 | 
 | ||||||
|     model = CertificateKeyPair |     model = CertificateKeyPair | ||||||
|     form_class = CertificateKeyPairForm |     form_class = CertificateKeyPairForm | ||||||
|     permission_required = "passbook_crypto.add_certificatekeypair" |     permission_required = "authentik_crypto.add_certificatekeypair" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/create.html" |     template_name = "generic/create.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:certificate_key_pair") |     success_url = reverse_lazy("authentik_admin:certificate_key_pair") | ||||||
|     success_message = _("Successfully created CertificateKeyPair") |     success_message = _("Successfully created CertificateKeyPair") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -66,10 +66,10 @@ class CertificateKeyPairUpdateView( | |||||||
| 
 | 
 | ||||||
|     model = CertificateKeyPair |     model = CertificateKeyPair | ||||||
|     form_class = CertificateKeyPairForm |     form_class = CertificateKeyPairForm | ||||||
|     permission_required = "passbook_crypto.change_certificatekeypair" |     permission_required = "authentik_crypto.change_certificatekeypair" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/update.html" |     template_name = "generic/update.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:certificate_key_pair") |     success_url = reverse_lazy("authentik_admin:certificate_key_pair") | ||||||
|     success_message = _("Successfully updated Certificate-Key Pair") |     success_message = _("Successfully updated Certificate-Key Pair") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -79,8 +79,8 @@ class CertificateKeyPairDeleteView( | |||||||
|     """Delete certificatekeypair""" |     """Delete certificatekeypair""" | ||||||
| 
 | 
 | ||||||
|     model = CertificateKeyPair |     model = CertificateKeyPair | ||||||
|     permission_required = "passbook_crypto.delete_certificatekeypair" |     permission_required = "authentik_crypto.delete_certificatekeypair" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/delete.html" |     template_name = "generic/delete.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:certificate_key_pair") |     success_url = reverse_lazy("authentik_admin:certificate_key_pair") | ||||||
|     success_message = _("Successfully deleted Certificate-Key Pair") |     success_message = _("Successfully deleted Certificate-Key Pair") | ||||||
| @ -1,4 +1,4 @@ | |||||||
| """passbook Flow administration""" | """authentik Flow administration""" | ||||||
| from django.contrib import messages | from django.contrib import messages | ||||||
| from django.contrib.auth.mixins import LoginRequiredMixin | from django.contrib.auth.mixins import LoginRequiredMixin | ||||||
| from django.contrib.auth.mixins import ( | from django.contrib.auth.mixins import ( | ||||||
| @ -11,21 +11,21 @@ from django.utils.translation import gettext as _ | |||||||
| from django.views.generic import DetailView, FormView, ListView, UpdateView | from django.views.generic import DetailView, FormView, ListView, UpdateView | ||||||
| from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | ||||||
| 
 | 
 | ||||||
| from passbook.admin.views.utils import ( | from authentik.admin.views.utils import ( | ||||||
|     BackSuccessUrlMixin, |     BackSuccessUrlMixin, | ||||||
|     DeleteMessageView, |     DeleteMessageView, | ||||||
|     SearchListMixin, |     SearchListMixin, | ||||||
|     UserPaginateListMixin, |     UserPaginateListMixin, | ||||||
| ) | ) | ||||||
| from passbook.flows.forms import FlowForm, FlowImportForm | from authentik.flows.forms import FlowForm, FlowImportForm | ||||||
| from passbook.flows.models import Flow | from authentik.flows.models import Flow | ||||||
| from passbook.flows.planner import PLAN_CONTEXT_PENDING_USER | from authentik.flows.planner import PLAN_CONTEXT_PENDING_USER | ||||||
| from passbook.flows.transfer.common import DataclassEncoder | from authentik.flows.transfer.common import DataclassEncoder | ||||||
| from passbook.flows.transfer.exporter import FlowExporter | from authentik.flows.transfer.exporter import FlowExporter | ||||||
| from passbook.flows.transfer.importer import FlowImporter | from authentik.flows.transfer.importer import FlowImporter | ||||||
| from passbook.flows.views import SESSION_KEY_PLAN, FlowPlanner | from authentik.flows.views import SESSION_KEY_PLAN, FlowPlanner | ||||||
| from passbook.lib.utils.urls import redirect_with_qs | from authentik.lib.utils.urls import redirect_with_qs | ||||||
| from passbook.lib.views import CreateAssignPermView | from authentik.lib.views import CreateAssignPermView | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class FlowListView( | class FlowListView( | ||||||
| @ -38,7 +38,7 @@ class FlowListView( | |||||||
|     """Show list of all flows""" |     """Show list of all flows""" | ||||||
| 
 | 
 | ||||||
|     model = Flow |     model = Flow | ||||||
|     permission_required = "passbook_flows.view_flow" |     permission_required = "authentik_flows.view_flow" | ||||||
|     ordering = "name" |     ordering = "name" | ||||||
|     template_name = "administration/flow/list.html" |     template_name = "administration/flow/list.html" | ||||||
|     search_fields = ["name", "slug", "designation", "title"] |     search_fields = ["name", "slug", "designation", "title"] | ||||||
| @ -55,10 +55,10 @@ class FlowCreateView( | |||||||
| 
 | 
 | ||||||
|     model = Flow |     model = Flow | ||||||
|     form_class = FlowForm |     form_class = FlowForm | ||||||
|     permission_required = "passbook_flows.add_flow" |     permission_required = "authentik_flows.add_flow" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/create.html" |     template_name = "generic/create.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:flows") |     success_url = reverse_lazy("authentik_admin:flows") | ||||||
|     success_message = _("Successfully created Flow") |     success_message = _("Successfully created Flow") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -73,10 +73,10 @@ class FlowUpdateView( | |||||||
| 
 | 
 | ||||||
|     model = Flow |     model = Flow | ||||||
|     form_class = FlowForm |     form_class = FlowForm | ||||||
|     permission_required = "passbook_flows.change_flow" |     permission_required = "authentik_flows.change_flow" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/update.html" |     template_name = "generic/update.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:flows") |     success_url = reverse_lazy("authentik_admin:flows") | ||||||
|     success_message = _("Successfully updated Flow") |     success_message = _("Successfully updated Flow") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -84,10 +84,10 @@ class FlowDeleteView(LoginRequiredMixin, PermissionRequiredMixin, DeleteMessageV | |||||||
|     """Delete flow""" |     """Delete flow""" | ||||||
| 
 | 
 | ||||||
|     model = Flow |     model = Flow | ||||||
|     permission_required = "passbook_flows.delete_flow" |     permission_required = "authentik_flows.delete_flow" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/delete.html" |     template_name = "generic/delete.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:flows") |     success_url = reverse_lazy("authentik_admin:flows") | ||||||
|     success_message = _("Successfully deleted Flow") |     success_message = _("Successfully deleted Flow") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -95,7 +95,7 @@ class FlowDebugExecuteView(LoginRequiredMixin, PermissionRequiredMixin, DetailVi | |||||||
|     """Debug exectue flow, setting the current user as pending user""" |     """Debug exectue flow, setting the current user as pending user""" | ||||||
| 
 | 
 | ||||||
|     model = Flow |     model = Flow | ||||||
|     permission_required = "passbook_flows.view_flow" |     permission_required = "authentik_flows.view_flow" | ||||||
| 
 | 
 | ||||||
|     # pylint: disable=unused-argument |     # pylint: disable=unused-argument | ||||||
|     def get(self, request: HttpRequest, pk: str) -> HttpResponse: |     def get(self, request: HttpRequest, pk: str) -> HttpResponse: | ||||||
| @ -106,7 +106,7 @@ class FlowDebugExecuteView(LoginRequiredMixin, PermissionRequiredMixin, DetailVi | |||||||
|         plan = planner.plan(self.request, {PLAN_CONTEXT_PENDING_USER: request.user}) |         plan = planner.plan(self.request, {PLAN_CONTEXT_PENDING_USER: request.user}) | ||||||
|         self.request.session[SESSION_KEY_PLAN] = plan |         self.request.session[SESSION_KEY_PLAN] = plan | ||||||
|         return redirect_with_qs( |         return redirect_with_qs( | ||||||
|             "passbook_flows:flow-executor-shell", |             "authentik_flows:flow-executor-shell", | ||||||
|             self.request.GET, |             self.request.GET, | ||||||
|             flow_slug=flow.slug, |             flow_slug=flow.slug, | ||||||
|         ) |         ) | ||||||
| @ -118,7 +118,7 @@ class FlowImportView(LoginRequiredMixin, FormView): | |||||||
| 
 | 
 | ||||||
|     form_class = FlowImportForm |     form_class = FlowImportForm | ||||||
|     template_name = "administration/flow/import.html" |     template_name = "administration/flow/import.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:flows") |     success_url = reverse_lazy("authentik_admin:flows") | ||||||
| 
 | 
 | ||||||
|     def dispatch(self, request, *args, **kwargs): |     def dispatch(self, request, *args, **kwargs): | ||||||
|         if not request.user.is_superuser: |         if not request.user.is_superuser: | ||||||
| @ -139,7 +139,7 @@ class FlowExportView(LoginRequiredMixin, PermissionRequiredMixin, DetailView): | |||||||
|     """Export Flow""" |     """Export Flow""" | ||||||
| 
 | 
 | ||||||
|     model = Flow |     model = Flow | ||||||
|     permission_required = "passbook_flows.export_flow" |     permission_required = "authentik_flows.export_flow" | ||||||
| 
 | 
 | ||||||
|     # pylint: disable=unused-argument |     # pylint: disable=unused-argument | ||||||
|     def get(self, request: HttpRequest, pk: str) -> HttpResponse: |     def get(self, request: HttpRequest, pk: str) -> HttpResponse: | ||||||
| @ -147,5 +147,5 @@ class FlowExportView(LoginRequiredMixin, PermissionRequiredMixin, DetailView): | |||||||
|         flow: Flow = self.get_object() |         flow: Flow = self.get_object() | ||||||
|         exporter = FlowExporter(flow) |         exporter = FlowExporter(flow) | ||||||
|         response = JsonResponse(exporter.export(), encoder=DataclassEncoder, safe=False) |         response = JsonResponse(exporter.export(), encoder=DataclassEncoder, safe=False) | ||||||
|         response["Content-Disposition"] = f'attachment; filename="{flow.slug}.pbflow"' |         response["Content-Disposition"] = f'attachment; filename="{flow.slug}.akflow"' | ||||||
|         return response |         return response | ||||||
| @ -1,4 +1,4 @@ | |||||||
| """passbook Group administration""" | """authentik Group administration""" | ||||||
| from django.contrib.auth.mixins import LoginRequiredMixin | from django.contrib.auth.mixins import LoginRequiredMixin | ||||||
| from django.contrib.auth.mixins import ( | from django.contrib.auth.mixins import ( | ||||||
|     PermissionRequiredMixin as DjangoPermissionRequiredMixin, |     PermissionRequiredMixin as DjangoPermissionRequiredMixin, | ||||||
| @ -9,15 +9,15 @@ from django.utils.translation import gettext as _ | |||||||
| from django.views.generic import ListView, UpdateView | from django.views.generic import ListView, UpdateView | ||||||
| from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | ||||||
| 
 | 
 | ||||||
| from passbook.admin.views.utils import ( | from authentik.admin.views.utils import ( | ||||||
|     BackSuccessUrlMixin, |     BackSuccessUrlMixin, | ||||||
|     DeleteMessageView, |     DeleteMessageView, | ||||||
|     SearchListMixin, |     SearchListMixin, | ||||||
|     UserPaginateListMixin, |     UserPaginateListMixin, | ||||||
| ) | ) | ||||||
| from passbook.core.forms.groups import GroupForm | from authentik.core.forms.groups import GroupForm | ||||||
| from passbook.core.models import Group | from authentik.core.models import Group | ||||||
| from passbook.lib.views import CreateAssignPermView | from authentik.lib.views import CreateAssignPermView | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class GroupListView( | class GroupListView( | ||||||
| @ -30,7 +30,7 @@ class GroupListView( | |||||||
|     """Show list of all groups""" |     """Show list of all groups""" | ||||||
| 
 | 
 | ||||||
|     model = Group |     model = Group | ||||||
|     permission_required = "passbook_core.view_group" |     permission_required = "authentik_core.view_group" | ||||||
|     ordering = "name" |     ordering = "name" | ||||||
|     template_name = "administration/group/list.html" |     template_name = "administration/group/list.html" | ||||||
|     search_fields = ["name", "attributes"] |     search_fields = ["name", "attributes"] | ||||||
| @ -47,10 +47,10 @@ class GroupCreateView( | |||||||
| 
 | 
 | ||||||
|     model = Group |     model = Group | ||||||
|     form_class = GroupForm |     form_class = GroupForm | ||||||
|     permission_required = "passbook_core.add_group" |     permission_required = "authentik_core.add_group" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/create.html" |     template_name = "generic/create.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:groups") |     success_url = reverse_lazy("authentik_admin:groups") | ||||||
|     success_message = _("Successfully created Group") |     success_message = _("Successfully created Group") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -65,10 +65,10 @@ class GroupUpdateView( | |||||||
| 
 | 
 | ||||||
|     model = Group |     model = Group | ||||||
|     form_class = GroupForm |     form_class = GroupForm | ||||||
|     permission_required = "passbook_core.change_group" |     permission_required = "authentik_core.change_group" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/update.html" |     template_name = "generic/update.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:groups") |     success_url = reverse_lazy("authentik_admin:groups") | ||||||
|     success_message = _("Successfully updated Group") |     success_message = _("Successfully updated Group") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -76,8 +76,8 @@ class GroupDeleteView(LoginRequiredMixin, PermissionRequiredMixin, DeleteMessage | |||||||
|     """Delete group""" |     """Delete group""" | ||||||
| 
 | 
 | ||||||
|     model = Group |     model = Group | ||||||
|     permission_required = "passbook_flows.delete_group" |     permission_required = "authentik_flows.delete_group" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/delete.html" |     template_name = "generic/delete.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:groups") |     success_url = reverse_lazy("authentik_admin:groups") | ||||||
|     success_message = _("Successfully deleted Group") |     success_message = _("Successfully deleted Group") | ||||||
| @ -1,4 +1,4 @@ | |||||||
| """passbook Outpost administration""" | """authentik Outpost administration""" | ||||||
| from dataclasses import asdict | from dataclasses import asdict | ||||||
| from typing import Any, Dict | from typing import Any, Dict | ||||||
| 
 | 
 | ||||||
| @ -12,15 +12,15 @@ from django.utils.translation import gettext as _ | |||||||
| from django.views.generic import ListView, UpdateView | from django.views.generic import ListView, UpdateView | ||||||
| from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | ||||||
| 
 | 
 | ||||||
| from passbook.admin.views.utils import ( | from authentik.admin.views.utils import ( | ||||||
|     BackSuccessUrlMixin, |     BackSuccessUrlMixin, | ||||||
|     DeleteMessageView, |     DeleteMessageView, | ||||||
|     SearchListMixin, |     SearchListMixin, | ||||||
|     UserPaginateListMixin, |     UserPaginateListMixin, | ||||||
| ) | ) | ||||||
| from passbook.lib.views import CreateAssignPermView | from authentik.lib.views import CreateAssignPermView | ||||||
| from passbook.outposts.forms import OutpostForm | from authentik.outposts.forms import OutpostForm | ||||||
| from passbook.outposts.models import Outpost, OutpostConfig | from authentik.outposts.models import Outpost, OutpostConfig | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class OutpostListView( | class OutpostListView( | ||||||
| @ -33,7 +33,7 @@ class OutpostListView( | |||||||
|     """Show list of all outposts""" |     """Show list of all outposts""" | ||||||
| 
 | 
 | ||||||
|     model = Outpost |     model = Outpost | ||||||
|     permission_required = "passbook_outposts.view_outpost" |     permission_required = "authentik_outposts.view_outpost" | ||||||
|     ordering = "name" |     ordering = "name" | ||||||
|     template_name = "administration/outpost/list.html" |     template_name = "administration/outpost/list.html" | ||||||
|     search_fields = ["name", "_config"] |     search_fields = ["name", "_config"] | ||||||
| @ -50,16 +50,16 @@ class OutpostCreateView( | |||||||
| 
 | 
 | ||||||
|     model = Outpost |     model = Outpost | ||||||
|     form_class = OutpostForm |     form_class = OutpostForm | ||||||
|     permission_required = "passbook_outposts.add_outpost" |     permission_required = "authentik_outposts.add_outpost" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/create.html" |     template_name = "generic/create.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:outposts") |     success_url = reverse_lazy("authentik_admin:outposts") | ||||||
|     success_message = _("Successfully created Outpost") |     success_message = _("Successfully created Outpost") | ||||||
| 
 | 
 | ||||||
|     def get_initial(self) -> Dict[str, Any]: |     def get_initial(self) -> Dict[str, Any]: | ||||||
|         return { |         return { | ||||||
|             "_config": asdict( |             "_config": asdict( | ||||||
|                 OutpostConfig(passbook_host=self.request.build_absolute_uri("/")) |                 OutpostConfig(authentik_host=self.request.build_absolute_uri("/")) | ||||||
|             ) |             ) | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
| @ -75,10 +75,10 @@ class OutpostUpdateView( | |||||||
| 
 | 
 | ||||||
|     model = Outpost |     model = Outpost | ||||||
|     form_class = OutpostForm |     form_class = OutpostForm | ||||||
|     permission_required = "passbook_outposts.change_outpost" |     permission_required = "authentik_outposts.change_outpost" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/update.html" |     template_name = "generic/update.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:outposts") |     success_url = reverse_lazy("authentik_admin:outposts") | ||||||
|     success_message = _("Successfully updated Outpost") |     success_message = _("Successfully updated Outpost") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -86,8 +86,8 @@ class OutpostDeleteView(LoginRequiredMixin, PermissionRequiredMixin, DeleteMessa | |||||||
|     """Delete outpost""" |     """Delete outpost""" | ||||||
| 
 | 
 | ||||||
|     model = Outpost |     model = Outpost | ||||||
|     permission_required = "passbook_outposts.delete_outpost" |     permission_required = "authentik_outposts.delete_outpost" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/delete.html" |     template_name = "generic/delete.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:outposts") |     success_url = reverse_lazy("authentik_admin:outposts") | ||||||
|     success_message = _("Successfully deleted Outpost") |     success_message = _("Successfully deleted Outpost") | ||||||
| @ -1,4 +1,4 @@ | |||||||
| """passbook OutpostServiceConnection administration""" | """authentik OutpostServiceConnection administration""" | ||||||
| from django.contrib.auth.mixins import LoginRequiredMixin | from django.contrib.auth.mixins import LoginRequiredMixin | ||||||
| from django.contrib.auth.mixins import ( | from django.contrib.auth.mixins import ( | ||||||
|     PermissionRequiredMixin as DjangoPermissionRequiredMixin, |     PermissionRequiredMixin as DjangoPermissionRequiredMixin, | ||||||
| @ -8,7 +8,7 @@ from django.urls import reverse_lazy | |||||||
| from django.utils.translation import gettext as _ | from django.utils.translation import gettext as _ | ||||||
| from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | ||||||
| 
 | 
 | ||||||
| from passbook.admin.views.utils import ( | from authentik.admin.views.utils import ( | ||||||
|     BackSuccessUrlMixin, |     BackSuccessUrlMixin, | ||||||
|     DeleteMessageView, |     DeleteMessageView, | ||||||
|     InheritanceCreateView, |     InheritanceCreateView, | ||||||
| @ -17,7 +17,7 @@ from passbook.admin.views.utils import ( | |||||||
|     SearchListMixin, |     SearchListMixin, | ||||||
|     UserPaginateListMixin, |     UserPaginateListMixin, | ||||||
| ) | ) | ||||||
| from passbook.outposts.models import OutpostServiceConnection | from authentik.outposts.models import OutpostServiceConnection | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class OutpostServiceConnectionListView( | class OutpostServiceConnectionListView( | ||||||
| @ -30,7 +30,7 @@ class OutpostServiceConnectionListView( | |||||||
|     """Show list of all outpost-service-connections""" |     """Show list of all outpost-service-connections""" | ||||||
| 
 | 
 | ||||||
|     model = OutpostServiceConnection |     model = OutpostServiceConnection | ||||||
|     permission_required = "passbook_outposts.add_outpostserviceconnection" |     permission_required = "authentik_outposts.add_outpostserviceconnection" | ||||||
|     template_name = "administration/outpost_service_connection/list.html" |     template_name = "administration/outpost_service_connection/list.html" | ||||||
|     ordering = "pk" |     ordering = "pk" | ||||||
|     search_fields = ["pk", "name"] |     search_fields = ["pk", "name"] | ||||||
| @ -46,10 +46,10 @@ class OutpostServiceConnectionCreateView( | |||||||
|     """Create new OutpostServiceConnection""" |     """Create new OutpostServiceConnection""" | ||||||
| 
 | 
 | ||||||
|     model = OutpostServiceConnection |     model = OutpostServiceConnection | ||||||
|     permission_required = "passbook_outposts.add_outpostserviceconnection" |     permission_required = "authentik_outposts.add_outpostserviceconnection" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/create.html" |     template_name = "generic/create.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:outpost-service-connections") |     success_url = reverse_lazy("authentik_admin:outpost-service-connections") | ||||||
|     success_message = _("Successfully created OutpostServiceConnection") |     success_message = _("Successfully created OutpostServiceConnection") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -63,10 +63,10 @@ class OutpostServiceConnectionUpdateView( | |||||||
|     """Update outpostserviceconnection""" |     """Update outpostserviceconnection""" | ||||||
| 
 | 
 | ||||||
|     model = OutpostServiceConnection |     model = OutpostServiceConnection | ||||||
|     permission_required = "passbook_outposts.change_outpostserviceconnection" |     permission_required = "authentik_outposts.change_outpostserviceconnection" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/update.html" |     template_name = "generic/update.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:outpost-service-connections") |     success_url = reverse_lazy("authentik_admin:outpost-service-connections") | ||||||
|     success_message = _("Successfully updated OutpostServiceConnection") |     success_message = _("Successfully updated OutpostServiceConnection") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -76,8 +76,8 @@ class OutpostServiceConnectionDeleteView( | |||||||
|     """Delete outpostserviceconnection""" |     """Delete outpostserviceconnection""" | ||||||
| 
 | 
 | ||||||
|     model = OutpostServiceConnection |     model = OutpostServiceConnection | ||||||
|     permission_required = "passbook_outposts.delete_outpostserviceconnection" |     permission_required = "authentik_outposts.delete_outpostserviceconnection" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/delete.html" |     template_name = "generic/delete.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:outpost-service-connections") |     success_url = reverse_lazy("authentik_admin:outpost-service-connections") | ||||||
|     success_message = _("Successfully deleted OutpostServiceConnection") |     success_message = _("Successfully deleted OutpostServiceConnection") | ||||||
							
								
								
									
										85
									
								
								authentik/admin/views/overview.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										85
									
								
								authentik/admin/views/overview.py
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,85 @@ | |||||||
|  | """authentik administration overview""" | ||||||
|  | from typing import Union | ||||||
|  |  | ||||||
|  | from django.conf import settings | ||||||
|  | from django.contrib.messages.views import SuccessMessageMixin | ||||||
|  | from django.core.cache import cache | ||||||
|  | from django.http.request import HttpRequest | ||||||
|  | from django.http.response import HttpResponse | ||||||
|  | from django.urls import reverse_lazy | ||||||
|  | from django.utils.translation import gettext as _ | ||||||
|  | from django.views.generic import FormView, TemplateView | ||||||
|  | from packaging.version import LegacyVersion, Version, parse | ||||||
|  | from structlog import get_logger | ||||||
|  |  | ||||||
|  | from authentik import __version__ | ||||||
|  | from authentik.admin.forms.overview import FlowCacheClearForm, PolicyCacheClearForm | ||||||
|  | from authentik.admin.mixins import AdminRequiredMixin | ||||||
|  | from authentik.admin.tasks import VERSION_CACHE_KEY, update_latest_version | ||||||
|  | from authentik.core.models import Provider, User | ||||||
|  | from authentik.policies.models import Policy | ||||||
|  |  | ||||||
|  | LOGGER = get_logger() | ||||||
|  |  | ||||||
|  |  | ||||||
|  | class AdministrationOverviewView(AdminRequiredMixin, TemplateView): | ||||||
|  |     """Overview View""" | ||||||
|  |  | ||||||
|  |     template_name = "administration/overview.html" | ||||||
|  |  | ||||||
|  |     def get_latest_version(self) -> Union[LegacyVersion, Version]: | ||||||
|  |         """Get latest version from cache""" | ||||||
|  |         version_in_cache = cache.get(VERSION_CACHE_KEY) | ||||||
|  |         if not version_in_cache: | ||||||
|  |             if not settings.DEBUG: | ||||||
|  |                 update_latest_version.delay() | ||||||
|  |             return parse(__version__) | ||||||
|  |         return parse(version_in_cache) | ||||||
|  |  | ||||||
|  |     def get_context_data(self, **kwargs): | ||||||
|  |         kwargs["policy_count"] = len(Policy.objects.all()) | ||||||
|  |         kwargs["user_count"] = len(User.objects.all()) - 1  # Remove anonymous user | ||||||
|  |         kwargs["provider_count"] = len(Provider.objects.all()) | ||||||
|  |         kwargs["version"] = parse(__version__) | ||||||
|  |         kwargs["version_latest"] = self.get_latest_version() | ||||||
|  |         kwargs["providers_without_application"] = Provider.objects.filter( | ||||||
|  |             application=None | ||||||
|  |         ) | ||||||
|  |         kwargs["policies_without_binding"] = len( | ||||||
|  |             Policy.objects.filter(bindings__isnull=True, promptstage__isnull=True) | ||||||
|  |         ) | ||||||
|  |         kwargs["cached_policies"] = len(cache.keys("policy_*")) | ||||||
|  |         kwargs["cached_flows"] = len(cache.keys("flow_*")) | ||||||
|  |         return super().get_context_data(**kwargs) | ||||||
|  |  | ||||||
|  |  | ||||||
|  | class PolicyCacheClearView(AdminRequiredMixin, SuccessMessageMixin, FormView): | ||||||
|  |     """View to clear Policy cache""" | ||||||
|  |  | ||||||
|  |     form_class = PolicyCacheClearForm | ||||||
|  |  | ||||||
|  |     template_name = "generic/form_non_model.html" | ||||||
|  |     success_url = reverse_lazy("authentik_admin:overview") | ||||||
|  |     success_message = _("Successfully cleared Policy cache") | ||||||
|  |  | ||||||
|  |     def post(self, request: HttpRequest, *args, **kwargs) -> HttpResponse: | ||||||
|  |         keys = cache.keys("policy_*") | ||||||
|  |         cache.delete_many(keys) | ||||||
|  |         LOGGER.debug("Cleared Policy cache", keys=len(keys)) | ||||||
|  |         return super().post(request, *args, **kwargs) | ||||||
|  |  | ||||||
|  |  | ||||||
|  | class FlowCacheClearView(AdminRequiredMixin, SuccessMessageMixin, FormView): | ||||||
|  |     """View to clear Flow cache""" | ||||||
|  |  | ||||||
|  |     form_class = FlowCacheClearForm | ||||||
|  |  | ||||||
|  |     template_name = "generic/form_non_model.html" | ||||||
|  |     success_url = reverse_lazy("authentik_admin:overview") | ||||||
|  |     success_message = _("Successfully cleared Flow cache") | ||||||
|  |  | ||||||
|  |     def post(self, request: HttpRequest, *args, **kwargs) -> HttpResponse: | ||||||
|  |         keys = cache.keys("flow_*") | ||||||
|  |         cache.delete_many(keys) | ||||||
|  |         LOGGER.debug("Cleared flow cache", keys=len(keys)) | ||||||
|  |         return super().post(request, *args, **kwargs) | ||||||
| @ -1,4 +1,4 @@ | |||||||
| """passbook Policy administration""" | """authentik Policy administration""" | ||||||
| from typing import Any, Dict | from typing import Any, Dict | ||||||
| 
 | 
 | ||||||
| from django.contrib import messages | from django.contrib import messages | ||||||
| @ -15,8 +15,8 @@ from django.views.generic import FormView | |||||||
| from django.views.generic.detail import DetailView | from django.views.generic.detail import DetailView | ||||||
| from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | ||||||
| 
 | 
 | ||||||
| from passbook.admin.forms.policies import PolicyTestForm | from authentik.admin.forms.policies import PolicyTestForm | ||||||
| from passbook.admin.views.utils import ( | from authentik.admin.views.utils import ( | ||||||
|     BackSuccessUrlMixin, |     BackSuccessUrlMixin, | ||||||
|     DeleteMessageView, |     DeleteMessageView, | ||||||
|     InheritanceCreateView, |     InheritanceCreateView, | ||||||
| @ -25,8 +25,8 @@ from passbook.admin.views.utils import ( | |||||||
|     SearchListMixin, |     SearchListMixin, | ||||||
|     UserPaginateListMixin, |     UserPaginateListMixin, | ||||||
| ) | ) | ||||||
| from passbook.policies.models import Policy, PolicyBinding | from authentik.policies.models import Policy, PolicyBinding | ||||||
| from passbook.policies.process import PolicyProcess, PolicyRequest | from authentik.policies.process import PolicyProcess, PolicyRequest | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class PolicyListView( | class PolicyListView( | ||||||
| @ -39,7 +39,7 @@ class PolicyListView( | |||||||
|     """Show list of all policies""" |     """Show list of all policies""" | ||||||
| 
 | 
 | ||||||
|     model = Policy |     model = Policy | ||||||
|     permission_required = "passbook_policies.view_policy" |     permission_required = "authentik_policies.view_policy" | ||||||
|     ordering = "name" |     ordering = "name" | ||||||
|     template_name = "administration/policy/list.html" |     template_name = "administration/policy/list.html" | ||||||
|     search_fields = ["name"] |     search_fields = ["name"] | ||||||
| @ -55,10 +55,10 @@ class PolicyCreateView( | |||||||
|     """Create new Policy""" |     """Create new Policy""" | ||||||
| 
 | 
 | ||||||
|     model = Policy |     model = Policy | ||||||
|     permission_required = "passbook_policies.add_policy" |     permission_required = "authentik_policies.add_policy" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/create.html" |     template_name = "generic/create.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:policies") |     success_url = reverse_lazy("authentik_admin:policies") | ||||||
|     success_message = _("Successfully created Policy") |     success_message = _("Successfully created Policy") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -72,10 +72,10 @@ class PolicyUpdateView( | |||||||
|     """Update policy""" |     """Update policy""" | ||||||
| 
 | 
 | ||||||
|     model = Policy |     model = Policy | ||||||
|     permission_required = "passbook_policies.change_policy" |     permission_required = "authentik_policies.change_policy" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/update.html" |     template_name = "generic/update.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:policies") |     success_url = reverse_lazy("authentik_admin:policies") | ||||||
|     success_message = _("Successfully updated Policy") |     success_message = _("Successfully updated Policy") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -83,10 +83,10 @@ class PolicyDeleteView(LoginRequiredMixin, PermissionRequiredMixin, DeleteMessag | |||||||
|     """Delete policy""" |     """Delete policy""" | ||||||
| 
 | 
 | ||||||
|     model = Policy |     model = Policy | ||||||
|     permission_required = "passbook_policies.delete_policy" |     permission_required = "authentik_policies.delete_policy" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/delete.html" |     template_name = "generic/delete.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:policies") |     success_url = reverse_lazy("authentik_admin:policies") | ||||||
|     success_message = _("Successfully deleted Policy") |     success_message = _("Successfully deleted Policy") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -95,7 +95,7 @@ class PolicyTestView(LoginRequiredMixin, DetailView, PermissionRequiredMixin, Fo | |||||||
| 
 | 
 | ||||||
|     model = Policy |     model = Policy | ||||||
|     form_class = PolicyTestForm |     form_class = PolicyTestForm | ||||||
|     permission_required = "passbook_policies.view_policy" |     permission_required = "authentik_policies.view_policy" | ||||||
|     template_name = "administration/policy/test.html" |     template_name = "administration/policy/test.html" | ||||||
|     object = None |     object = None | ||||||
| 
 | 
 | ||||||
| @ -1,24 +1,26 @@ | |||||||
| """passbook PolicyBinding administration""" | """authentik PolicyBinding administration""" | ||||||
|  | from typing import Any | ||||||
|  | 
 | ||||||
| from django.contrib.auth.mixins import LoginRequiredMixin | from django.contrib.auth.mixins import LoginRequiredMixin | ||||||
| from django.contrib.auth.mixins import ( | from django.contrib.auth.mixins import ( | ||||||
|     PermissionRequiredMixin as DjangoPermissionRequiredMixin, |     PermissionRequiredMixin as DjangoPermissionRequiredMixin, | ||||||
| ) | ) | ||||||
| from django.contrib.messages.views import SuccessMessageMixin | from django.contrib.messages.views import SuccessMessageMixin | ||||||
| from django.db.models import QuerySet | from django.db.models import Max, QuerySet | ||||||
| from django.urls import reverse_lazy | from django.urls import reverse_lazy | ||||||
| from django.utils.translation import gettext as _ | from django.utils.translation import gettext as _ | ||||||
| from django.views.generic import ListView, UpdateView | from django.views.generic import ListView, UpdateView | ||||||
| from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | ||||||
| from guardian.shortcuts import get_objects_for_user | from guardian.shortcuts import get_objects_for_user | ||||||
| 
 | 
 | ||||||
| from passbook.admin.views.utils import ( | from authentik.admin.views.utils import ( | ||||||
|     BackSuccessUrlMixin, |     BackSuccessUrlMixin, | ||||||
|     DeleteMessageView, |     DeleteMessageView, | ||||||
|     UserPaginateListMixin, |     UserPaginateListMixin, | ||||||
| ) | ) | ||||||
| from passbook.lib.views import CreateAssignPermView | from authentik.lib.views import CreateAssignPermView | ||||||
| from passbook.policies.forms import PolicyBindingForm | from authentik.policies.forms import PolicyBindingForm | ||||||
| from passbook.policies.models import PolicyBinding | from authentik.policies.models import PolicyBinding, PolicyBindingModel | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class PolicyBindingListView( | class PolicyBindingListView( | ||||||
| @ -27,7 +29,7 @@ class PolicyBindingListView( | |||||||
|     """Show list of all policies""" |     """Show list of all policies""" | ||||||
| 
 | 
 | ||||||
|     model = PolicyBinding |     model = PolicyBinding | ||||||
|     permission_required = "passbook_policies.view_policybinding" |     permission_required = "authentik_policies.view_policybinding" | ||||||
|     ordering = ["order", "target"] |     ordering = ["order", "target"] | ||||||
|     template_name = "administration/policy_binding/list.html" |     template_name = "administration/policy_binding/list.html" | ||||||
| 
 | 
 | ||||||
| @ -36,7 +38,7 @@ class PolicyBindingListView( | |||||||
|         # First, get all pbm objects that have bindings attached |         # First, get all pbm objects that have bindings attached | ||||||
|         objects = ( |         objects = ( | ||||||
|             get_objects_for_user( |             get_objects_for_user( | ||||||
|                 self.request.user, "passbook_policies.view_policybindingmodel" |                 self.request.user, "authentik_policies.view_policybindingmodel" | ||||||
|             ) |             ) | ||||||
|             .filter(policies__isnull=False) |             .filter(policies__isnull=False) | ||||||
|             .select_subclasses() |             .select_subclasses() | ||||||
| @ -60,13 +62,29 @@ class PolicyBindingCreateView( | |||||||
|     """Create new PolicyBinding""" |     """Create new PolicyBinding""" | ||||||
| 
 | 
 | ||||||
|     model = PolicyBinding |     model = PolicyBinding | ||||||
|     permission_required = "passbook_policies.add_policybinding" |     permission_required = "authentik_policies.add_policybinding" | ||||||
|     form_class = PolicyBindingForm |     form_class = PolicyBindingForm | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/create.html" |     template_name = "generic/create.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:policies-bindings") |     success_url = reverse_lazy("authentik_admin:policies-bindings") | ||||||
|     success_message = _("Successfully created PolicyBinding") |     success_message = _("Successfully created PolicyBinding") | ||||||
| 
 | 
 | ||||||
|  |     def get_initial(self) -> dict[str, Any]: | ||||||
|  |         if "target" in self.request.GET: | ||||||
|  |             initial_target_pk = self.request.GET["target"] | ||||||
|  |             targets = PolicyBindingModel.objects.filter( | ||||||
|  |                 pk=initial_target_pk | ||||||
|  |             ).select_subclasses() | ||||||
|  |             if not targets.exists(): | ||||||
|  |                 return {} | ||||||
|  |             max_order = PolicyBinding.objects.filter(target=targets.first()).aggregate( | ||||||
|  |                 Max("order") | ||||||
|  |             )["order__max"] | ||||||
|  |             if not isinstance(max_order, int): | ||||||
|  |                 max_order = -1 | ||||||
|  |             return {"target": targets.first(), "order": max_order + 1} | ||||||
|  |         return super().get_initial() | ||||||
|  | 
 | ||||||
| 
 | 
 | ||||||
| class PolicyBindingUpdateView( | class PolicyBindingUpdateView( | ||||||
|     SuccessMessageMixin, |     SuccessMessageMixin, | ||||||
| @ -78,11 +96,11 @@ class PolicyBindingUpdateView( | |||||||
|     """Update policybinding""" |     """Update policybinding""" | ||||||
| 
 | 
 | ||||||
|     model = PolicyBinding |     model = PolicyBinding | ||||||
|     permission_required = "passbook_policies.change_policybinding" |     permission_required = "authentik_policies.change_policybinding" | ||||||
|     form_class = PolicyBindingForm |     form_class = PolicyBindingForm | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/update.html" |     template_name = "generic/update.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:policies-bindings") |     success_url = reverse_lazy("authentik_admin:policies-bindings") | ||||||
|     success_message = _("Successfully updated PolicyBinding") |     success_message = _("Successfully updated PolicyBinding") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -92,8 +110,8 @@ class PolicyBindingDeleteView( | |||||||
|     """Delete policybinding""" |     """Delete policybinding""" | ||||||
| 
 | 
 | ||||||
|     model = PolicyBinding |     model = PolicyBinding | ||||||
|     permission_required = "passbook_policies.delete_policybinding" |     permission_required = "authentik_policies.delete_policybinding" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/delete.html" |     template_name = "generic/delete.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:policies-bindings") |     success_url = reverse_lazy("authentik_admin:policies-bindings") | ||||||
|     success_message = _("Successfully deleted PolicyBinding") |     success_message = _("Successfully deleted PolicyBinding") | ||||||
| @ -1,4 +1,4 @@ | |||||||
| """passbook PropertyMapping administration""" | """authentik PropertyMapping administration""" | ||||||
| from django.contrib.auth.mixins import LoginRequiredMixin | from django.contrib.auth.mixins import LoginRequiredMixin | ||||||
| from django.contrib.auth.mixins import ( | from django.contrib.auth.mixins import ( | ||||||
|     PermissionRequiredMixin as DjangoPermissionRequiredMixin, |     PermissionRequiredMixin as DjangoPermissionRequiredMixin, | ||||||
| @ -8,7 +8,7 @@ from django.urls import reverse_lazy | |||||||
| from django.utils.translation import gettext as _ | from django.utils.translation import gettext as _ | ||||||
| from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | ||||||
| 
 | 
 | ||||||
| from passbook.admin.views.utils import ( | from authentik.admin.views.utils import ( | ||||||
|     BackSuccessUrlMixin, |     BackSuccessUrlMixin, | ||||||
|     DeleteMessageView, |     DeleteMessageView, | ||||||
|     InheritanceCreateView, |     InheritanceCreateView, | ||||||
| @ -17,7 +17,7 @@ from passbook.admin.views.utils import ( | |||||||
|     SearchListMixin, |     SearchListMixin, | ||||||
|     UserPaginateListMixin, |     UserPaginateListMixin, | ||||||
| ) | ) | ||||||
| from passbook.core.models import PropertyMapping | from authentik.core.models import PropertyMapping | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class PropertyMappingListView( | class PropertyMappingListView( | ||||||
| @ -30,7 +30,7 @@ class PropertyMappingListView( | |||||||
|     """Show list of all property_mappings""" |     """Show list of all property_mappings""" | ||||||
| 
 | 
 | ||||||
|     model = PropertyMapping |     model = PropertyMapping | ||||||
|     permission_required = "passbook_core.view_propertymapping" |     permission_required = "authentik_core.view_propertymapping" | ||||||
|     template_name = "administration/property_mapping/list.html" |     template_name = "administration/property_mapping/list.html" | ||||||
|     ordering = "name" |     ordering = "name" | ||||||
|     search_fields = ["name", "expression"] |     search_fields = ["name", "expression"] | ||||||
| @ -46,10 +46,10 @@ class PropertyMappingCreateView( | |||||||
|     """Create new PropertyMapping""" |     """Create new PropertyMapping""" | ||||||
| 
 | 
 | ||||||
|     model = PropertyMapping |     model = PropertyMapping | ||||||
|     permission_required = "passbook_core.add_propertymapping" |     permission_required = "authentik_core.add_propertymapping" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/create.html" |     template_name = "generic/create.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:property-mappings") |     success_url = reverse_lazy("authentik_admin:property-mappings") | ||||||
|     success_message = _("Successfully created Property Mapping") |     success_message = _("Successfully created Property Mapping") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -63,10 +63,10 @@ class PropertyMappingUpdateView( | |||||||
|     """Update property_mapping""" |     """Update property_mapping""" | ||||||
| 
 | 
 | ||||||
|     model = PropertyMapping |     model = PropertyMapping | ||||||
|     permission_required = "passbook_core.change_propertymapping" |     permission_required = "authentik_core.change_propertymapping" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/update.html" |     template_name = "generic/update.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:property-mappings") |     success_url = reverse_lazy("authentik_admin:property-mappings") | ||||||
|     success_message = _("Successfully updated Property Mapping") |     success_message = _("Successfully updated Property Mapping") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -76,8 +76,8 @@ class PropertyMappingDeleteView( | |||||||
|     """Delete property_mapping""" |     """Delete property_mapping""" | ||||||
| 
 | 
 | ||||||
|     model = PropertyMapping |     model = PropertyMapping | ||||||
|     permission_required = "passbook_core.delete_propertymapping" |     permission_required = "authentik_core.delete_propertymapping" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/delete.html" |     template_name = "generic/delete.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:property-mappings") |     success_url = reverse_lazy("authentik_admin:property-mappings") | ||||||
|     success_message = _("Successfully deleted Property Mapping") |     success_message = _("Successfully deleted Property Mapping") | ||||||
| @ -1,4 +1,4 @@ | |||||||
| """passbook Provider administration""" | """authentik Provider administration""" | ||||||
| from django.contrib.auth.mixins import LoginRequiredMixin | from django.contrib.auth.mixins import LoginRequiredMixin | ||||||
| from django.contrib.auth.mixins import ( | from django.contrib.auth.mixins import ( | ||||||
|     PermissionRequiredMixin as DjangoPermissionRequiredMixin, |     PermissionRequiredMixin as DjangoPermissionRequiredMixin, | ||||||
| @ -8,7 +8,7 @@ from django.urls import reverse_lazy | |||||||
| from django.utils.translation import gettext as _ | from django.utils.translation import gettext as _ | ||||||
| from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | ||||||
| 
 | 
 | ||||||
| from passbook.admin.views.utils import ( | from authentik.admin.views.utils import ( | ||||||
|     BackSuccessUrlMixin, |     BackSuccessUrlMixin, | ||||||
|     DeleteMessageView, |     DeleteMessageView, | ||||||
|     InheritanceCreateView, |     InheritanceCreateView, | ||||||
| @ -17,7 +17,7 @@ from passbook.admin.views.utils import ( | |||||||
|     SearchListMixin, |     SearchListMixin, | ||||||
|     UserPaginateListMixin, |     UserPaginateListMixin, | ||||||
| ) | ) | ||||||
| from passbook.core.models import Provider | from authentik.core.models import Provider | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class ProviderListView( | class ProviderListView( | ||||||
| @ -30,7 +30,7 @@ class ProviderListView( | |||||||
|     """Show list of all providers""" |     """Show list of all providers""" | ||||||
| 
 | 
 | ||||||
|     model = Provider |     model = Provider | ||||||
|     permission_required = "passbook_core.add_provider" |     permission_required = "authentik_core.add_provider" | ||||||
|     template_name = "administration/provider/list.html" |     template_name = "administration/provider/list.html" | ||||||
|     ordering = "pk" |     ordering = "pk" | ||||||
|     search_fields = ["pk", "name"] |     search_fields = ["pk", "name"] | ||||||
| @ -46,10 +46,10 @@ class ProviderCreateView( | |||||||
|     """Create new Provider""" |     """Create new Provider""" | ||||||
| 
 | 
 | ||||||
|     model = Provider |     model = Provider | ||||||
|     permission_required = "passbook_core.add_provider" |     permission_required = "authentik_core.add_provider" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/create.html" |     template_name = "generic/create.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:providers") |     success_url = reverse_lazy("authentik_admin:providers") | ||||||
|     success_message = _("Successfully created Provider") |     success_message = _("Successfully created Provider") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -63,10 +63,10 @@ class ProviderUpdateView( | |||||||
|     """Update provider""" |     """Update provider""" | ||||||
| 
 | 
 | ||||||
|     model = Provider |     model = Provider | ||||||
|     permission_required = "passbook_core.change_provider" |     permission_required = "authentik_core.change_provider" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/update.html" |     template_name = "generic/update.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:providers") |     success_url = reverse_lazy("authentik_admin:providers") | ||||||
|     success_message = _("Successfully updated Provider") |     success_message = _("Successfully updated Provider") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -76,8 +76,8 @@ class ProviderDeleteView( | |||||||
|     """Delete provider""" |     """Delete provider""" | ||||||
| 
 | 
 | ||||||
|     model = Provider |     model = Provider | ||||||
|     permission_required = "passbook_core.delete_provider" |     permission_required = "authentik_core.delete_provider" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/delete.html" |     template_name = "generic/delete.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:providers") |     success_url = reverse_lazy("authentik_admin:providers") | ||||||
|     success_message = _("Successfully deleted Provider") |     success_message = _("Successfully deleted Provider") | ||||||
| @ -1,4 +1,4 @@ | |||||||
| """passbook Source administration""" | """authentik Source administration""" | ||||||
| from django.contrib.auth.mixins import LoginRequiredMixin | from django.contrib.auth.mixins import LoginRequiredMixin | ||||||
| from django.contrib.auth.mixins import ( | from django.contrib.auth.mixins import ( | ||||||
|     PermissionRequiredMixin as DjangoPermissionRequiredMixin, |     PermissionRequiredMixin as DjangoPermissionRequiredMixin, | ||||||
| @ -8,7 +8,7 @@ from django.urls import reverse_lazy | |||||||
| from django.utils.translation import gettext as _ | from django.utils.translation import gettext as _ | ||||||
| from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | ||||||
| 
 | 
 | ||||||
| from passbook.admin.views.utils import ( | from authentik.admin.views.utils import ( | ||||||
|     BackSuccessUrlMixin, |     BackSuccessUrlMixin, | ||||||
|     DeleteMessageView, |     DeleteMessageView, | ||||||
|     InheritanceCreateView, |     InheritanceCreateView, | ||||||
| @ -17,7 +17,7 @@ from passbook.admin.views.utils import ( | |||||||
|     SearchListMixin, |     SearchListMixin, | ||||||
|     UserPaginateListMixin, |     UserPaginateListMixin, | ||||||
| ) | ) | ||||||
| from passbook.core.models import Source | from authentik.core.models import Source | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class SourceListView( | class SourceListView( | ||||||
| @ -30,7 +30,7 @@ class SourceListView( | |||||||
|     """Show list of all sources""" |     """Show list of all sources""" | ||||||
| 
 | 
 | ||||||
|     model = Source |     model = Source | ||||||
|     permission_required = "passbook_core.view_source" |     permission_required = "authentik_core.view_source" | ||||||
|     ordering = "name" |     ordering = "name" | ||||||
|     template_name = "administration/source/list.html" |     template_name = "administration/source/list.html" | ||||||
|     search_fields = ["name", "slug"] |     search_fields = ["name", "slug"] | ||||||
| @ -46,10 +46,10 @@ class SourceCreateView( | |||||||
|     """Create new Source""" |     """Create new Source""" | ||||||
| 
 | 
 | ||||||
|     model = Source |     model = Source | ||||||
|     permission_required = "passbook_core.add_source" |     permission_required = "authentik_core.add_source" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/create.html" |     template_name = "generic/create.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:sources") |     success_url = reverse_lazy("authentik_admin:sources") | ||||||
|     success_message = _("Successfully created Source") |     success_message = _("Successfully created Source") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -63,10 +63,10 @@ class SourceUpdateView( | |||||||
|     """Update source""" |     """Update source""" | ||||||
| 
 | 
 | ||||||
|     model = Source |     model = Source | ||||||
|     permission_required = "passbook_core.change_source" |     permission_required = "authentik_core.change_source" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/update.html" |     template_name = "generic/update.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:sources") |     success_url = reverse_lazy("authentik_admin:sources") | ||||||
|     success_message = _("Successfully updated Source") |     success_message = _("Successfully updated Source") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -74,8 +74,8 @@ class SourceDeleteView(LoginRequiredMixin, PermissionRequiredMixin, DeleteMessag | |||||||
|     """Delete source""" |     """Delete source""" | ||||||
| 
 | 
 | ||||||
|     model = Source |     model = Source | ||||||
|     permission_required = "passbook_core.delete_source" |     permission_required = "authentik_core.delete_source" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/delete.html" |     template_name = "generic/delete.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:sources") |     success_url = reverse_lazy("authentik_admin:sources") | ||||||
|     success_message = _("Successfully deleted Source") |     success_message = _("Successfully deleted Source") | ||||||
| @ -1,4 +1,4 @@ | |||||||
| """passbook Stage administration""" | """authentik Stage administration""" | ||||||
| from django.contrib.auth.mixins import LoginRequiredMixin | from django.contrib.auth.mixins import LoginRequiredMixin | ||||||
| from django.contrib.auth.mixins import ( | from django.contrib.auth.mixins import ( | ||||||
|     PermissionRequiredMixin as DjangoPermissionRequiredMixin, |     PermissionRequiredMixin as DjangoPermissionRequiredMixin, | ||||||
| @ -8,7 +8,7 @@ from django.urls import reverse_lazy | |||||||
| from django.utils.translation import gettext as _ | from django.utils.translation import gettext as _ | ||||||
| from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | ||||||
| 
 | 
 | ||||||
| from passbook.admin.views.utils import ( | from authentik.admin.views.utils import ( | ||||||
|     BackSuccessUrlMixin, |     BackSuccessUrlMixin, | ||||||
|     DeleteMessageView, |     DeleteMessageView, | ||||||
|     InheritanceCreateView, |     InheritanceCreateView, | ||||||
| @ -17,7 +17,7 @@ from passbook.admin.views.utils import ( | |||||||
|     SearchListMixin, |     SearchListMixin, | ||||||
|     UserPaginateListMixin, |     UserPaginateListMixin, | ||||||
| ) | ) | ||||||
| from passbook.flows.models import Stage | from authentik.flows.models import Stage | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class StageListView( | class StageListView( | ||||||
| @ -31,7 +31,7 @@ class StageListView( | |||||||
| 
 | 
 | ||||||
|     model = Stage |     model = Stage | ||||||
|     template_name = "administration/stage/list.html" |     template_name = "administration/stage/list.html" | ||||||
|     permission_required = "passbook_flows.view_stage" |     permission_required = "authentik_flows.view_stage" | ||||||
|     ordering = "name" |     ordering = "name" | ||||||
|     search_fields = ["name"] |     search_fields = ["name"] | ||||||
| 
 | 
 | ||||||
| @ -47,9 +47,9 @@ class StageCreateView( | |||||||
| 
 | 
 | ||||||
|     model = Stage |     model = Stage | ||||||
|     template_name = "generic/create.html" |     template_name = "generic/create.html" | ||||||
|     permission_required = "passbook_flows.add_stage" |     permission_required = "authentik_flows.add_stage" | ||||||
| 
 | 
 | ||||||
|     success_url = reverse_lazy("passbook_admin:stages") |     success_url = reverse_lazy("authentik_admin:stages") | ||||||
|     success_message = _("Successfully created Stage") |     success_message = _("Successfully created Stage") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -63,9 +63,9 @@ class StageUpdateView( | |||||||
|     """Update stage""" |     """Update stage""" | ||||||
| 
 | 
 | ||||||
|     model = Stage |     model = Stage | ||||||
|     permission_required = "passbook_flows.update_application" |     permission_required = "authentik_flows.update_application" | ||||||
|     template_name = "generic/update.html" |     template_name = "generic/update.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:stages") |     success_url = reverse_lazy("authentik_admin:stages") | ||||||
|     success_message = _("Successfully updated Stage") |     success_message = _("Successfully updated Stage") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -74,6 +74,6 @@ class StageDeleteView(LoginRequiredMixin, PermissionRequiredMixin, DeleteMessage | |||||||
| 
 | 
 | ||||||
|     model = Stage |     model = Stage | ||||||
|     template_name = "generic/delete.html" |     template_name = "generic/delete.html" | ||||||
|     permission_required = "passbook_flows.delete_stage" |     permission_required = "authentik_flows.delete_stage" | ||||||
|     success_url = reverse_lazy("passbook_admin:stages") |     success_url = reverse_lazy("authentik_admin:stages") | ||||||
|     success_message = _("Successfully deleted Stage") |     success_message = _("Successfully deleted Stage") | ||||||
| @ -1,22 +1,25 @@ | |||||||
| """passbook StageBinding administration""" | """authentik StageBinding administration""" | ||||||
|  | from typing import Any | ||||||
|  | 
 | ||||||
| from django.contrib.auth.mixins import LoginRequiredMixin | from django.contrib.auth.mixins import LoginRequiredMixin | ||||||
| from django.contrib.auth.mixins import ( | from django.contrib.auth.mixins import ( | ||||||
|     PermissionRequiredMixin as DjangoPermissionRequiredMixin, |     PermissionRequiredMixin as DjangoPermissionRequiredMixin, | ||||||
| ) | ) | ||||||
| from django.contrib.messages.views import SuccessMessageMixin | from django.contrib.messages.views import SuccessMessageMixin | ||||||
|  | from django.db.models import Max | ||||||
| from django.urls import reverse_lazy | from django.urls import reverse_lazy | ||||||
| from django.utils.translation import gettext as _ | from django.utils.translation import gettext as _ | ||||||
| from django.views.generic import ListView, UpdateView | from django.views.generic import ListView, UpdateView | ||||||
| from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | ||||||
| 
 | 
 | ||||||
| from passbook.admin.views.utils import ( | from authentik.admin.views.utils import ( | ||||||
|     BackSuccessUrlMixin, |     BackSuccessUrlMixin, | ||||||
|     DeleteMessageView, |     DeleteMessageView, | ||||||
|     UserPaginateListMixin, |     UserPaginateListMixin, | ||||||
| ) | ) | ||||||
| from passbook.flows.forms import FlowStageBindingForm | from authentik.flows.forms import FlowStageBindingForm | ||||||
| from passbook.flows.models import FlowStageBinding | from authentik.flows.models import Flow, FlowStageBinding | ||||||
| from passbook.lib.views import CreateAssignPermView | from authentik.lib.views import CreateAssignPermView | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class StageBindingListView( | class StageBindingListView( | ||||||
| @ -25,7 +28,7 @@ class StageBindingListView( | |||||||
|     """Show list of all flows""" |     """Show list of all flows""" | ||||||
| 
 | 
 | ||||||
|     model = FlowStageBinding |     model = FlowStageBinding | ||||||
|     permission_required = "passbook_flows.view_flowstagebinding" |     permission_required = "authentik_flows.view_flowstagebinding" | ||||||
|     ordering = ["target", "order"] |     ordering = ["target", "order"] | ||||||
|     template_name = "administration/stage_binding/list.html" |     template_name = "administration/stage_binding/list.html" | ||||||
| 
 | 
 | ||||||
| @ -40,13 +43,27 @@ class StageBindingCreateView( | |||||||
|     """Create new StageBinding""" |     """Create new StageBinding""" | ||||||
| 
 | 
 | ||||||
|     model = FlowStageBinding |     model = FlowStageBinding | ||||||
|     permission_required = "passbook_flows.add_flowstagebinding" |     permission_required = "authentik_flows.add_flowstagebinding" | ||||||
|     form_class = FlowStageBindingForm |     form_class = FlowStageBindingForm | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/create.html" |     template_name = "generic/create.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:stage-bindings") |     success_url = reverse_lazy("authentik_admin:stage-bindings") | ||||||
|     success_message = _("Successfully created StageBinding") |     success_message = _("Successfully created StageBinding") | ||||||
| 
 | 
 | ||||||
|  |     def get_initial(self) -> dict[str, Any]: | ||||||
|  |         if "target" in self.request.GET: | ||||||
|  |             initial_target_pk = self.request.GET["target"] | ||||||
|  |             targets = Flow.objects.filter(pk=initial_target_pk).select_subclasses() | ||||||
|  |             if not targets.exists(): | ||||||
|  |                 return {} | ||||||
|  |             max_order = FlowStageBinding.objects.filter( | ||||||
|  |                 target=targets.first() | ||||||
|  |             ).aggregate(Max("order"))["order__max"] | ||||||
|  |             if not isinstance(max_order, int): | ||||||
|  |                 max_order = -1 | ||||||
|  |             return {"target": targets.first(), "order": max_order + 1} | ||||||
|  |         return super().get_initial() | ||||||
|  | 
 | ||||||
| 
 | 
 | ||||||
| class StageBindingUpdateView( | class StageBindingUpdateView( | ||||||
|     SuccessMessageMixin, |     SuccessMessageMixin, | ||||||
| @ -58,11 +75,11 @@ class StageBindingUpdateView( | |||||||
|     """Update FlowStageBinding""" |     """Update FlowStageBinding""" | ||||||
| 
 | 
 | ||||||
|     model = FlowStageBinding |     model = FlowStageBinding | ||||||
|     permission_required = "passbook_flows.change_flowstagebinding" |     permission_required = "authentik_flows.change_flowstagebinding" | ||||||
|     form_class = FlowStageBindingForm |     form_class = FlowStageBindingForm | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/update.html" |     template_name = "generic/update.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:stage-bindings") |     success_url = reverse_lazy("authentik_admin:stage-bindings") | ||||||
|     success_message = _("Successfully updated StageBinding") |     success_message = _("Successfully updated StageBinding") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -72,8 +89,8 @@ class StageBindingDeleteView( | |||||||
|     """Delete FlowStageBinding""" |     """Delete FlowStageBinding""" | ||||||
| 
 | 
 | ||||||
|     model = FlowStageBinding |     model = FlowStageBinding | ||||||
|     permission_required = "passbook_flows.delete_flowstagebinding" |     permission_required = "authentik_flows.delete_flowstagebinding" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/delete.html" |     template_name = "generic/delete.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:stage-bindings") |     success_url = reverse_lazy("authentik_admin:stage-bindings") | ||||||
|     success_message = _("Successfully deleted FlowStageBinding") |     success_message = _("Successfully deleted FlowStageBinding") | ||||||
| @ -1,4 +1,4 @@ | |||||||
| """passbook Invitation administration""" | """authentik Invitation administration""" | ||||||
| from django.contrib.auth.mixins import LoginRequiredMixin | from django.contrib.auth.mixins import LoginRequiredMixin | ||||||
| from django.contrib.auth.mixins import ( | from django.contrib.auth.mixins import ( | ||||||
|     PermissionRequiredMixin as DjangoPermissionRequiredMixin, |     PermissionRequiredMixin as DjangoPermissionRequiredMixin, | ||||||
| @ -10,16 +10,16 @@ from django.utils.translation import gettext as _ | |||||||
| from django.views.generic import ListView | from django.views.generic import ListView | ||||||
| from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | ||||||
| 
 | 
 | ||||||
| from passbook.admin.views.utils import ( | from authentik.admin.views.utils import ( | ||||||
|     BackSuccessUrlMixin, |     BackSuccessUrlMixin, | ||||||
|     DeleteMessageView, |     DeleteMessageView, | ||||||
|     SearchListMixin, |     SearchListMixin, | ||||||
|     UserPaginateListMixin, |     UserPaginateListMixin, | ||||||
| ) | ) | ||||||
| from passbook.lib.views import CreateAssignPermView | from authentik.lib.views import CreateAssignPermView | ||||||
| from passbook.stages.invitation.forms import InvitationForm | from authentik.stages.invitation.forms import InvitationForm | ||||||
| from passbook.stages.invitation.models import Invitation | from authentik.stages.invitation.models import Invitation | ||||||
| from passbook.stages.invitation.signals import invitation_created | from authentik.stages.invitation.signals import invitation_created | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class InvitationListView( | class InvitationListView( | ||||||
| @ -32,7 +32,7 @@ class InvitationListView( | |||||||
|     """Show list of all invitations""" |     """Show list of all invitations""" | ||||||
| 
 | 
 | ||||||
|     model = Invitation |     model = Invitation | ||||||
|     permission_required = "passbook_stages_invitation.view_invitation" |     permission_required = "authentik_stages_invitation.view_invitation" | ||||||
|     template_name = "administration/stage_invitation/list.html" |     template_name = "administration/stage_invitation/list.html" | ||||||
|     ordering = "-expires" |     ordering = "-expires" | ||||||
|     search_fields = ["created_by__username", "expires", "fixed_data"] |     search_fields = ["created_by__username", "expires", "fixed_data"] | ||||||
| @ -49,10 +49,10 @@ class InvitationCreateView( | |||||||
| 
 | 
 | ||||||
|     model = Invitation |     model = Invitation | ||||||
|     form_class = InvitationForm |     form_class = InvitationForm | ||||||
|     permission_required = "passbook_stages_invitation.add_invitation" |     permission_required = "authentik_stages_invitation.add_invitation" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/create.html" |     template_name = "generic/create.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:stage-invitations") |     success_url = reverse_lazy("authentik_admin:stage-invitations") | ||||||
|     success_message = _("Successfully created Invitation") |     success_message = _("Successfully created Invitation") | ||||||
| 
 | 
 | ||||||
|     def form_valid(self, form): |     def form_valid(self, form): | ||||||
| @ -69,8 +69,8 @@ class InvitationDeleteView( | |||||||
|     """Delete invitation""" |     """Delete invitation""" | ||||||
| 
 | 
 | ||||||
|     model = Invitation |     model = Invitation | ||||||
|     permission_required = "passbook_stages_invitation.delete_invitation" |     permission_required = "authentik_stages_invitation.delete_invitation" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/delete.html" |     template_name = "generic/delete.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:stage-invitations") |     success_url = reverse_lazy("authentik_admin:stage-invitations") | ||||||
|     success_message = _("Successfully deleted Invitation") |     success_message = _("Successfully deleted Invitation") | ||||||
| @ -1,4 +1,4 @@ | |||||||
| """passbook Prompt administration""" | """authentik Prompt administration""" | ||||||
| from django.contrib.auth.mixins import LoginRequiredMixin | from django.contrib.auth.mixins import LoginRequiredMixin | ||||||
| from django.contrib.auth.mixins import ( | from django.contrib.auth.mixins import ( | ||||||
|     PermissionRequiredMixin as DjangoPermissionRequiredMixin, |     PermissionRequiredMixin as DjangoPermissionRequiredMixin, | ||||||
| @ -9,15 +9,15 @@ from django.utils.translation import gettext as _ | |||||||
| from django.views.generic import ListView, UpdateView | from django.views.generic import ListView, UpdateView | ||||||
| from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | ||||||
| 
 | 
 | ||||||
| from passbook.admin.views.utils import ( | from authentik.admin.views.utils import ( | ||||||
|     BackSuccessUrlMixin, |     BackSuccessUrlMixin, | ||||||
|     DeleteMessageView, |     DeleteMessageView, | ||||||
|     SearchListMixin, |     SearchListMixin, | ||||||
|     UserPaginateListMixin, |     UserPaginateListMixin, | ||||||
| ) | ) | ||||||
| from passbook.lib.views import CreateAssignPermView | from authentik.lib.views import CreateAssignPermView | ||||||
| from passbook.stages.prompt.forms import PromptAdminForm | from authentik.stages.prompt.forms import PromptAdminForm | ||||||
| from passbook.stages.prompt.models import Prompt | from authentik.stages.prompt.models import Prompt | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class PromptListView( | class PromptListView( | ||||||
| @ -30,7 +30,7 @@ class PromptListView( | |||||||
|     """Show list of all prompts""" |     """Show list of all prompts""" | ||||||
| 
 | 
 | ||||||
|     model = Prompt |     model = Prompt | ||||||
|     permission_required = "passbook_stages_prompt.view_prompt" |     permission_required = "authentik_stages_prompt.view_prompt" | ||||||
|     ordering = "order" |     ordering = "order" | ||||||
|     template_name = "administration/stage_prompt/list.html" |     template_name = "administration/stage_prompt/list.html" | ||||||
|     search_fields = [ |     search_fields = [ | ||||||
| @ -52,10 +52,10 @@ class PromptCreateView( | |||||||
| 
 | 
 | ||||||
|     model = Prompt |     model = Prompt | ||||||
|     form_class = PromptAdminForm |     form_class = PromptAdminForm | ||||||
|     permission_required = "passbook_stages_prompt.add_prompt" |     permission_required = "authentik_stages_prompt.add_prompt" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/create.html" |     template_name = "generic/create.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:stage-prompts") |     success_url = reverse_lazy("authentik_admin:stage-prompts") | ||||||
|     success_message = _("Successfully created Prompt") |     success_message = _("Successfully created Prompt") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -70,10 +70,10 @@ class PromptUpdateView( | |||||||
| 
 | 
 | ||||||
|     model = Prompt |     model = Prompt | ||||||
|     form_class = PromptAdminForm |     form_class = PromptAdminForm | ||||||
|     permission_required = "passbook_stages_prompt.change_prompt" |     permission_required = "authentik_stages_prompt.change_prompt" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/update.html" |     template_name = "generic/update.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:stage-prompts") |     success_url = reverse_lazy("authentik_admin:stage-prompts") | ||||||
|     success_message = _("Successfully updated Prompt") |     success_message = _("Successfully updated Prompt") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -81,8 +81,8 @@ class PromptDeleteView(LoginRequiredMixin, PermissionRequiredMixin, DeleteMessag | |||||||
|     """Delete prompt""" |     """Delete prompt""" | ||||||
| 
 | 
 | ||||||
|     model = Prompt |     model = Prompt | ||||||
|     permission_required = "passbook_stages_prompt.delete_prompt" |     permission_required = "authentik_stages_prompt.delete_prompt" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/delete.html" |     template_name = "generic/delete.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:stage-prompts") |     success_url = reverse_lazy("authentik_admin:stage-prompts") | ||||||
|     success_message = _("Successfully deleted Prompt") |     success_message = _("Successfully deleted Prompt") | ||||||
| @ -1,10 +1,10 @@ | |||||||
| """passbook Tasks List""" | """authentik Tasks List""" | ||||||
| from typing import Any, Dict | from typing import Any, Dict | ||||||
| 
 | 
 | ||||||
| from django.views.generic.base import TemplateView | from django.views.generic.base import TemplateView | ||||||
| 
 | 
 | ||||||
| from passbook.admin.mixins import AdminRequiredMixin | from authentik.admin.mixins import AdminRequiredMixin | ||||||
| from passbook.lib.tasks import TaskInfo, TaskResultStatus | from authentik.lib.tasks import TaskInfo, TaskResultStatus | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class TaskListView(AdminRequiredMixin, TemplateView): | class TaskListView(AdminRequiredMixin, TemplateView): | ||||||
| @ -1,16 +1,16 @@ | |||||||
| """passbook Token administration""" | """authentik Token administration""" | ||||||
| from django.contrib.auth.mixins import LoginRequiredMixin | from django.contrib.auth.mixins import LoginRequiredMixin | ||||||
| from django.urls import reverse_lazy | from django.urls import reverse_lazy | ||||||
| from django.utils.translation import gettext as _ | from django.utils.translation import gettext as _ | ||||||
| from django.views.generic import ListView | from django.views.generic import ListView | ||||||
| from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | from guardian.mixins import PermissionListMixin, PermissionRequiredMixin | ||||||
| 
 | 
 | ||||||
| from passbook.admin.views.utils import ( | from authentik.admin.views.utils import ( | ||||||
|     DeleteMessageView, |     DeleteMessageView, | ||||||
|     SearchListMixin, |     SearchListMixin, | ||||||
|     UserPaginateListMixin, |     UserPaginateListMixin, | ||||||
| ) | ) | ||||||
| from passbook.core.models import Token | from authentik.core.models import Token | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class TokenListView( | class TokenListView( | ||||||
| @ -23,7 +23,7 @@ class TokenListView( | |||||||
|     """Show list of all tokens""" |     """Show list of all tokens""" | ||||||
| 
 | 
 | ||||||
|     model = Token |     model = Token | ||||||
|     permission_required = "passbook_core.view_token" |     permission_required = "authentik_core.view_token" | ||||||
|     ordering = "expires" |     ordering = "expires" | ||||||
|     template_name = "administration/token/list.html" |     template_name = "administration/token/list.html" | ||||||
|     search_fields = [ |     search_fields = [ | ||||||
| @ -38,8 +38,8 @@ class TokenDeleteView(LoginRequiredMixin, PermissionRequiredMixin, DeleteMessage | |||||||
|     """Delete token""" |     """Delete token""" | ||||||
| 
 | 
 | ||||||
|     model = Token |     model = Token | ||||||
|     permission_required = "passbook_core.delete_token" |     permission_required = "authentik_core.delete_token" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/delete.html" |     template_name = "generic/delete.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:tokens") |     success_url = reverse_lazy("authentik_admin:tokens") | ||||||
|     success_message = _("Successfully deleted Token") |     success_message = _("Successfully deleted Token") | ||||||
| @ -1,4 +1,4 @@ | |||||||
| """passbook User administration""" | """authentik User administration""" | ||||||
| from django.contrib import messages | from django.contrib import messages | ||||||
| from django.contrib.auth.mixins import LoginRequiredMixin | from django.contrib.auth.mixins import LoginRequiredMixin | ||||||
| from django.contrib.auth.mixins import ( | from django.contrib.auth.mixins import ( | ||||||
| @ -18,15 +18,15 @@ from guardian.mixins import ( | |||||||
|     get_anonymous_user, |     get_anonymous_user, | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| from passbook.admin.forms.users import UserForm | from authentik.admin.forms.users import UserForm | ||||||
| from passbook.admin.views.utils import ( | from authentik.admin.views.utils import ( | ||||||
|     BackSuccessUrlMixin, |     BackSuccessUrlMixin, | ||||||
|     DeleteMessageView, |     DeleteMessageView, | ||||||
|     SearchListMixin, |     SearchListMixin, | ||||||
|     UserPaginateListMixin, |     UserPaginateListMixin, | ||||||
| ) | ) | ||||||
| from passbook.core.models import Token, User | from authentik.core.models import Token, User | ||||||
| from passbook.lib.views import CreateAssignPermView | from authentik.lib.views import CreateAssignPermView | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class UserListView( | class UserListView( | ||||||
| @ -39,7 +39,7 @@ class UserListView( | |||||||
|     """Show list of all users""" |     """Show list of all users""" | ||||||
| 
 | 
 | ||||||
|     model = User |     model = User | ||||||
|     permission_required = "passbook_core.view_user" |     permission_required = "authentik_core.view_user" | ||||||
|     ordering = "username" |     ordering = "username" | ||||||
|     template_name = "administration/user/list.html" |     template_name = "administration/user/list.html" | ||||||
|     search_fields = ["username", "name", "attributes"] |     search_fields = ["username", "name", "attributes"] | ||||||
| @ -59,10 +59,10 @@ class UserCreateView( | |||||||
| 
 | 
 | ||||||
|     model = User |     model = User | ||||||
|     form_class = UserForm |     form_class = UserForm | ||||||
|     permission_required = "passbook_core.add_user" |     permission_required = "authentik_core.add_user" | ||||||
| 
 | 
 | ||||||
|     template_name = "generic/create.html" |     template_name = "generic/create.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:users") |     success_url = reverse_lazy("authentik_admin:users") | ||||||
|     success_message = _("Successfully created User") |     success_message = _("Successfully created User") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -77,12 +77,12 @@ class UserUpdateView( | |||||||
| 
 | 
 | ||||||
|     model = User |     model = User | ||||||
|     form_class = UserForm |     form_class = UserForm | ||||||
|     permission_required = "passbook_core.change_user" |     permission_required = "authentik_core.change_user" | ||||||
| 
 | 
 | ||||||
|     # By default the object's name is user which is used by other checks |     # By default the object's name is user which is used by other checks | ||||||
|     context_object_name = "object" |     context_object_name = "object" | ||||||
|     template_name = "generic/update.html" |     template_name = "generic/update.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:users") |     success_url = reverse_lazy("authentik_admin:users") | ||||||
|     success_message = _("Successfully updated User") |     success_message = _("Successfully updated User") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -90,12 +90,12 @@ class UserDeleteView(LoginRequiredMixin, PermissionRequiredMixin, DeleteMessageV | |||||||
|     """Delete user""" |     """Delete user""" | ||||||
| 
 | 
 | ||||||
|     model = User |     model = User | ||||||
|     permission_required = "passbook_core.delete_user" |     permission_required = "authentik_core.delete_user" | ||||||
| 
 | 
 | ||||||
|     # By default the object's name is user which is used by other checks |     # By default the object's name is user which is used by other checks | ||||||
|     context_object_name = "object" |     context_object_name = "object" | ||||||
|     template_name = "generic/delete.html" |     template_name = "generic/delete.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:users") |     success_url = reverse_lazy("authentik_admin:users") | ||||||
|     success_message = _("Successfully deleted User") |     success_message = _("Successfully deleted User") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -107,12 +107,12 @@ class UserDisableView( | |||||||
|     object: User |     object: User | ||||||
| 
 | 
 | ||||||
|     model = User |     model = User | ||||||
|     permission_required = "passbook_core.update_user" |     permission_required = "authentik_core.update_user" | ||||||
| 
 | 
 | ||||||
|     # By default the object's name is user which is used by other checks |     # By default the object's name is user which is used by other checks | ||||||
|     context_object_name = "object" |     context_object_name = "object" | ||||||
|     template_name = "administration/user/disable.html" |     template_name = "administration/user/disable.html" | ||||||
|     success_url = reverse_lazy("passbook_admin:users") |     success_url = reverse_lazy("authentik_admin:users") | ||||||
|     success_message = _("Successfully disabled User") |     success_message = _("Successfully disabled User") | ||||||
| 
 | 
 | ||||||
|     def delete(self, request: HttpRequest, *args, **kwargs) -> HttpResponse: |     def delete(self, request: HttpRequest, *args, **kwargs) -> HttpResponse: | ||||||
| @ -131,11 +131,11 @@ class UserEnableView( | |||||||
|     object: User |     object: User | ||||||
| 
 | 
 | ||||||
|     model = User |     model = User | ||||||
|     permission_required = "passbook_core.update_user" |     permission_required = "authentik_core.update_user" | ||||||
| 
 | 
 | ||||||
|     # By default the object's name is user which is used by other checks |     # By default the object's name is user which is used by other checks | ||||||
|     context_object_name = "object" |     context_object_name = "object" | ||||||
|     success_url = reverse_lazy("passbook_admin:users") |     success_url = reverse_lazy("authentik_admin:users") | ||||||
|     success_message = _("Successfully enabled User") |     success_message = _("Successfully enabled User") | ||||||
| 
 | 
 | ||||||
|     def get(self, request: HttpRequest, *args, **kwargs): |     def get(self, request: HttpRequest, *args, **kwargs): | ||||||
| @ -150,19 +150,19 @@ class UserPasswordResetView(LoginRequiredMixin, PermissionRequiredMixin, DetailV | |||||||
|     """Get Password reset link for user""" |     """Get Password reset link for user""" | ||||||
| 
 | 
 | ||||||
|     model = User |     model = User | ||||||
|     permission_required = "passbook_core.reset_user_password" |     permission_required = "authentik_core.reset_user_password" | ||||||
| 
 | 
 | ||||||
|     def get(self, request: HttpRequest, *args, **kwargs) -> HttpResponse: |     def get(self, request: HttpRequest, *args, **kwargs) -> HttpResponse: | ||||||
|         """Create token for user and return link""" |         """Create token for user and return link""" | ||||||
|         super().get(request, *args, **kwargs) |         super().get(request, *args, **kwargs) | ||||||
|         token, _ = Token.objects.get_or_create( |         token, __ = Token.objects.get_or_create( | ||||||
|             identifier="password-reset-temp", user=self.object |             identifier="password-reset-temp", user=self.object | ||||||
|         ) |         ) | ||||||
|         querystring = urlencode({"token": token.key}) |         querystring = urlencode({"token": token.key}) | ||||||
|         link = request.build_absolute_uri( |         link = request.build_absolute_uri( | ||||||
|             reverse("passbook_flows:default-recovery") + f"?{querystring}" |             reverse("authentik_flows:default-recovery") + f"?{querystring}" | ||||||
|         ) |         ) | ||||||
|         messages.success( |         messages.success( | ||||||
|             request, _("Password reset link: <pre>%(link)s</pre>" % {"link": link}) |             request, _("Password reset link: <pre>%(link)s</pre>" % {"link": link}) | ||||||
|         ) |         ) | ||||||
|         return redirect("passbook_admin:users") |         return redirect("authentik_admin:users") | ||||||
| @ -1,4 +1,4 @@ | |||||||
| """passbook admin util views""" | """authentik admin util views""" | ||||||
| from typing import Any, Dict, List, Optional | from typing import Any, Dict, List, Optional | ||||||
| from urllib.parse import urlparse | from urllib.parse import urlparse | ||||||
| 
 | 
 | ||||||
| @ -11,8 +11,8 @@ from django.http.request import HttpRequest | |||||||
| from django.views.generic import DeleteView, ListView, UpdateView | from django.views.generic import DeleteView, ListView, UpdateView | ||||||
| from django.views.generic.list import MultipleObjectMixin | from django.views.generic.list import MultipleObjectMixin | ||||||
| 
 | 
 | ||||||
| from passbook.lib.utils.reflection import all_subclasses | from authentik.lib.utils.reflection import all_subclasses | ||||||
| from passbook.lib.views import CreateAssignPermView | from authentik.lib.views import CreateAssignPermView | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class DeleteMessageView(SuccessMessageMixin, DeleteView): | class DeleteMessageView(SuccessMessageMixin, DeleteView): | ||||||
							
								
								
									
										12
									
								
								authentik/api/apps.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								authentik/api/apps.py
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,12 @@ | |||||||
|  | """authentik API AppConfig""" | ||||||
|  |  | ||||||
|  | from django.apps import AppConfig | ||||||
|  |  | ||||||
|  |  | ||||||
|  | class AuthentikAPIConfig(AppConfig): | ||||||
|  |     """authentik API Config""" | ||||||
|  |  | ||||||
|  |     name = "authentik.api" | ||||||
|  |     label = "authentik_api" | ||||||
|  |     mountpoint = "api/" | ||||||
|  |     verbose_name = "authentik API" | ||||||
| @ -1,12 +1,13 @@ | |||||||
| """API Authentication""" | """API Authentication""" | ||||||
| from base64 import b64decode | from base64 import b64decode | ||||||
|  | from binascii import Error | ||||||
| from typing import Any, Optional, Tuple, Union | from typing import Any, Optional, Tuple, Union | ||||||
| 
 | 
 | ||||||
| from rest_framework.authentication import BaseAuthentication, get_authorization_header | from rest_framework.authentication import BaseAuthentication, get_authorization_header | ||||||
| from rest_framework.request import Request | from rest_framework.request import Request | ||||||
| from structlog import get_logger | from structlog import get_logger | ||||||
| 
 | 
 | ||||||
| from passbook.core.models import Token, TokenIntents, User | from authentik.core.models import Token, TokenIntents, User | ||||||
| 
 | 
 | ||||||
| LOGGER = get_logger() | LOGGER = get_logger() | ||||||
| 
 | 
 | ||||||
| @ -24,14 +25,14 @@ def token_from_header(raw_header: bytes) -> Optional[Token]: | |||||||
|             return None |             return None | ||||||
|     try: |     try: | ||||||
|         auth_credentials = b64decode(auth_credentials.encode()).decode() |         auth_credentials = b64decode(auth_credentials.encode()).decode() | ||||||
|     except UnicodeDecodeError: |     except (UnicodeDecodeError, Error): | ||||||
|         return None |         return None | ||||||
|     # Accept credentials with username and without |     # Accept credentials with username and without | ||||||
|     if ":" in auth_credentials: |     if ":" in auth_credentials: | ||||||
|         _, password = auth_credentials.split(":") |         _, password = auth_credentials.split(":") | ||||||
|     else: |     else: | ||||||
|         password = auth_credentials |         password = auth_credentials | ||||||
|     if password == "": |     if password == "":  # nosec | ||||||
|         return None |         return None | ||||||
|     tokens = Token.filter_not_expired(key=password, intent=TokenIntents.INTENT_API) |     tokens = Token.filter_not_expired(key=password, intent=TokenIntents.INTENT_API) | ||||||
|     if not tokens.exists(): |     if not tokens.exists(): | ||||||
| @ -40,7 +41,7 @@ def token_from_header(raw_header: bytes) -> Optional[Token]: | |||||||
|     return tokens.first() |     return tokens.first() | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class PassbookTokenAuthentication(BaseAuthentication): | class AuthentikTokenAuthentication(BaseAuthentication): | ||||||
|     """Token-based authentication using HTTP Basic authentication""" |     """Token-based authentication using HTTP Basic authentication""" | ||||||
| 
 | 
 | ||||||
|     def authenticate(self, request: Request) -> Union[Tuple[User, Any], None]: |     def authenticate(self, request: Request) -> Union[Tuple[User, Any], None]: | ||||||
| @ -54,4 +55,4 @@ class PassbookTokenAuthentication(BaseAuthentication): | |||||||
|         return (token.user, None) |         return (token.user, None) | ||||||
| 
 | 
 | ||||||
|     def authenticate_header(self, request: Request) -> str: |     def authenticate_header(self, request: Request) -> str: | ||||||
|         return 'Basic realm="passbook"' |         return 'Basic realm="authentik"' | ||||||
							
								
								
									
										31
									
								
								authentik/api/pagination.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								authentik/api/pagination.py
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,31 @@ | |||||||
|  | """Pagination which includes total pages and current page""" | ||||||
|  | from rest_framework import pagination | ||||||
|  | from rest_framework.response import Response | ||||||
|  |  | ||||||
|  |  | ||||||
|  | class Pagination(pagination.PageNumberPagination): | ||||||
|  |     """Pagination which includes total pages and current page""" | ||||||
|  |  | ||||||
|  |     page_size_query_param = "page_size" | ||||||
|  |  | ||||||
|  |     def get_paginated_response(self, data): | ||||||
|  |         previous_page_number = 0 | ||||||
|  |         if self.page.has_previous(): | ||||||
|  |             previous_page_number = self.page.previous_page_number() | ||||||
|  |         next_page_number = 0 | ||||||
|  |         if self.page.has_next(): | ||||||
|  |             next_page_number = self.page.next_page_number() | ||||||
|  |         return Response( | ||||||
|  |             { | ||||||
|  |                 "pagination": { | ||||||
|  |                     "next": next_page_number, | ||||||
|  |                     "previous": previous_page_number, | ||||||
|  |                     "count": self.page.paginator.count, | ||||||
|  |                     "current": self.page.number, | ||||||
|  |                     "total_pages": self.page.paginator.num_pages, | ||||||
|  |                     "start_index": self.page.start_index(), | ||||||
|  |                     "end_index": self.page.end_index(), | ||||||
|  |                 }, | ||||||
|  |                 "results": data, | ||||||
|  |             } | ||||||
|  |         ) | ||||||
| @ -2,6 +2,6 @@ | |||||||
| 
 | 
 | ||||||
| {% block branding %} | {% block branding %} | ||||||
| <span class='navbar-brand'> | <span class='navbar-brand'> | ||||||
|     passbook |     authentik | ||||||
| </span> | </span> | ||||||
| {% endblock %} | {% endblock %} | ||||||
							
								
								
									
										37
									
								
								authentik/api/tests.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								authentik/api/tests.py
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,37 @@ | |||||||
|  | """Test API Authentication""" | ||||||
|  | from base64 import b64encode | ||||||
|  |  | ||||||
|  | from django.test import TestCase | ||||||
|  | from guardian.shortcuts import get_anonymous_user | ||||||
|  |  | ||||||
|  | from authentik.api.auth import token_from_header | ||||||
|  | from authentik.core.models import Token, TokenIntents | ||||||
|  |  | ||||||
|  |  | ||||||
|  | class TestAPIAuth(TestCase): | ||||||
|  |     """Test API Authentication""" | ||||||
|  |  | ||||||
|  |     def test_valid(self): | ||||||
|  |         """Test valid token""" | ||||||
|  |         token = Token.objects.create( | ||||||
|  |             intent=TokenIntents.INTENT_API, user=get_anonymous_user() | ||||||
|  |         ) | ||||||
|  |         auth = b64encode(f":{token.key}".encode()).decode() | ||||||
|  |         self.assertEqual(token_from_header(f"Basic {auth}".encode()), token) | ||||||
|  |  | ||||||
|  |     def test_invalid_type(self): | ||||||
|  |         """Test invalid type""" | ||||||
|  |         self.assertIsNone(token_from_header("foo bar".encode())) | ||||||
|  |  | ||||||
|  |     def test_invalid_decode(self): | ||||||
|  |         """Test invalid bas64""" | ||||||
|  |         self.assertIsNone(token_from_header("Basic bar".encode())) | ||||||
|  |  | ||||||
|  |     def test_invalid_empty_password(self): | ||||||
|  |         """Test invalid with empty password""" | ||||||
|  |         self.assertIsNone(token_from_header("Basic :".encode())) | ||||||
|  |  | ||||||
|  |     def test_invalid_no_token(self): | ||||||
|  |         """Test invalid with no token""" | ||||||
|  |         auth = b64encode(":abc".encode()).decode() | ||||||
|  |         self.assertIsNone(token_from_header(f"Basic :{auth}".encode())) | ||||||
| @ -1,7 +1,7 @@ | |||||||
| """passbook api urls""" | """authentik api urls""" | ||||||
| from django.urls import include, path | from django.urls import include, path | ||||||
| 
 | 
 | ||||||
| from passbook.api.v2.urls import urlpatterns as v2_urls | from authentik.api.v2.urls import urlpatterns as v2_urls | ||||||
| 
 | 
 | ||||||
| urlpatterns = [ | urlpatterns = [ | ||||||
|     path("v2beta/", include(v2_urls)), |     path("v2beta/", include(v2_urls)), | ||||||
							
								
								
									
										46
									
								
								authentik/api/v2/config.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								authentik/api/v2/config.py
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,46 @@ | |||||||
|  | """core Configs API""" | ||||||
|  | from drf_yasg2.utils import swagger_auto_schema | ||||||
|  | from rest_framework.permissions import AllowAny | ||||||
|  | from rest_framework.request import Request | ||||||
|  | from rest_framework.response import Response | ||||||
|  | from rest_framework.serializers import ReadOnlyField, Serializer | ||||||
|  | from rest_framework.viewsets import ViewSet | ||||||
|  |  | ||||||
|  | from authentik.lib.config import CONFIG | ||||||
|  |  | ||||||
|  |  | ||||||
|  | class ConfigSerializer(Serializer): | ||||||
|  |     """Serialize authentik Config into DRF Object""" | ||||||
|  |  | ||||||
|  |     branding_logo = ReadOnlyField() | ||||||
|  |     branding_title = ReadOnlyField() | ||||||
|  |  | ||||||
|  |     error_reporting_enabled = ReadOnlyField() | ||||||
|  |     error_reporting_environment = ReadOnlyField() | ||||||
|  |     error_reporting_send_pii = ReadOnlyField() | ||||||
|  |  | ||||||
|  |     def create(self, request: Request) -> Response: | ||||||
|  |         raise NotImplementedError | ||||||
|  |  | ||||||
|  |     def update(self, request: Request) -> Response: | ||||||
|  |         raise NotImplementedError | ||||||
|  |  | ||||||
|  |  | ||||||
|  | class ConfigsViewSet(ViewSet): | ||||||
|  |     """Read-only view set that returns the current session's Configs""" | ||||||
|  |  | ||||||
|  |     permission_classes = [AllowAny] | ||||||
|  |  | ||||||
|  |     @swagger_auto_schema(responses={200: ConfigSerializer(many=True)}) | ||||||
|  |     def list(self, request: Request) -> Response: | ||||||
|  |         """Retrive public configuration options""" | ||||||
|  |         config = ConfigSerializer( | ||||||
|  |             { | ||||||
|  |                 "branding_logo": CONFIG.y("authentik.branding.logo"), | ||||||
|  |                 "branding_title": CONFIG.y("authentik.branding.title"), | ||||||
|  |                 "error_reporting_enabled": CONFIG.y("error_reporting.enabled"), | ||||||
|  |                 "error_reporting_environment": CONFIG.y("error_reporting.environment"), | ||||||
|  |                 "error_reporting_send_pii": CONFIG.y("error_reporting.send_pii"), | ||||||
|  |             } | ||||||
|  |         ) | ||||||
|  |         return Response(config.data) | ||||||
| @ -5,58 +5,63 @@ from drf_yasg2.views import get_schema_view | |||||||
| from rest_framework import routers | from rest_framework import routers | ||||||
| from rest_framework.permissions import AllowAny | from rest_framework.permissions import AllowAny | ||||||
| 
 | 
 | ||||||
| from passbook.admin.api.overview import AdministrationOverviewViewSet | from authentik.admin.api.overview import AdministrationOverviewViewSet | ||||||
| from passbook.admin.api.overview_metrics import AdministrationMetricsViewSet | from authentik.admin.api.overview_metrics import AdministrationMetricsViewSet | ||||||
| from passbook.admin.api.tasks import TaskViewSet | from authentik.admin.api.tasks import TaskViewSet | ||||||
| from passbook.api.v2.messages import MessagesViewSet | from authentik.api.v2.config import ConfigsViewSet | ||||||
| from passbook.audit.api import EventViewSet | from authentik.api.v2.messages import MessagesViewSet | ||||||
| from passbook.core.api.applications import ApplicationViewSet | from authentik.audit.api import EventViewSet | ||||||
| from passbook.core.api.groups import GroupViewSet | from authentik.core.api.applications import ApplicationViewSet | ||||||
| from passbook.core.api.propertymappings import PropertyMappingViewSet | from authentik.core.api.groups import GroupViewSet | ||||||
| from passbook.core.api.providers import ProviderViewSet | from authentik.core.api.propertymappings import PropertyMappingViewSet | ||||||
| from passbook.core.api.sources import SourceViewSet | from authentik.core.api.providers import ProviderViewSet | ||||||
| from passbook.core.api.tokens import TokenViewSet | from authentik.core.api.sources import SourceViewSet | ||||||
| from passbook.core.api.users import UserViewSet | from authentik.core.api.tokens import TokenViewSet | ||||||
| from passbook.crypto.api import CertificateKeyPairViewSet | from authentik.core.api.users import UserViewSet | ||||||
| from passbook.flows.api import FlowStageBindingViewSet, FlowViewSet, StageViewSet | from authentik.crypto.api import CertificateKeyPairViewSet | ||||||
| from passbook.outposts.api import ( | from authentik.flows.api import FlowStageBindingViewSet, FlowViewSet, StageViewSet | ||||||
|  | from authentik.outposts.api import ( | ||||||
|     DockerServiceConnectionViewSet, |     DockerServiceConnectionViewSet, | ||||||
|     KubernetesServiceConnectionViewSet, |     KubernetesServiceConnectionViewSet, | ||||||
|     OutpostViewSet, |     OutpostViewSet, | ||||||
| ) | ) | ||||||
| from passbook.policies.api import PolicyBindingViewSet, PolicyViewSet | from authentik.policies.api import PolicyBindingViewSet, PolicyViewSet | ||||||
| from passbook.policies.dummy.api import DummyPolicyViewSet | from authentik.policies.dummy.api import DummyPolicyViewSet | ||||||
| from passbook.policies.expiry.api import PasswordExpiryPolicyViewSet | from authentik.policies.expiry.api import PasswordExpiryPolicyViewSet | ||||||
| from passbook.policies.expression.api import ExpressionPolicyViewSet | from authentik.policies.expression.api import ExpressionPolicyViewSet | ||||||
| from passbook.policies.group_membership.api import GroupMembershipPolicyViewSet | from authentik.policies.group_membership.api import GroupMembershipPolicyViewSet | ||||||
| from passbook.policies.hibp.api import HaveIBeenPwendPolicyViewSet | from authentik.policies.hibp.api import HaveIBeenPwendPolicyViewSet | ||||||
| from passbook.policies.password.api import PasswordPolicyViewSet | from authentik.policies.password.api import PasswordPolicyViewSet | ||||||
| from passbook.policies.reputation.api import ReputationPolicyViewSet | from authentik.policies.reputation.api import ReputationPolicyViewSet | ||||||
| from passbook.providers.oauth2.api import OAuth2ProviderViewSet, ScopeMappingViewSet | from authentik.providers.oauth2.api import OAuth2ProviderViewSet, ScopeMappingViewSet | ||||||
| from passbook.providers.proxy.api import ProxyOutpostConfigViewSet, ProxyProviderViewSet | from authentik.providers.proxy.api import ( | ||||||
| from passbook.providers.saml.api import SAMLPropertyMappingViewSet, SAMLProviderViewSet |     ProxyOutpostConfigViewSet, | ||||||
| from passbook.sources.ldap.api import LDAPPropertyMappingViewSet, LDAPSourceViewSet |     ProxyProviderViewSet, | ||||||
| from passbook.sources.oauth.api import OAuthSourceViewSet | ) | ||||||
| from passbook.sources.saml.api import SAMLSourceViewSet | from authentik.providers.saml.api import SAMLPropertyMappingViewSet, SAMLProviderViewSet | ||||||
| from passbook.stages.captcha.api import CaptchaStageViewSet | from authentik.sources.ldap.api import LDAPPropertyMappingViewSet, LDAPSourceViewSet | ||||||
| from passbook.stages.consent.api import ConsentStageViewSet | from authentik.sources.oauth.api import OAuthSourceViewSet | ||||||
| from passbook.stages.dummy.api import DummyStageViewSet | from authentik.sources.saml.api import SAMLSourceViewSet | ||||||
| from passbook.stages.email.api import EmailStageViewSet | from authentik.stages.captcha.api import CaptchaStageViewSet | ||||||
| from passbook.stages.identification.api import IdentificationStageViewSet | from authentik.stages.consent.api import ConsentStageViewSet | ||||||
| from passbook.stages.invitation.api import InvitationStageViewSet, InvitationViewSet | from authentik.stages.dummy.api import DummyStageViewSet | ||||||
| from passbook.stages.otp_static.api import OTPStaticStageViewSet | from authentik.stages.email.api import EmailStageViewSet | ||||||
| from passbook.stages.otp_time.api import OTPTimeStageViewSet | from authentik.stages.identification.api import IdentificationStageViewSet | ||||||
| from passbook.stages.otp_validate.api import OTPValidateStageViewSet | from authentik.stages.invitation.api import InvitationStageViewSet, InvitationViewSet | ||||||
| from passbook.stages.password.api import PasswordStageViewSet | from authentik.stages.otp_static.api import OTPStaticStageViewSet | ||||||
| from passbook.stages.prompt.api import PromptStageViewSet, PromptViewSet | from authentik.stages.otp_time.api import OTPTimeStageViewSet | ||||||
| from passbook.stages.user_delete.api import UserDeleteStageViewSet | from authentik.stages.otp_validate.api import OTPValidateStageViewSet | ||||||
| from passbook.stages.user_login.api import UserLoginStageViewSet | from authentik.stages.password.api import PasswordStageViewSet | ||||||
| from passbook.stages.user_logout.api import UserLogoutStageViewSet | from authentik.stages.prompt.api import PromptStageViewSet, PromptViewSet | ||||||
| from passbook.stages.user_write.api import UserWriteStageViewSet | from authentik.stages.user_delete.api import UserDeleteStageViewSet | ||||||
|  | from authentik.stages.user_login.api import UserLoginStageViewSet | ||||||
|  | from authentik.stages.user_logout.api import UserLogoutStageViewSet | ||||||
|  | from authentik.stages.user_write.api import UserWriteStageViewSet | ||||||
| 
 | 
 | ||||||
| router = routers.DefaultRouter() | router = routers.DefaultRouter() | ||||||
| 
 | 
 | ||||||
| router.register("root/messages", MessagesViewSet, basename="messages") | router.register("root/messages", MessagesViewSet, basename="messages") | ||||||
|  | router.register("root/config", ConfigsViewSet, basename="configs") | ||||||
| 
 | 
 | ||||||
| router.register( | router.register( | ||||||
|     "admin/overview", AdministrationOverviewViewSet, basename="admin_overview" |     "admin/overview", AdministrationOverviewViewSet, basename="admin_overview" | ||||||
| @ -129,7 +134,7 @@ router.register("stages/dummy", DummyStageViewSet) | |||||||
| router.register("policies/dummy", DummyPolicyViewSet) | router.register("policies/dummy", DummyPolicyViewSet) | ||||||
| 
 | 
 | ||||||
| info = openapi.Info( | info = openapi.Info( | ||||||
|     title="passbook API", |     title="authentik API", | ||||||
|     default_version="v2", |     default_version="v2", | ||||||
|     contact=openapi.Contact(email="hello@beryju.org"), |     contact=openapi.Contact(email="hello@beryju.org"), | ||||||
|     license=openapi.License(name="MIT License"), |     license=openapi.License(name="MIT License"), | ||||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user
	