Skip to content

Commit

Permalink
withoutkeycloak
Browse files Browse the repository at this point in the history
  • Loading branch information
lanchii committed Oct 1, 2024
1 parent e7216b1 commit 6fcf11c
Show file tree
Hide file tree
Showing 18 changed files with 1,141 additions and 175 deletions.
7 changes: 1 addition & 6 deletions app/backend/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class EventResource {
@Inject
EventDao eventDao;

@PermitAll
/* @PermitAll
@GET
// @RolesAllowed("partytiga")
public Response all(@Context SecurityContext ctx) {
Expand All @@ -39,7 +39,7 @@ public Response all(@Context SecurityContext ctx) {
var events = eventDao.all();
return Response.ok(events).build();
//jwt.claim(Claims.groups);
}
}*/

@POST
@Transactional
Expand Down
1 change: 1 addition & 0 deletions app/backend/target/classes/META-INF/panache-archive.marker
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file is a marker, it exists to tell Quarkus that this archive has a dependency on Panache, and may need to be transformed at build time
285 changes: 285 additions & 0 deletions app/backend/target/classes/META-INF/resources/index.html

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions app/backend/target/classes/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
quarkus.http.root-path=/api
quarkus.package.type=uber-jar

quarkus.http.host = 127.0.0.1

quarkus.devservices.enabled=false

quarkus.datasource.db-kind=postgresql
quarkus.datasource.username=party
quarkus.datasource.password=party
quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/party
%prod.quarkus.datasource.jdbc.url=jdbc:postgresql://postgres:5432/party
#quarkus.datasource.reactive.url = vertx-reactive:postgresql://localhost:5432/mydatabase

quarkus.hibernate-orm.database.generation=none
%dev.quarkus.hibernate-orm.database.generation=drop-and-create
quarkus.hibernate-orm.database.generation.halt-on-error=false
quarkus.hibernate-orm.sql-load-script=db/import.sql

quarkus.datasource.devservices.enabled=false
quarkus.hibernate-orm.log.sql=true
quarkus.http.access-log.enabled=true

# Required issuer
# mp.jwt.verify.issuer=https://partytiga.hopto.org/realms/party

# OIDC Configuration
quarkus.oidc.auth-server-url=https://partytiga.hopto.org/realms/party
quarkus.oidc.client-id=backend
quarkus.oidc.credentials.secret=5DDD17ZGekP4cpW1KIds7BkL2XEmQqqs
quarkus.oidc.tls.verification=none

# Enable Policy Enforcement
#quarkus.keycloak.policy-enforcer.enable=true

# Tell Dev Services for Keycloak to import the realm file
# This property is not effective when running the application in JVM or native modes
quarkus.keycloak.devservices.realm-path=quarkus-realm.json

quarkus.keycloak.policy-enforcer.lazy-load-paths=false

quarkus.keycloak.policy-enforcer.paths.1.path=/api/events
quarkus.keycloak.policy-enforcer.paths.1.enforcement-mode=DISABLED

quarkus.keycloak.policy-enforcer.enable=true
quarkus.keycloak.policy-enforcer.enforcement-mode=enforcing

# quarkus.keycloak.policy-enforcer.http-method-as-scope=true
Empty file.
Binary file not shown.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6fcf11c

Please sign in to comment.