Skip to content

Commit

Permalink
Merge pull request #139 from Mahesh-Binayak/MOSIP-38435
Browse files Browse the repository at this point in the history
[MOSIP-38435]Added support for authentication (keycloak) in mock-plugin.
  • Loading branch information
ckm007 authored Jan 17, 2025
2 parents 47193ee + 3cba572 commit 4695b2a
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
2 changes: 2 additions & 0 deletions default.sh
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ onboard_mock_relying_party_with_mock_rp_oidc_client(){
--folder partner_request_mapping_to_policyname \
--folder approve-partner-mapping-to-policy \
--folder get-jwks \
--folder keycloak-authentication-for-mock-plugin \
--folder create-oidc-client \
--folder create-oidc-client-through-esignet \
--folder delete-user \
Expand Down Expand Up @@ -520,6 +521,7 @@ onboard_esignet_signup_oidc_partner(){
--env-var oidc-clientid="$OIDC_CLIENTID" \
--folder 'create_keycloak_user' \
--folder authenticate-to-upload-certs \
--folder keycloak-authentication-for-mock-plugin \
--folder create-oidc-client-through-esignet-signup \
--folder delete-user \
$ADD_SSL_NEWMAN \
Expand Down
46 changes: 44 additions & 2 deletions onboarding.postman_collection.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"info": {
"_postman_id": "db876b6f-3b70-4a09-abf8-e4a42dd64e17",
"_postman_id": "40683dc0-a030-404d-9a8d-e3e78ffd120b",
"name": "onboarding Copy",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "12620596"
Expand Down Expand Up @@ -2705,6 +2705,48 @@
},
"response": []
},
{
"name": "keycloak-authentication-for-mock-plugin",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "client_id",
"value": "mosip-pms-client",
"type": "text"
},
{
"key": "client_secret",
"value": "{{module-secretkey}}",
"type": "text"
},
{
"key": "grant_type",
"value": "client_credentials",
"type": "text"
}
]
},
"url": {
"raw": "{{keycloak-url}}/auth/realms/mosip/protocol/openid-connect/token",
"host": [
"{{keycloak-url}}"
],
"path": [
"auth",
"realms",
"mosip",
"protocol",
"openid-connect",
"token"
]
}
},
"response": []
},
{
"name": "create-oidc-client",
"event": [
Expand Down Expand Up @@ -3328,4 +3370,4 @@
}
}
]
}
}

0 comments on commit 4695b2a

Please sign in to comment.