File tree Expand file tree Collapse file tree
app/java/net/openid/appauthdemo Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -192,7 +192,9 @@ private void readConfiguration() throws InvalidConfigurationException {
192192 Buffer configData = new Buffer ();
193193 try {
194194 configSource .readAll (configData );
195+ final String configHash = configData .sha256 ().base64 ();
195196 mConfigJson = new JSONObject (configData .readString (Charset .forName ("UTF-8" )));
197+ mConfigHash = configHash ;
196198 } catch (IOException ex ) {
197199 throw new InvalidConfigurationException (
198200 "Failed to read configuration: " + ex .getMessage ());
@@ -201,7 +203,6 @@ private void readConfiguration() throws InvalidConfigurationException {
201203 "Unable to parse configuration: " + ex .getMessage ());
202204 }
203205
204- mConfigHash = configData .sha256 ().base64 ();
205206 mClientId = getConfigString ("client_id" );
206207 mScope = getRequiredConfigString ("authorization_scope" );
207208 mRedirectUri = getRequiredConfigUri ("redirect_uri" );
You can’t perform that action at this time.
0 commit comments