Skip to content

Commit fe3e52e

Browse files
authored
fix: include scope when requesting ppid token (#469)
1 parent ae37451 commit fe3e52e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docker/keycloak/extensions-26/services/src/main/java/com/github/bcgov/keycloak/common/PPID.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ private static void fetchNewToken() {
4949
formparams.add(new BasicNameValuePair("grant_type", "client_credentials"));
5050
formparams.add(new BasicNameValuePair("client_id", applicationProperties.getPPIDClientID()));
5151
formparams.add(new BasicNameValuePair("client_secret", applicationProperties.getPPIDClientSecret()));
52+
formparams.add(new BasicNameValuePair("scope", "ppids-api"));
5253

5354
try {
5455
UrlEncodedFormEntity form = new UrlEncodedFormEntity(formparams, StandardCharsets.UTF_8);

localdev/macs/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: '3.8'
33
services:
44
keycloak:
55
container_name: keycloak
6-
image: sso-keycloak:26.0
6+
image: sso-keycloak:26.2-4
77
command: start-dev
88
depends_on:
99
- postgres
@@ -27,7 +27,7 @@ services:
2727
PPID_CLIENT_SECRET:
2828
PPID_API_URL: https://idsit.gov.bc.ca/iis-apis/v1/ppids
2929
volumes:
30-
- ../../docker/keycloak/extensions-24/themes/src/main/resources/theme:/opt/keycloak/themes/
30+
- ../../docker/keycloak/extensions-26/themes/src/main/resources/theme:/opt/keycloak/themes/
3131

3232
postgres:
3333
image: postgres:15

0 commit comments

Comments
 (0)