Skip to content

Commit

Permalink
feat: Add auth via OAUTH2 (#321)
Browse files Browse the repository at this point in the history
* feat: Add auth via OAUTH2

* feat: Make auth endpoints part of AuthHandler
  • Loading branch information
ayushjain17 authored and Datron committed Jan 9, 2025
1 parent cea143a commit eb2212d
Show file tree
Hide file tree
Showing 27 changed files with 1,407 additions and 73 deletions.
8 changes: 7 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ ACTIX_KEEP_ALIVE=120
MAX_DB_CONNECTION_POOL_SIZE=3
ENABLE_TENANT_AND_SCOPE=true
TENANTS=dev,test
TENANT_MIDDLEWARE_EXCLUSION_LIST="/health,/assets/favicon.ico,/pkg/frontend.js,/pkg,/pkg/frontend_bg.wasm,/pkg/tailwind.css,/pkg/style.css,/assets,/admin,/"
TENANT_MIDDLEWARE_EXCLUSION_LIST="/health,/assets/favicon.ico,/pkg/frontend.js,/pkg,/pkg/frontend_bg.wasm,/pkg/tailwind.css,/pkg/style.css,/assets,/admin,/oidc/login,/admin/organisations,/organisations,/organisations/switch/{organisation_id},/"
SERVICE_PREFIX=""
SERVICE_NAME="CAC"
AUTH_PROVIDER=DISABLED
## AUTH_PROVIDER=OIDC+http://localhost:8081/realms/users
OIDC_CLIENT_ID=superposition
OIDC_CLIENT_SECRET=superposition_secret
OIDC_TOKEN_ENDPOINT_FORMAT="http://localhost:8081/realms/<organisation>/protocol/openid-connect/token"
OIDC_ISSUER_ENDPOINT_FORMAT="http://http://localhost:8081/realms/<organisation>"
4 changes: 2 additions & 2 deletions .github/workflows/example_docker_image_gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
id: git_tag
shell: bash
run: |
docker_tag=`git tag -l --sort=-creatordate | grep "^v" | head -n 1 | sed 's/^v//'`
echo "docker_tag=$docker_tag" >> $GITHUB_OUTPUT
docker_tag=`git tag -l --sort=-creatordate | grep "^v" | head -n 1 | sed 's/^v//'`
echo "docker_tag=$docker_tag" >> $GITHUB_OUTPUT
- name: Login to Docker Hub
uses: docker/login-action@v3
Expand Down
Loading

0 comments on commit eb2212d

Please sign in to comment.