Laravel开发-phpcas

  • k2_375089
    了解作者
  • 49KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-05 19:21
    上传日期
Laravel开发-phpcas Laravel框架的phpcas客户端
Laravel开发-phpcas .zip
  • phpcas-master
  • src
  • Requests
  • MultiRequestInterface.php
    1.7KB
  • CurlRequest.php
    4.4KB
  • CurlMultiRequest.php
    3.7KB
  • AbstractRequest.php
    7.9KB
  • RequestInterface.php
    4.1KB
  • Client.php
    37.4KB
  • CasException.php
    955B
  • CasConst.php
    1.6KB
  • PhpCasServiceProvider.php
    1.2KB
  • Lang
  • ja.php
    3.3KB
  • es.php
    3.2KB
  • zh-Hans-CN.php
    583B
  • en.php
    648B
  • de.php
    3.2KB
  • fr.php
    3.2KB
  • el.php
    3.5KB
  • ca.php
    3.2KB
  • Facades
  • PhpCas.php
    393B
  • Exceptions
  • OutOfSequenceBeforeProxyException.php
    678B
  • OutOfSequenceException.php
    485B
  • OutOfSequenceBeforeAuthenticationCallException.php
    688B
  • CasInvalidArgumentException.php
    364B
  • OutOfSequenceBeforeClientException.php
    723B
  • AuthenticationException.php
    2.4KB
  • RequestException.php
    302B
  • ProxyChain.php
    2.4KB
  • helpers.php
    0B
  • Cas.php
    1.7KB
  • ProxyChain
  • ProxyChainAny.php
    869B
  • ProxyChainTrusted.php
    641B
  • ProxyChainInterface.php
    444B
  • ProxyChainAllowedList.php
    1.6KB
  • config
  • phpcas.php
    1.9KB
  • LICENSE
    1KB
  • composer.lock
    92KB
  • README.md
    1.1KB
  • .gitignore
    14B
  • composer.json
    1.2KB
内容介绍
# phpcas <p align="center"> <a href="https://packagist.org/packages/iwannamaybe/phpcas" rel='nofollow' onclick='return false;'> <img src="https://travis-ci.org/laravel/framework.svg" alt="Build Status"> </a> <a href="https://packagist.org/packages/iwannamaybe/phpcas" rel='nofollow' onclick='return false;'> <img src="https://poser.pugx.org/laravel/framework/license.svg" alt="License"> </a> </p> ## About Laravel PhpCas client for the Laravel Framework 5.5. ## Author Yanghaiquan ## Usage create auth middleware then set the handle method like this: /** * Handle an incoming request. * * @param Request $request * @param Closure $next * @return mixed */ public function handle(Request $request, Closure $next) { PhpCas::handLogoutRequest(); return PhpCas::checkAuthentication($request,$next,function ($userId){ $user = User::firstOrNew(['mobile' => $userId],['password' => bcrypt(123456)]); return Auth::loginUsingId($user->id); }); } ## License The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
评论
    相关推荐