Class RedirectValidatorService

java.lang.Object
com.peterphi.usermanager.service.RedirectValidatorService

public class RedirectValidatorService extends Object
  • Field Details

    • allowAllRelativeRedirects

      @Inject(optional=true) public boolean allowAllRelativeRedirects
  • Constructor Details

    • RedirectValidatorService

      public RedirectValidatorService()
  • Method Details

    • rewriteRedirect

      public String rewriteRedirect(String url)
      Rewrite a redirect URL if necessary to ensure that the redirect will go to a safe URL (either a trusted URL or to a warning that an unsafe redirection is about to happen)
      Parameters:
      url -
      Returns:
    • repopulateServiceUrls

      public List<String> repopulateServiceUrls()