-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement oAuth for Camunda Webapp (#433)
closes #367
- Loading branch information
Showing
43 changed files
with
1,506 additions
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
### Get Access Token | ||
POST http://keycloak:9090/auth/realms/miranum/protocol/openid-connect/token | ||
POST http://keycloak:9090/auth/realms/miragon/protocol/openid-connect/token | ||
Content-Type: application/x-www-form-urlencoded | ||
|
||
grant_type = password & | ||
client_secret = s3creT & | ||
client_id = miranum & | ||
client_id = inquiry & | ||
username = [email protected] & | ||
password = test | ||
|
||
|
@@ -30,8 +30,8 @@ Authorization: Bearer {{ access_token }} | |
%} | ||
|
||
|
||
### Get Group Tasks for group1 | ||
GET http://localhost:8083/rest/task/group/group1 | ||
### Get Group Tasks for sales-department | ||
GET http://localhost:8083/rest/task/group/sales-department | ||
Content-Type: application/json | ||
Authorization: Bearer {{ access_token }} | ||
|
||
|
@@ -41,13 +41,13 @@ Authorization: Bearer {{ access_token }} | |
%} | ||
|
||
|
||
### Claim Task for user alex.admin | ||
### Claim Task for user Alex Admin | ||
POST http://localhost:8083/rest/task/{{group_task_id}}/assign | ||
Content-Type: application/json | ||
Authorization: Bearer {{ access_token }} | ||
|
||
{ | ||
"assignee": "alex.admin" | ||
"assignee": "alex.admin@example.com" | ||
} | ||
|
||
|
||
|
@@ -63,7 +63,7 @@ Authorization: Bearer {{ access_token }} | |
} | ||
|
||
|
||
### Get assigned Tasks for user alex.admin | ||
### Get assigned Tasks for user Alex Admin | ||
GET http://localhost:8083/rest/task/user | ||
Content-Type: application/json | ||
Authorization: Bearer {{ access_token }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
MIRANUM_PROCESS_INTEGRATION_EXAMPLE_PORT=8084 | ||
WORKER_BACKOFF_STRATEGIE_DISABLED=true | ||
WORKER_BACKOFF_STRATEGIE_DISABLED=false | ||
|
||
# | ||
# SSO Settings / Keycloak | ||
# | ||
SSO_BASE_URL=http://keycloak:9090/auth | ||
SSO_REALM=miranum | ||
SSO_REALM=miragon | ||
SSO_ISSUER_URL=${SSO_BASE_URL}/realms/${SSO_REALM} | ||
SSO_WORKER_CLIENT_ID=miranum-worker | ||
SSO_WORKER_CLIENT_SECRET=s3creT | ||
SSO_INQUIRY_WORKER_CLIENT_ID=inquiry-worker | ||
SSO_INQUIRY_WORKER_CLIENT_SECRET=s3creT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<bpmn:outgoing>Flow_0mci6qe</bpmn:outgoing> | ||
</bpmn:startEvent> | ||
<bpmn:sequenceFlow id="Flow_0mci6qe" sourceRef="Event_12or2y7" targetRef="Activity_12rgiry" /> | ||
<bpmn:userTask id="Activity_12rgiry" name="Check Resources" camunda:modelerTemplate="io.miranum.basis-usertask"> | ||
<bpmn:userTask id="Activity_12rgiry" name="Check Resources" camunda:modelerTemplate="io.miranum.basis-usertask" camunda:candidateGroups="sales-department"> | ||
<bpmn:extensionElements> | ||
<camunda:inputOutput> | ||
<camunda:inputParameter name="miranum_task_form">check-resources</camunda:inputParameter> | ||
|
@@ -29,7 +29,7 @@ | |
<bpmn:incoming>Flow_066p5i1</bpmn:incoming> | ||
</bpmn:endEvent> | ||
<bpmn:sequenceFlow id="Flow_066p5i1" sourceRef="Activity_15vhg4s" targetRef="Event_1m92ie7" /> | ||
<bpmn:userTask id="Activity_0iahoe8" name="Create Offer" camunda:modelerTemplate="io.miranum.basis-usertask"> | ||
<bpmn:userTask id="Activity_0iahoe8" name="Create Offer" camunda:modelerTemplate="io.miranum.basis-usertask" camunda:candidateUsers="[email protected]"> | ||
<bpmn:extensionElements> | ||
<camunda:inputOutput> | ||
<camunda:inputParameter name="miranum_task_form">create-offer</camunda:inputParameter> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
...ples/single-deployment-unit-example/single-deployment-stack/keycloak/01_initial-realm.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
id: initial_realm | ||
author: Miranum | ||
author: Miragon | ||
changes: | ||
- addRealm: | ||
name: ${SSO_REALM} | ||
- addGroup: | ||
realm: ${SSO_REALM} | ||
name: group1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.