Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #303 from rolsonquadras/auth
Browse files Browse the repository at this point in the history
test: rename hub-auth to auth
  • Loading branch information
rolsonquadras authored Apr 21, 2022
2 parents 6aab1b7 + f5eb05c commit 5e26c00
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion scripts/generate_test_keys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ openssl req -new -x509 -key test/bdd/fixtures/keys/tls/ec-cakey.pem -subj "/C=CA

#create TLS credentials
openssl ecparam -name prime256v1 -genkey -noout -out test/bdd/fixtures/keys/tls/ec-key.pem
openssl req -new -key test/bdd/fixtures/keys/tls/ec-key.pem -subj "/C=CA/ST=ON/O=Example Inc.:hub-auth/OU=hub-auth/CN=localhost" -out test/bdd/fixtures/keys/tls/ec-key.csr
openssl req -new -key test/bdd/fixtures/keys/tls/ec-key.pem -subj "/C=CA/ST=ON/O=Example Inc.:auth/OU=auth/CN=localhost" -out test/bdd/fixtures/keys/tls/ec-key.csr
openssl x509 -req -in test/bdd/fixtures/keys/tls/ec-key.csr -CA test/bdd/fixtures/keys/tls/ec-cacert.pem -CAkey test/bdd/fixtures/keys/tls/ec-cakey.pem -CAcreateserial -extfile "$tmp" -out test/bdd/fixtures/keys/tls/ec-pubCert.pem -days 365

mkdir -p test/bdd/fixtures/keys/session_cookies
Expand Down
4 changes: 2 additions & 2 deletions test/bdd/fixtures/.env
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

KMS_SERVER_IMAGE=ghcr.io/trustbloc/kms

AUTH_REST_IMAGE=ghcr.io/trustbloc/hub-auth
AUTH_REST_IMAGE_TAG=0.1.8
AUTH_REST_IMAGE=ghcr.io/trustbloc-cicd/auth
AUTH_REST_IMAGE_TAG=0.1.9-snapshot-15ed894

HYDRA_IMAGE_TAG=v1.3.2-alpine
MYSQL_IMAGE_TAG=8.0.20
Expand Down
6 changes: 3 additions & 3 deletions test/bdd/fixtures/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ services:
- KMS_DATABASE_TYPE=mongodb
- KMS_DATABASE_URL=mongodb://mongodb.example.com:27017
- KMS_DATABASE_PREFIX=authzkms_
- KMS_AUTH_SERVER_URL=https://hub-auth.trustbloc.local:8070
- KMS_AUTH_SERVER_URL=https://auth.trustbloc.local:8070
- KMS_AUTH_SERVER_TOKEN=test_token
- KMS_CACHE_ENABLE=true
- KMS_LOG_LEVEL=debug
Expand Down Expand Up @@ -230,8 +230,8 @@ services:
networks:
- bdd_net

hub-auth.trustbloc.local:
container_name: hub-auth.trustbloc.local
auth.trustbloc.local:
container_name: auth.trustbloc.local
image: ${AUTH_REST_IMAGE}:${AUTH_REST_IMAGE_TAG}
environment:
- AUTH_REST_HOST_URL=0.0.0.0:8070
Expand Down
6 changes: 3 additions & 3 deletions test/bdd/fixtures/hydra-config/hydra_configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
# SPDX-License-Identifier: Apache-2.0
#

echo "Creating client for hub-auth..."
echo "Creating client for auth..."
# will use --skip-tls-verify because hydra doesn't trust self-signed certificate
# remove it when using real certificate
hydra clients create \
--endpoint https://oidc.provider.example.com:5556 \
--id hub-auth \
--secret hub-auth-secret \
--id auth \
--secret auth-secret \
--grant-types authorization_code,refresh_token \
--response-types code,id_token \
--scope openid,profile,email \
Expand Down
4 changes: 2 additions & 2 deletions test/bdd/fixtures/oidc-config/providers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
providers:
mockbank:
url: https://oidc.provider.example.com:5555/
clientID: hub-auth
clientSecret: hub-auth-secret
clientID: auth
clientSecret: auth-secret

0 comments on commit 5e26c00

Please sign in to comment.