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");