Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

Commit

Permalink
backend: update auth config
Browse files Browse the repository at this point in the history
  • Loading branch information
ozfox committed Jun 12, 2024
1 parent 028ad91 commit d879b9f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 53 deletions.
18 changes: 0 additions & 18 deletions web_backend/src/main/java/authorization/AdminResource.java

This file was deleted.

34 changes: 0 additions & 34 deletions web_backend/src/main/java/authorization/UsersResource.java

This file was deleted.

11 changes: 10 additions & 1 deletion web_backend/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,20 @@ quarkus.http.cors.origins=*
## OIDC Configuration
quarkus.oidc.auth-server-url=http://localhost:4000/kc/realms/teamagochi
quarkus.oidc.client-id=teamagochi-backend
quarkus.oidc.credentials.secret=9I0F8oZ7UHIzTzMm4FgLMfgSmId9L8T5
quarkus.oidc.credentials.secret=5DACLJH84KTWBG22UpdnS9DSjVCIu5zB
quarkus.oidc.tls.verification=none

## Enable Policy Enforcement
quarkus.keycloak.policy-enforcer.enable=true
quarkus.keycloak.policy-enforcer.enforcement-mode=ENFORCING
quarkus.keycloak.policy-enforcer.lazy-load-paths=true

## Policy rules
## For enforcement modes, see https://www.keycloak.org/docs/latest/authorization_services/#resource_server_settings.
quarkus.keycloak.policy-enforcer.paths.q.paths=/q/*
quarkus.keycloak.policy-enforcer.paths.q.enforcement-mode=DISABLED
#%dev.quarkus.keycloak.policy-enforcer.paths.admin.paths=/api/v1/*
#%dev.quarkus.keycloak.policy-enforcer.paths.admin.enforcement-mode=ENFORCING

# Services
quarkus.rest.path=/api
Expand Down

0 comments on commit d879b9f

Please sign in to comment.