String redirectAuthority = redirectURI.getAuthority();
if (authsWeTried.contains(redirectAuthority))
{
// We're in a loop.
throw new CircularRedirectException(); // Throw unless we want to start over.
}
authsWeTried.add(redirectAuthority);
redirects++;
// See if the redirect limit is set on the client. If not, use 10.