-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of https://github.com/bcgov/api-services-portal in…
…to dev
- Loading branch information
Showing
13 changed files
with
2,867 additions
and
2,054 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
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
WORKING_PATH=/tmp | ||
DESTINATION_URL=http://apsportal.localtest.me:3000 | ||
KONG_ADMIN_URL=http://kong.localtest.me:8001 |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
entity: User | ||
record: | ||
id: 'local' | ||
name: 'local F local L' | ||
email: '[email protected]' | ||
isAdmin: false |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
entity: User | ||
record: | ||
id: 'awsummer@idir' | ||
name: 'Awesome Summers' | ||
email: '[email protected]' | ||
isAdmin: false |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
apk add --no-cache curl | ||
cd /tmp | ||
|
||
while true; do | ||
keycloakstatus=$(curl -o /dev/null -Isw '%{http_code}\n' http://keycloak.localtest.me:9080/auth/realms/master) | ||
echo "$keycloakstatus" | ||
if [[ "$keycloakstatus" == "200" ]]; then | ||
echo "Keycloak is up" | ||
curl http://feeder.localtest.me:6000/push -F [email protected] | ||
curl http://feeder.localtest.me:6000/push -F [email protected] | ||
curl http://feeder.localtest.me:6000/push -F [email protected] | ||
curl http://feeder.localtest.me:6000/push -F [email protected] | ||
curl http://feeder.localtest.me:6000/push -F [email protected] | ||
break | ||
else | ||
echo "Waiting for Keycloak....." | ||
sleep 2m | ||
fi | ||
done | ||
|
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
entity: Legal | ||
record: | ||
id: "terms-of-use-for-api-gateway-1" | ||
title: "Terms of Use for API Gateway" | ||
link: "https://www2.gov.bc.ca/gov/content/data/open-data/api-terms-of-use-for-ogl-information" | ||
document: terms-of-use | ||
version: 1 |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
entity: CredentialIssuer | ||
record: | ||
id: 'Gateway Services Resource Server' | ||
namespace: platform | ||
description: 'Authorization Profile for protecting the Gateway Services API' | ||
flow: client-credentials | ||
mode: auto | ||
clientAuthenticator: client-secret | ||
authPlugin: jwt-keycloak | ||
clientRoles: [] | ||
availableScopes: [] | ||
resourceType: platform | ||
resourceAccessScope: Namespace.Manage | ||
resourceScopes: | ||
- Namespace.Manage | ||
- Namespace.View | ||
- Access.Manage | ||
- GatewayConfig.Publish | ||
- Content.Publish | ||
owner: awsummer@idir | ||
environmentDetails: | ||
- environment: prod | ||
issuerUrl: http://keycloak.localtest.me:9080/auth/realms/master | ||
clientId: gwa-api | ||
clientRegistration: managed | ||
clientSecret: '18900468-3db1-43f7-a8af-e75f079eb742' |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
entity: Product | ||
record: | ||
id: 748D98F1F56C | ||
name: Gateway Services API | ||
namespace: platform | ||
environments: | ||
- id: E0000000 | ||
name: prod | ||
active: true | ||
approval: true | ||
flow: client-credentials | ||
legal: terms-of-use-for-api-gateway-1 | ||
services: [] | ||
credentialIssuer: 'Gateway Services Resource Server' |
Oops, something went wrong.