Skip to content

Commit

Permalink
fix: Update for 5 minute tutorial (#1704)
Browse files Browse the repository at this point in the history
  • Loading branch information
khevse authored Feb 1, 2020
1 parent d3eac25 commit aeecfe1
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion quickstart-jwt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ services:
hydra:
environment:
- OAUTH2_ACCESS_TOKEN_STRATEGY=jwt
- OIDC_SUBJECT_IDENTIFIERS_ENABLED=public
- OIDC_SUBJECT_IDENTIFIERS_SUPPORTED_TYPES=public
6 changes: 3 additions & 3 deletions quickstart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ services:
- URLS_LOGOUT=http://127.0.0.1:3000/logout
- DSN=memory
- SECRETS_SYSTEM=youReallyNeedToChangeThis
- OIDC_SUBJECT_TYPES_SUPPORTED=public,pairwise
- OIDC_SUBJECT_TYPE_PAIRWISE_SALT=youReallyNeedToChangeThis
- OIDC_SUBJECT_IDENTIFIERS_SUPPORTED_TYPES=public,pairwise
- OIDC_SUBJECT_IDENTIFIERS_PAIRWISE_SALT=youReallyNeedToChangeThis
restart: unless-stopped

consent:
environment:
- HYDRA_ADMIN_URL=http://hydra:4445
image: oryd/hydra-login-consent-node:v1.0.0-rc.10
image: oryd/hydra-login-consent-node:v1.1.1
ports:
- "3000:3000"
restart: unless-stopped
14 changes: 7 additions & 7 deletions scripts/5min-tutorial.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@

DB=${DB:-postgres}
TRACING=${TRACING:-false}
TWOC=${TWOC:-false}
PROMETHEUS=${PROMETHEUS:-false}

DC="docker-compose -f docker-compose.yml"
DC="docker-compose -f quickstart.yml"
if [[ $DB == "mysql" ]]; then
DC+=" -f docker-compose-mysql.yml"
DC+=" -f quickstart-mysql.yml"
fi
if [[ $DB == "postgres" ]]; then
DC+=" -f docker-compose-postgres.yml"
DC+=" -f quickstart-postgres.yml"
fi
if [[ $TRACING == true ]]; then
DC+=" -f docker-compose-tracing.yml"
DC+=" -f quickstart-tracing.yml"
fi
if [[ $TWOC == true ]]; then
DC+=" -f docker-compose-twoc.yml"
if [[ $PROMETHEUS == true ]]; then
DC+=" -f quickstart-prometheus.yml"
fi
DC+=" up --build"

Expand Down
10 changes: 5 additions & 5 deletions test/e2e/circle-ci.bash
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ case "$1" in
memory-jwt)
DSN=memory \
OAUTH2_ACCESS_TOKEN_STRATEGY=jwt \
OIDC_SUBJECT_IDENTIFIERS_ENABLED=public \
OIDC_SUBJECT_IDENTIFIERS_SUPPORTED_TYPES=public \
./hydra serve all --dangerous-force-http --disable-telemetry >> ./hydra.e2e.log 2>&1 &
export CYPRESS_jwt_enabled=true
;;
Expand All @@ -52,7 +52,7 @@ case "$1" in
hydra migrate sql --yes $TEST_DATABASE_POSTGRESQL
DSN=$TEST_DATABASE_POSTGRESQL \
OAUTH2_ACCESS_TOKEN_STRATEGY=jwt \
OIDC_SUBJECT_IDENTIFIERS_ENABLED=public \
OIDC_SUBJECT_IDENTIFIERS_SUPPORTED_TYPES=public \
./hydra serve all --dangerous-force-http --disable-telemetry >> ./hydra.e2e.log 2>&1 &
export CYPRESS_jwt_enabled=true
;;
Expand All @@ -68,7 +68,7 @@ case "$1" in
hydra migrate sql --yes $TEST_DATABASE_MYSQL
DSN=$TEST_DATABASE_MYSQL \
OAUTH2_ACCESS_TOKEN_STRATEGY=jwt \
OIDC_SUBJECT_IDENTIFIERS_ENABLED=public \
OIDC_SUBJECT_IDENTIFIERS_SUPPORTED_TYPES=public \
./hydra serve all --dangerous-force-http --disable-telemetry >> ./hydra.e2e.log 2>&1 &
export CYPRESS_jwt_enabled=true
;;
Expand All @@ -84,7 +84,7 @@ case "$1" in
hydra migrate sql --yes $TEST_DATABASE_COCKROACHDB
DSN=$TEST_DATABASE_COCKROACHDB \
OAUTH2_ACCESS_TOKEN_STRATEGY=jwt \
OIDC_SUBJECT_IDENTIFIERS_ENABLED=public \
OIDC_SUBJECT_IDENTIFIERS_SUPPORTED_TYPES=public \
./hydra serve all --dangerous-force-http --disable-telemetry >> ./hydra.e2e.log 2>&1 &
export CYPRESS_jwt_enabled=true
;;
Expand All @@ -98,7 +98,7 @@ case "$1" in
plugin-jwt)
DSN=plugin://./memtest.so \
OAUTH2_ACCESS_TOKEN_STRATEGY=jwt \
OIDC_SUBJECT_IDENTIFIERS_ENABLED=public \
OIDC_SUBJECT_IDENTIFIERS_SUPPORTED_TYPES=public \
./hydra serve all --dangerous-force-http --disable-telemetry >> ./hydra.e2e.log 2>&1 &
export CYPRESS_jwt_enabled=true
;;
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/circle-ci.env.bash
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export URLS_CONSENT=http://127.0.0.1:5002/consent
export URLS_LOGIN=http://127.0.0.1:5002/login
export URLS_LOGOUT=http://127.0.0.1:5002/logout
export SECRETS_SYSTEM=youReallyNeedToChangeThis
export OIDC_SUBJECT_TYPES_SUPPORTED=public,pairwise
export OIDC_SUBJECT_TYPE_PAIRWISE_SALT=youReallyNeedToChangeThis
export OIDC_SUBJECT_IDENTIFIERS_SUPPORTED_TYPES=public,pairwise
export OIDC_SUBJECT_IDENTIFIERS_PAIRWISE_SALT=youReallyNeedToChangeThis
export SERVE_PUBLIC_CORS_ENABLED=true
export SERVE_PUBLIC_CORS_ALLOWED_METHODS=POST,GET,PUT,DELETE
export SERVE_ADMIN_CORS_ENABLED=true
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/docker-compose.jwt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ services:
hydra:
environment:
- OAUTH2_ACCESS_TOKEN_STRATEGY=jwt
- OIDC_SUBJECT_IDENTIFIERS_ENABLED=public
- OIDC_SUBJECT_IDENTIFIERS_SUPPORTED_TYPES=public
4 changes: 2 additions & 2 deletions test/e2e/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ services:
- URLS_LOGOUT=http://127.0.0.1:5002/logout
- DSN=memory
- SECRETS_SYSTEM=youReallyNeedToChangeThis
- OIDC_SUBJECT_TYPES_SUPPORTED=public,pairwise
- OIDC_SUBJECT_TYPE_PAIRWISE_SALT=youReallyNeedToChangeThis
- OIDC_SUBJECT_IDENTIFIERS_SUPPORTED_TYPES=public,pairwise
- OIDC_SUBJECT_IDENTIFIERS_PAIRWISE_SALT=youReallyNeedToChangeThis
- SERVE_PUBLIC_CORS_ENABLED=true
- SERVE_PUBLIC_CORS_ALLOWED_METHODS=POST,GET,PUT,DELETE
- SERVE_ADMIN_CORS_ENABLED=true
Expand Down

0 comments on commit aeecfe1

Please sign in to comment.