Skip to content

Commit be5d48e

Browse files
committed
feat: TG-884 verify using HS256 token for keycloak 7
1 parent 5774425 commit be5d48e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

kubernetes/helm_charts/core/adminutils/values.j2

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ adminutilenv:
5555
REFRESH_TOKEN_PUBLIC_BASEPATH: "/keys/"
5656
REFRESH_TOKEN_PUBLIC_KEYPREFIX: '"{{ adminutil_refresh_token_public_key_prefix }}"'
5757
REFRESH_TOKEN_KID: '"{{ adminutil_refresh_token_public_key_kid }}"'
58+
REFRESH_TOKEN_SECRET_KEY: '"{{ adminutil_refresh_token_secret_key }}"'
5859
REFRESH_TOKEN_DOMAIN: '"{{ keycloak_auth_server_url }}/realms/{{ keycloak_realm }}"'
5960
REFRESH_TOKEN_PRELOAD: '"{{ adminutil_refresh_token_preload }}"'
6061
ACCESS_TOKEN_VALIDITY: '"{{ adminutil_access_token_validity }}"'

private_repo/ansible/inventory/dev/Core/secrets.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ mongodb_keyfile_content: |
8888
# use below command to use a random password
8989
# 'openssl rand -hex 10'
9090
nodebb_admin_password:
91-
adminutil_refresh_token_public_key_kid: "" #get after eycloak deployment using lms client
91+
adminutil_refresh_token_public_key_kid: "" # get after Keycloak deployment using lms client
92+
#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';
93+
adminutil_refresh_token_secret_key: "" # get after Keycloak deployment from postgres using the above query
9294

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

0 commit comments

Comments
 (0)