Code maintenance

- Switch to HttpClient for remote fetcher
- Don't fail for remote binding on matrix.org
This commit is contained in:
Max Dor
2018-04-13 08:14:09 +02:00
parent ef80f4aa30
commit 78a25c21ba
3 changed files with 47 additions and 19 deletions

View File

@@ -277,8 +277,7 @@ public class SessionMananger {
}
String is = servers.get(0);
String url = IdentityServerUtils.findIsUrlForDomain(is)
.orElseThrow(() -> new InternalServerError(is + " could not be resolved to an Identity server"));
String url = IdentityServerUtils.findIsUrlForDomain(is).orElse(is);
log.info("Will use IS endpoint {}", url);
String remoteSecret = session.isRemote() ? session.getRemoteSecret() : RandomStringUtils.randomAlphanumeric(16);