Skip to content

Commit

Permalink
Merge branch 'feature/fix_disable_removal_from_docs' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
fhanik committed Oct 5, 2017
2 parents 013ed73 + a76ee80 commit 47be6f8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
1 change: 0 additions & 1 deletion uaa/src/main/resources/uaa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,6 @@ oauth:
# redirect:
# url: /login
# parameter:
# disable: false
# whitelist:
# - https://url1.domain1.com/logout-success
# - https://url2.domain2.com/logout-success
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,6 @@
*******************************************************************************/
package org.cloudfoundry.identity.uaa.login;

import java.io.File;
import java.io.IOException;
import java.lang.reflect.Field;
import java.net.URL;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Scanner;
import java.util.Set;
import java.util.stream.Collectors;
import javax.servlet.RequestDispatcher;

import org.apache.tomcat.jdbc.pool.DataSource;
import org.cloudfoundry.identity.uaa.account.ResetPasswordController;
import org.cloudfoundry.identity.uaa.authentication.manager.AuthzAuthenticationManager;
Expand Down Expand Up @@ -118,6 +102,22 @@
import org.springframework.web.context.support.AbstractRefreshableWebApplicationContext;
import org.springframework.web.servlet.ViewResolver;

import javax.servlet.RequestDispatcher;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.Field;
import java.net.URL;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Scanner;
import java.util.Set;
import java.util.stream.Collectors;

import static org.cloudfoundry.identity.uaa.constants.OriginKeys.OAUTH20;
import static org.cloudfoundry.identity.uaa.constants.OriginKeys.OIDC10;
import static org.cloudfoundry.identity.uaa.oauth.token.TokenConstants.TokenFormat.JWT;
Expand Down Expand Up @@ -643,6 +643,7 @@ public void all_properties_set() throws Exception {
assertSame(context.getBean("globalLinks", Links.class), context.getBean(HomeController.class).getGlobalLinks());

assertEquals("redirect", zoneConfiguration.getLinks().getLogout().getRedirectParameterName());
assertEquals(false, zoneConfiguration.getLinks().getLogout().isDisableRedirectParameter());
assertEquals("/configured_login", zoneConfiguration.getLinks().getLogout().getRedirectUrl());
assertEquals(Arrays.asList("https://url1.domain1.com/logout-success","https://url2.domain2.com/logout-success"), zoneConfiguration.getLinks().getLogout().getWhitelist());
assertFalse(zoneConfiguration.getLinks().getLogout().isDisableRedirectParameter());
Expand Down

0 comments on commit 47be6f8

Please sign in to comment.