SimpleSAML_Utilities::redirectUntrustedURL PHP 메소드

redirectUntrustedURL() 공개 정적인 메소드

사용 중단: This method will be removed in SSP 2.0. Please use SimpleSAML\Utils\HTTP::redirectUntrustedURL() instead.
public static redirectUntrustedURL ( $url, $parameters = [] )
    public static function redirectUntrustedURL($url, $parameters = array())
    {
        \SimpleSAML\Utils\HTTP::redirectUntrustedURL($url, $parameters);
    }

Usage Example

예제 #1
0
 /**
  * Handle a unsolicited login operations.
  *
  * This function creates a session from the received information. It
  * will then redirect to the given URL.
  *
  * This is used to handle IdP initiated SSO.
  *
  * @param string $authId The id of the authentication source that received
  * the request.
  * @param array $state A state array.
  * @param string $redirectTo The URL we should redirect the user to after
  * updating the session. The function will check if the URL is allowed, so
  * there is no need to manually check the URL on beforehand. Please refer
  * to the 'trusted.url.domains' configuration directive for more
  * information about allowing (or disallowing) URLs.
  */
 public static function handleUnsolicitedAuth($authId, array $state, $redirectTo)
 {
     assert('is_string($authId)');
     assert('is_string($redirectTo)');
     $session = SimpleSAML_Session::getSessionFromRequest();
     $session->doLogin($authId, self::extractPersistentAuthState($state));
     SimpleSAML_Utilities::redirectUntrustedURL($redirectTo);
 }
All Usage Examples Of SimpleSAML_Utilities::redirectUntrustedURL