From 53d35ffc3e2b2f8e98afc94a4900fd620fe51ffd Mon Sep 17 00:00:00 2001 From: Maksim Date: Fri, 29 May 2020 12:18:09 +0300 Subject: [PATCH] fix configHash in app configuration --- app/java/net/openid/appauthdemo/Configuration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/java/net/openid/appauthdemo/Configuration.java b/app/java/net/openid/appauthdemo/Configuration.java index 0be12e09..e0e31435 100644 --- a/app/java/net/openid/appauthdemo/Configuration.java +++ b/app/java/net/openid/appauthdemo/Configuration.java @@ -183,6 +183,7 @@ private void readConfiguration() throws InvalidConfigurationException { Buffer configData = new Buffer(); try { configSource.readAll(configData); + mConfigHash = configData.sha256().base64(); mConfigJson = new JSONObject(configData.readString(Charset.forName("UTF-8"))); } catch (IOException ex) { throw new InvalidConfigurationException( @@ -192,7 +193,6 @@ private void readConfiguration() throws InvalidConfigurationException { "Unable to parse configuration: " + ex.getMessage()); } - mConfigHash = configData.sha256().base64(); mClientId = getConfigString("client_id"); mScope = getRequiredConfigString("authorization_scope"); mRedirectUri = getRequiredConfigUri("redirect_uri");