Any.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /**
  3. * Licensed to Jasig under one or more contributor license
  4. * agreements. See the NOTICE file distributed with this work for
  5. * additional information regarding copyright ownership.
  6. *
  7. * Jasig licenses this file to you under the Apache License,
  8. * Version 2.0 (the "License"); you may not use this file except in
  9. * compliance with the License. You may obtain a copy of the License at:
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing, software
  14. * distributed under the License is distributed on an "AS IS" BASIS,
  15. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. * See the License for the specific language governing permissions and
  17. * limitations under the License.
  18. *
  19. * PHP Version 5
  20. *
  21. * @file CAS/ProxyChain/Any.php
  22. * @category Authentication
  23. * @package PhpCAS
  24. * @author Adam Franco <afranco@middlebury.edu>
  25. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
  26. * @link https://wiki.jasig.org/display/CASC/phpCAS
  27. */
  28. /**
  29. * A proxy-chain definition that will match any list of proxies.
  30. *
  31. * Use this class for quick testing or in certain production screnarios you
  32. * might want to allow allow any other valid service to proxy your service.
  33. *
  34. * THIS CLASS IS HOWEVER NOT RECOMMENDED FOR PRODUCTION AND HAS SECURITY
  35. * IMPLICATIONS: YOU ARE ALLOWING ANY SERVICE TO ACT ON BEHALF OF A USER
  36. * ON THIS SERVICE.
  37. *
  38. * @class CAS_ProxyChain_Any
  39. * @category Authentication
  40. * @package PhpCAS
  41. * @author Adam Franco <afranco@middlebury.edu>
  42. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
  43. * @link https://wiki.jasig.org/display/CASC/phpCAS
  44. */
  45. class CAS_ProxyChain_Any
  46. implements CAS_ProxyChain_Interface
  47. {
  48. /**
  49. * Match a list of proxies.
  50. *
  51. * @param array $list The list of proxies in front of this service.
  52. *
  53. * @return bool
  54. */
  55. public function matches(array $list)
  56. {
  57. phpCAS::trace("Using CAS_ProxyChain_Any. No proxy validation is performed.");
  58. return true;
  59. }
  60. }