Skip to content

Commit

Permalink
Added scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
arcshiftsolutions committed May 1, 2024
1 parent c2b1652 commit 8cd5cd2
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tools/config/update-configmap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,27 @@ curl -sX POST "https://$SOAM_KC/auth/admin/realms/$SOAM_KC_REALM_ID/client-scope
-H "Authorization: Bearer $TKN" \
-d "{\"description\": \"Delete scope for district address\",\"id\": \"DELETE_DISTRICT_ADDRESS\",\"name\": \"DELETE_DISTRICT_ADDRESS\",\"protocol\": \"openid-connect\",\"attributes\" : {\"include.in.token.scope\" : \"true\",\"display.on.consent.screen\" : \"false\"}}"

echo
echo Writing scope READ_SCHOOL_FUNDING_GROUP
curl -sX POST "https://$SOAM_KC/auth/admin/realms/$SOAM_KC_REALM_ID/client-scopes" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TKN" \
-d "{\"description\": \"Read Independent School Funding Group\",\"id\": \"READ_SCHOOL_FUNDING_GROUP\",\"name\": \"READ_SCHOOL_FUNDING_GROUP\",\"protocol\": \"openid-connect\",\"attributes\" : {\"include.in.token.scope\" : \"true\",\"display.on.consent.screen\" : \"false\"}}"

echo
echo Writing scope WRITE_SCHOOL_FUNDING_GROUP
curl -sX POST "https://$SOAM_KC/auth/admin/realms/$SOAM_KC_REALM_ID/client-scopes" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TKN" \
-d "{\"description\": \"Write Independent School Funding Group\",\"id\": \"WRITE_SCHOOL_FUNDING_GROUP\",\"name\": \"WRITE_SCHOOL_FUNDING_GROUP\",\"protocol\": \"openid-connect\",\"attributes\" : {\"include.in.token.scope\" : \"true\",\"display.on.consent.screen\" : \"false\"}}"

echo
echo Delete scope DELETE_SCHOOL_FUNDING_GROUP
curl -sX POST "https://$SOAM_KC/auth/admin/realms/$SOAM_KC_REALM_ID/client-scopes" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TKN" \
-d "{\"description\": \"Delete Independent School Funding Group\",\"id\": \"DELETE_SCHOOL_FUNDING_GROUP\",\"name\": \"DELETE_SCHOOL_FUNDING_GROUP\",\"protocol\": \"openid-connect\",\"attributes\" : {\"include.in.token.scope\" : \"true\",\"display.on.consent.screen\" : \"false\"}}"

echo
echo Writing scope READ_DISTRICT_NOTE
curl -sX POST "https://$SOAM_KC/auth/admin/realms/$SOAM_KC_REALM_ID/client-scopes" \
Expand Down

0 comments on commit 8cd5cd2

Please sign in to comment.