method.getHostConfiguration().getHost(),
method.getHostConfiguration().getPort(),
claims.getRealm(),
claims.getSchemeName());
CredentialsProvider cp = (CredentialsProvider)method.getParams().getParameter(
CredentialsProvider.PROVIDER);
Credentials creds = (cp == null) ?
state.getCredentials(AuthScope.ANY) :
cp.getCredentials(claims, authscope.getHost(), authscope.getPort(), false);
if (adfsLogin(method.getURI().getScheme()
+ "://" + method.getURI().getAuthority(), creds)) {
claims.setComplete();
return true;