Skip to content

Commit

Permalink
Merge pull request #2377 from keshavprasadms/release-3.7.0
Browse files Browse the repository at this point in the history
feat: TG-884 verify using HS256 token for keycloak 7
  • Loading branch information
G33tha authored Mar 29, 2021
2 parents 5774425 + be5d48e commit fd8f0b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions kubernetes/helm_charts/core/adminutils/values.j2
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ adminutilenv:
REFRESH_TOKEN_PUBLIC_BASEPATH: "/keys/"
REFRESH_TOKEN_PUBLIC_KEYPREFIX: '"{{ adminutil_refresh_token_public_key_prefix }}"'
REFRESH_TOKEN_KID: '"{{ adminutil_refresh_token_public_key_kid }}"'
REFRESH_TOKEN_SECRET_KEY: '"{{ adminutil_refresh_token_secret_key }}"'
REFRESH_TOKEN_DOMAIN: '"{{ keycloak_auth_server_url }}/realms/{{ keycloak_realm }}"'
REFRESH_TOKEN_PRELOAD: '"{{ adminutil_refresh_token_preload }}"'
ACCESS_TOKEN_VALIDITY: '"{{ adminutil_access_token_validity }}"'
Expand Down
4 changes: 3 additions & 1 deletion private_repo/ansible/inventory/dev/Core/secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ mongodb_keyfile_content: |
# use below command to use a random password
# 'openssl rand -hex 10'
nodebb_admin_password:
adminutil_refresh_token_public_key_kid: "" #get after eycloak deployment using lms client
adminutil_refresh_token_public_key_kid: "" # get after Keycloak deployment using lms client
#SELECT value FROM component_config CC INNER JOIN component C ON(CC.component_id = C.id) WHERE C.realm_id = 'sunbird' and provider_id = 'hmac-generated' AND CC.name = 'secret';
adminutil_refresh_token_secret_key: "" # get after Keycloak deployment from postgres using the above query

# Steps to generating the Nodebb auth token
# 1. Login to Nodebb (https://<domain-name>/discussions/login) as a Admin.
Expand Down

0 comments on commit fd8f0b1

Please sign in to comment.