Exemplo n.º 1
0
 /**
  * Configure OAuth2
  *
  * @param string $base_url url which OAuth2 will use for redirecting during login process. It will append necessary params to it
  * @param string $cookie_name OAuth2 cookie name
  * @param string $cookie_ttl Time to live for cookie
  */
 public static function init($base_url, $cookie_name = null, $cookie_ttl = null)
 {
     self::$base_url = $base_url;
     if ($cookie_name) {
         self::$cookie_name = $cookie_name;
     }
     if ($cookie_ttl) {
         self::$cookie_ttl = $cookie_ttl;
     }
 }