Commit aea24835 by Renzo Lucioni

Fix value of ecomworker JWT_ISSUER setting

This fixes a bug accidentally introduced by https://github.com/edx/configuration/commit/b5d8bfa14034221badbea5038569e922831d8f7e. Formerly, the ecommerce worker service name was recycled as the value of JWT_ISSUER. When the name of the service was changed to "ecomworker," the value used for that setting changed to something which the ecommerce service was not configured to expect. ECOM-3341.
parent eb78a7e7
......@@ -43,13 +43,13 @@ ECOMMERCE_LANGUAGE_CODE: 'en-us'
ECOMMERCE_EDX_API_KEY: 'PUT_YOUR_API_KEY_HERE' # This should match the value set for edxapp
ECOMMERCE_ECOMMERCE_URL_ROOT: 'http://localhost:8002'
ECOMMERCE_LMS_URL_ROOT: 'http://127.0.0.1:8000'
ECOMMERCE_JWT_SECRET_KEY: 'SET-ME-PLEASE' # This should match the value set for edxapp
ECOMMERCE_JWT_SECRET_KEY: 'SET-ME-PLEASE' # This should match the value set for edxapp
ECOMMERCE_JWT_ALGORITHM: 'HS256'
ECOMMERCE_JWT_VERIFY_EXPIRATION: true
ECOMMERCE_JWT_DECODE_HANDLER: 'ecommerce.extensions.api.handlers.jwt_decode_handler'
ECOMMERCE_JWT_ISSUERS:
- '{{ ECOMMERCE_LMS_URL_ROOT }}/oauth2'
- 'ecommerce_worker'
- 'ecommerce_worker' # Must match the value of JWT_ISSUER configured for the ecommerce worker.
# Used to automatically configure OAuth2 Client
ECOMMERCE_SOCIAL_AUTH_EDX_OIDC_KEY : 'ecommerce-key'
......
......@@ -54,7 +54,7 @@ ECOMMERCE_WORKER_MAX_FULFILLMENT_RETRIES: 11
# Ecommerce Worker settings
ECOMMERCE_WORKER_JWT_SECRET_KEY: 'insecure-secret-key'
ECOMMERCE_WORKER_JWT_ISSUER: '{{ ecommerce_worker_service_name }}'
ECOMMERCE_WORKER_JWT_ISSUER: 'ecommerce_worker'
ECOMMERCE_WORKER_SERVICE_CONFIG:
BROKER_URL: '{{ ECOMMERCE_WORKER_BROKER_URL }}'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment