Skip to content

Commit

Permalink
feat: adjusted permission (#67)
Browse files Browse the repository at this point in the history
* feat: adjusted permission

* fix: api

* feat: update docs
  • Loading branch information
JordenReuter authored Oct 14, 2024
1 parent 65ff50c commit f53c6b8
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ app:
enabled: true
spec:
permissions:
user-profile:
userProfile:
read: permission on all GET requests and POST search
write: permission on PUT, POST, PATCH requests, where objects are saved or updated
delete: permission on all DELETE requests
Expand All @@ -80,3 +80,4 @@ app:
defaultClientScopes: [ ocx-up:all, ocx-pm:read ]
----


Original file line number Diff line number Diff line change
Expand Up @@ -47,32 +47,32 @@ h| Version
| tkit-quarkus-log-cdi
| https://1000kit.github.io/tkit-quarkus/current/tkit-quarkus/tkit-quarkus-log-cdi.html[Link]
| https://github.com/1000kit/tkit-quarkus/blob/2.33.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-log-cdi.adoc[Link]
| 2.33.0
| https://github.com/1000kit/tkit-quarkus/blob/2.36.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-log-cdi.adoc[Link]
| 2.36.0
| tkit-quarkus-log-rs
| https://1000kit.github.io/tkit-quarkus/current/tkit-quarkus/tkit-quarkus-log-rs.html[Link]
| https://github.com/1000kit/tkit-quarkus/blob/2.33.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-log-rs.adoc[Link]
| 2.33.0
| https://github.com/1000kit/tkit-quarkus/blob/2.36.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-log-rs.adoc[Link]
| 2.36.0
| tkit-quarkus-log-json
| https://1000kit.github.io/tkit-quarkus/current/tkit-quarkus/tkit-quarkus-log-json.html[Link]
| https://github.com/1000kit/tkit-quarkus/blob/2.33.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-log-json.adoc[Link]
| 2.33.0
| https://github.com/1000kit/tkit-quarkus/blob/2.36.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-log-json.adoc[Link]
| 2.36.0
| tkit-quarkus-rest
| https://1000kit.github.io/tkit-quarkus/current/tkit-quarkus/tkit-quarkus-rest.html[Link]
| https://github.com/1000kit/tkit-quarkus/blob/2.33.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-rest.adoc[Link]
| 2.33.0
| https://github.com/1000kit/tkit-quarkus/blob/2.36.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-rest.adoc[Link]
| 2.36.0
| tkit-quarkus-jpa
| https://1000kit.github.io/tkit-quarkus/current/tkit-quarkus/tkit-quarkus-jpa.html[Link]
| https://github.com/1000kit/tkit-quarkus/blob/2.33.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-jpa.adoc[Link]
| 2.33.0
| https://github.com/1000kit/tkit-quarkus/blob/2.36.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-jpa.adoc[Link]
| 2.36.0
| quarkus-hibernate-validator
Expand All @@ -83,14 +83,14 @@ h| Version
| tkit-quarkus-rest-context
| https://1000kit.github.io/tkit-quarkus/current/tkit-quarkus/tkit-quarkus-rest-context.html[Link]
| https://github.com/1000kit/tkit-quarkus/blob/2.33.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-rest-context.adoc[Link]
| 2.33.0
| https://github.com/1000kit/tkit-quarkus/blob/2.36.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-rest-context.adoc[Link]
| 2.36.0
| onecx-permissions
| https://onecx.github.io/docs/onecx-quarkus/current/onecx-quarkus/onecx-permissions.html[Link]
| https://github.com/onecx/onecx-quarkus/blob/0.31.0/docs/modules/onecx-quarkus/pages/includes/onecx-permissions.adoc[Link]
| 0.31.0
| https://github.com/onecx/onecx-quarkus/blob/0.32.0/docs/modules/onecx-quarkus/pages/includes/onecx-permissions.adoc[Link]
| 0.32.0
| quarkus-oidc
Expand All @@ -101,14 +101,14 @@ h| Version
| tkit-quarkus-security
| https://1000kit.github.io/tkit-quarkus/current/tkit-quarkus/tkit-quarkus-security.html[Link]
| https://github.com/1000kit/tkit-quarkus/blob/2.33.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-security.adoc[Link]
| 2.33.0
| https://github.com/1000kit/tkit-quarkus/blob/2.36.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-security.adoc[Link]
| 2.36.0
| onecx-core
| https://onecx.github.io/docs/onecx-quarkus/current/onecx-quarkus/onecx-core.html[Link]
|
| 0.31.0
| 0.32.0
| quarkus-micrometer-registry-prometheus
Expand Down
2 changes: 1 addition & 1 deletion src/main/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ app:
enabled: true
spec:
permissions:
user-profile:
userProfile:
read: permission on all GET requests and POST search
write: permission on PUT, POST, PATCH requests, where objects are saved or updated
delete: permission on all DELETE requests
Expand Down
34 changes: 17 additions & 17 deletions src/main/openapi/openapi-bff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ paths:
get:
x-onecx:
permissions:
user-profile:
userProfile:
- read
tags:
- userProfile
Expand All @@ -37,7 +37,7 @@ paths:
delete:
x-onecx:
permissions:
user-profile:
userProfile:
- delete
tags:
- userProfile
Expand All @@ -56,7 +56,7 @@ paths:
get:
x-onecx:
permissions:
user-profile:
userProfile:
- read
tags:
- userProfile
Expand All @@ -78,7 +78,7 @@ paths:
post:
x-onecx:
permissions:
user-profile:
userProfile:
- write
tags:
- userProfile
Expand Down Expand Up @@ -113,7 +113,7 @@ paths:
patch:
x-onecx:
permissions:
user-profile:
userProfile:
- write
tags:
- userProfile
Expand Down Expand Up @@ -145,7 +145,7 @@ paths:
delete:
x-onecx:
permissions:
user-profile:
userProfile:
- delete
tags:
- userProfile
Expand All @@ -166,7 +166,7 @@ paths:
get:
x-onecx:
permissions:
user-profile:
userProfile:
- read
tags:
- userProfile
Expand All @@ -188,7 +188,7 @@ paths:
put:
x-onecx:
permissions:
user-profile:
userProfile:
- write
tags:
- userProfile
Expand Down Expand Up @@ -217,7 +217,7 @@ paths:
get:
x-onecx:
permissions:
user-profile:
userProfile:
- read
tags:
- userProfile
Expand All @@ -239,7 +239,7 @@ paths:
put:
x-onecx:
permissions:
user-profile:
userProfile:
- write
tags:
- userProfile
Expand Down Expand Up @@ -268,7 +268,7 @@ paths:
get:
x-onecx:
permissions:
user-profile:
userProfile:
- read
tags:
- userAvatar
Expand All @@ -295,7 +295,7 @@ paths:
post:
x-onecx:
permissions:
user-profile:
userProfile:
- write
tags:
- userAvatar
Expand Down Expand Up @@ -332,7 +332,7 @@ paths:
delete:
x-onecx:
permissions:
user-profile:
userProfile:
- delete
tags:
- userAvatar
Expand All @@ -351,7 +351,7 @@ paths:
post:
x-onecx:
permissions:
user-profile:
userProfile:
- read
tags:
- userProfileAdmin
Expand Down Expand Up @@ -380,7 +380,7 @@ paths:
get:
x-onecx:
permissions:
user-profile:
userProfile:
- read
tags:
- userProfileAdmin
Expand All @@ -400,7 +400,7 @@ paths:
put:
x-onecx:
permissions:
user-profile:
userProfile:
- write
tags:
- userProfileAdmin
Expand Down Expand Up @@ -428,7 +428,7 @@ paths:
delete:
x-onecx:
permissions:
user-profile:
userProfile:
- delete
tags:
- userProfileAdmin
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/mockserver/permissions.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"json": {
"appId": "onecx-user-profile-bff",
"permissions": {
"user-profile": ["read", "write", "delete"],
"userProfile": ["read", "write", "delete"],
"permissions": ["admin-write","admin-read"]
}
},
Expand All @@ -35,7 +35,7 @@
"json": {
"appId": "onecx-user-profile-bff",
"permissions": {
"user-profile": ["read"],
"userProfile": ["read"],
"permissions": ["admin-write","admin-read"]
}
},
Expand Down

0 comments on commit f53c6b8

Please sign in to comment.