Code Monkey home page Code Monkey logo

cas's Introduction

Welcome to my GitHub profile page 🙇‍♂️

Hi! My name is Xavier and I'm a web developper based in France near Paris.

cas's People

Contributors

andremuller avatar fancyoung avatar gpspake avatar jmandrade avatar livebranch avatar loren138 avatar pies avatar samyerkes avatar umt-dev-123 avatar veelasky avatar xavrsl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cas's Issues

Too many redirects problem

Hi, I stuck in with the trouble of "ERR_TOO_MANY_REDIRECTS". When I type an url in Chrome, the browser show me this message. I don't know how to deal with it. I write "Cas::authenticate" in the constructor of the controller, is this right? Could you please give me some examples to show how to use the Cas correctly? THX and forgive my poor English.

Authentication Password, Model and Table in config.php

Hi! I have installed the CAS in my laravel 4.2. In the configuration file see commented notes referring to (array key's) password authentication, Model and Table but these "key's array" are not present in the configuration file. You can send me the text of these "keys array" ..... something like "cas_password" , "cas_model" or "cas_table" .....

ErrorException DOMDocument::loadXML() with Cas login and redirect in laravel5

Hello,
I have some problems with cas login, now i can get the page of login with cas, but when i click the button login, i meet some problems:
ErrorException in Client.php line 3137: DOMDocument::loadXML(): Space required after the Public Identifier in Entity, line: 1
at HandleExceptions->handleError('2', 'DOMDocument::loadXML(): Space required after the Public Identifier in Entity, line: 1', '/var/www/html/private/vendor/jasig/phpcas/source/CAS/Client.php', '3137', array('validate_url' => 'https://login.unice.fr/serviceValidate?service=http%3A%2F%2Flocalhost%2Fprivate%2Fpublic%2Flogin&ticket=ST-1903829-FIC9heJrTXUTsXqF7qTc-login.unice.fr', 'text_response' => ' <title>302 Found</title>

Found

The document has moved here.

', 'tree_response' => null, 'result' => false, 'headers' => array('HTTP/1.1 302 Found ', 'Date: Mon, 20 Jul 2015 13:03:24 GMT ', 'Server: Apache ', 'Location: https://login.unice.fr/loginserviceValidate?service=http%3A%2F%2Flocalhost%2Fprivate%2Fpublic%2Flogin&ticket=ST-1903829-FIC9heJrTXUTsXqF7qTc-login.unice.fr ', 'Content-Length: 343 ', 'Connection: close ', 'Content-Type: text/html; charset=iso-8859-1 ', ' '), 'err_msg' => '', 'this' => object(CAS_Client), 'dom' => object(DOMDocument)))

I don't know how to resolve it , and after that i cann't get the informations of the user with Cas::user() or Cas::getCurrentUser(), i need your help , thanks..

Cas::logout() does not work properly

  1. Cas::authenticate(); login successfully
  2. Cash::getCurrentUser(); //i can get the user name; it is ok
  3. Cas:logout(); // i logout the current user
  4. Cash::getCurrentUser(); // that's ok, the result is blank

however, if i try to run Cas::authenticate in the same browser (does no close the browser), the web app
automatically log the prevent logined user, after that , Cas::getCurrentUser() return the previous user as logined.

I suspect that there is a session or cookie not being cleaned?
please advice

the expect behaviour is when first time logout, and Cash::Authenticate will redirect to login page.
Am i right?

Laravel 6 support

This package blocks a Laravel 5.8 to Laravel 6 update because xavrsl/cas v1.2.6 requires illuminate/support 4.|5. .

Error in Sso construct

First of all I appreciate your works on this package. I follow the instructions and install the package to my laravel starter site, but when I add the filter to the routes.php and attempt to access the cas protected page, it gives the following error:

Argument 2 passed to Xavrsl\Cas\Sso::__construct() must be an instance of Illuminate\Auth\AuthManager, none given, called in /app_data/co/ep_supplier/vendor/xavrsl/cas/src/Xavrsl/Cas/CasManager.php on line 40 and defined

Looking at the CasManager.php, line 40 gives the following:

$connection = new Sso($config);

Did i miss a step or there's something wrong with the codes?

Failed to load service provider

Following the instructions, after performing php artisan config:publish xavrsl/cas the following exception is thrown:

PHP Fatal error:  Class 'XavRsl\Cas\CasServiceProvider' not found in /Users/Victor/Code/EMR/ChE/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 158
PHP Stack trace:
PHP   1. {main}() /Users/Victor/Code/EMR/ChE/artisan:0
PHP   2. require_once() /Users/Victor/Code/EMR/ChE/artisan:30
PHP   3. require() /Users/Victor/Code/EMR/ChE/bootstrap/start.php:59
PHP   4. Illuminate\Foundation\ProviderRepository->load() /Users/Victor/Code/EMR/ChE/vendor/laravel/framework/src/Illuminate/Foundation/start.php:210
PHP   5. Illuminate\Foundation\ProviderRepository->compileManifest() /Users/Victor/Code/EMR/ChE/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:58
PHP   6. Illuminate\Foundation\ProviderRepository->createProvider() /Users/Victor/Code/EMR/ChE/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:122
{"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","message":"Class 'XavRsl\\Cas\\CasServiceProvider' not found","file":"\/Users\/Victor\/Code\/EMR\/ChE\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/ProviderRepository.php","line":158}}

Where to use Cas::authenticate(); ?

Hello there!

I'm new to Laravel and using this Cas add-in and was wondering from where Cas::authenticate(); should be called? Should it be called from routes only or can it be called within controller methods as well? Some examples would be much appreciated. Thanks so much and have a nice day!

Retrieving more than just current username

Cas::getCurrentUser(); works great for me getting the username of the person logged in. Is it capable to retrieve other attributes back such as first name, last name?

Sorry I'm new to both using CAS and Laravel. Any help would definitely be appreciated! Thanks for the fantastic package.

cas()->getCurrentUser()

Hey, I'm having an issue getting the current user through the CAS server.
I can't get the username using cas()->getCurrentUser(), it returns

Error: Internal script failure

Here's some screenshots of my cas.php :

1
2
3
4
5

Fortunately, I can connect to the server and generate a ticket but I can't get the username :

capture

222

Override the validation url

Hello,
Using phpCAS is possible to override the validation URL but not with XavRsl/Cas.
Example:
https://github.com/Jasig/phpCAS/blob/master/docs/examples/example_custom_urls.php#L39

// Override the validation url for any (ST and PT) CAS 2.0 validation
phpCAS::setServerProxyValidateURL('https://cas.example.org:1443/proxyValidate');
// Override the validation url for any CAS 1.0 validation
//phpCAS::setServerServiceValidateURL('https://cas.example.org:1443/serviceValidate');
//Override the validation url for any SAML11 validation
//phpCAS::setServerSamlValidateURL('https://cas.example.org:1443/samlValidate');

I really need this option to retrieve custom attributes for the logged user, so I will submit a patch for this.

checkAuthenticate() need to return value

Hello, my english is very pool, please understand.

In Cas/src/Xavrsl/Cas/Sso.php near line 161, there is a method named checkAuthenticate(),
it call the phpCAS::checkAuthentication() method, and the phpCAS::checkAuthentication() will return true or false. So, i think Sso need to return the value too. Like this:

···php

public function checkAuthenticate()
{
    if($this->isPretending()) return true;
    try
    {
        // phpCAS::checkAuthentication();                        <====this line need to return value.
        return phpCAS::checkAuthentication();
    }
    catch(\Exception $e)
    {
        throw new CasAuthenticationException;
    }
}

Please fix it as soon as possible, thinks, thinks, thinks.

CasAuthenticationException on google app engine

When executing Cas::authenticate() I get the following error on google app engine:

CasAuthenticationException in Sso.php line 150:
in Sso.php line 150
at Sso->authenticate()
at call_user_func_array(array(object(Sso), 'authenticate'), array()) in CasManager.php line 62
at CasManager->__call('authenticate', array()) in Facade.php line 213
at CasManager->authenticate() in Facade.php line 213
at Facade::__callStatic('authenticate', array()) in Login.php line 103
at Cas::authenticate() in Login.php line 103
at Login->getIndex()
at call_user_func_array(array(object(Login), 'getIndex'), array()) in Controller.php line 256
at Controller->callAction('getIndex', array()) in ControllerDispatcher.php line 164
at ControllerDispatcher->call(object(Login), object(Route), 'getIndex') in ControllerDispatcher.php line 112
at ControllerDispatcher->Illuminate\Routing{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in ControllerDispatcher.php line 114
at ControllerDispatcher->callWithinStack(object(Login), object(Route), object(Request), 'getIndex') in ControllerDispatcher.php line 69
at ControllerDispatcher->dispatch(object(Route), object(Request), 'App\Http\Controllers\Security\Login', 'getIndex') in Route.php line 203
at Route->runWithCustomDispatcher(object(Request)) in Route.php line 134
at Route->run(object(Request)) in Router.php line 708
at Router->Illuminate\Routing{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in VerifyCsrfToken.php line 50
at VerifyCsrfToken->handle(object(Request), object(Closure))
at call_user_func_array(array(object(VerifyCsrfToken), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in CheckBrowser.php line 37
at CheckBrowser->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckBrowser), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in RedirectIfAuthenticated.php line 42
at RedirectIfAuthenticated->handle(object(Request), object(Closure))
at call_user_func_array(array(object(RedirectIfAuthenticated), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in Router.php line 710
at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 675
at Router->dispatchToRoute(object(Request)) in Router.php line 635
at Router->dispatch(object(Request)) in Kernel.php line 236
at Kernel->Illuminate\Foundation\Http{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in ShareErrorsFromSession.php line 49
at ShareErrorsFromSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in StartSession.php line 62
at StartSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))
at call_user_func_array(array(object(AddQueuedCookiesToResponse), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in EncryptCookies.php line 59
at EncryptCookies->handle(object(Request), object(Closure))
at call_user_func_array(array(object(EncryptCookies), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in CheckForMaintenanceMode.php line 44
at CheckForMaintenanceMode->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in Kernel.php line 122
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 87
at Kernel->handle(object(Request)) in index.php line 54

Method not called before phpCAS::isAuthenticated

I was using v1.0 just fine but in needs of a logout function so I updated it to v1.1.1
However upon CAS login it gives out the following error:

phpCAS error: phpCAS::isAuthenticated(): one of the methods phpCAS::setCasServerCACert() or phpCAS::setNoCasServerValidation() must be called. in ........../vendor/xavrsl/cas/src/Xavrsl/Cas/Sso.php on line 199

Looking at Sso.php it seems the problem was caused by configureSslValidation() being called after detect_authentication().

Exception Class CAS_raTypeMismatchException could not be loaded

I'm trying to get work with CAS but i have this error when calling to Cas::authenticate() function:
exception 'Exception' with message 'Class CAS_raTypeMismatchException could not be loaded from C:\xampp\htdocs\ruac\vendor\jasig\phpcas\source/../test//CAS/raTypeMismatchException.php, file does not exist (Path="C:\xampp\htdocs\ruac\vendor\jasig\phpcas\source:C:\xampp\htdocs\ruac\vendor\jasig\phpcas\source/../test/") [CAS_autoload]' in C:\xampp\htdocs\ruac\vendor\jasig\phpcas\source\CAS\Autoload.php:57 Stack trace: #0 [internal function]: CAS_autoload('CAS_raTypeMisma...') #1 C:\xampp\htdocs\ruac\vendor\jasig\phpcas\source\CAS\Client.php(892): spl_autoload_call('CAS_raTypeMisma...') #2 C:\xampp\htdocs\ruac\vendor\jasig\phpcas\source\CAS.php(340): CAS_Client->__construct('2.0', false, 'autentica-des.u...', '443', '/cas', true) #3 C:\xampp\htdocs\ruac\vendor\xavrsl\cas\src\Xavrsl\Cas\Sso.php(76): phpCAS::client('2.0', 'autentica-des.u...', '443', '/cas') #4 C:\xampp\htdocs\ruac\vendor\xavrsl\cas\src\Xavrsl\Cas\Sso.php(40): Xavrsl\Cas\Sso->configureCasClient() #5 C:\xampp\htdocs\ruac\vendor\xavrsl\cas\src\Xavrsl\Cas\Sso.php(26): Xavrsl\Cas\Sso->initializeCas() #6 C:\xampp\htdocs\ruac\vendor\xavrsl\cas\src\Xavrsl\Cas\CasManager.php(48): Xavrsl\Cas\Sso->__construct(Array) #7 C:\xampp\htdocs\ruac\vendor\xavrsl\cas\src\Xavrsl\Cas\CasManager.php(35): Xavrsl\Cas\CasManager->createConnection() #8 C:\xampp\htdocs\ruac\vendor\xavrsl\cas\src\Xavrsl\Cas\CasManager.php(62): Xavrsl\Cas\CasManager->connection() #9 C:\xampp\htdocs\ruac\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php(213): Xavrsl\Cas\CasManager->__call('authenticate', Array) #10 C:\xampp\htdocs\ruac\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php(213): Xavrsl\Cas\CasManager->authenticate() #11 C:\xampp\htdocs\ruac\app\Http\routes.php(16): Illuminate\Support\Facades\Facade::__callStatic('authenticate', Array) #12 C:\xampp\htdocs\ruac\app\Http\routes.php(16): Xavrsl\Cas\Facades\Cas::authenticate() #13 [internal function]: App\Providers\RouteServiceProvider->{closure}() #14 C:\xampp\htdocs\ruac\vendor\laravel\framework\src\Illuminate\Routing\Route.php(155): call_user_func_array(Object(Closure), Array) #15 C:\xampp\htdocs\ruac\vendor\laravel\framework\src\Illuminate\Routing\Route.php(130): Illuminate\Routing\Route->runCallable(Object(Illuminate\Http\Request)) #16 C:\xampp\htdocs\ruac\vendor\laravel\framework\src\Illuminate\Routing\Router.php(708): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request)) #17 [internal function]: Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request)) #18 C:\xampp\htdocs\ruac\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(139): call_user_func(Object(Closure), Object(Illuminate\Http\Request)) #19 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #20 C:\xampp\htdocs\ruac\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(103): call_user_func(Object(Closure), Object(Illuminate\Http\Request)) #21 C:\xampp\htdocs\ruac\vendor\laravel\framework\src\Illuminate\Routing\Router.php(710): Illuminate\Pipeline\Pipeline->then(Object(Closure)) #22 C:\xampp\htdocs\ruac\vendor\laravel\framework\src\Illuminate\Routing\Router.php(675): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request)) #23 C:\xampp\htdocs\ruac\vendor\laravel\framework\src\Illuminate\Routing\Router.php(635): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request)) #24 C:\xampp\htdocs\ruac\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(236): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request)) #25 [internal function]: Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request)) #26 C:\xampp\htdocs\ruac\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(139): call_user_func(Object(Closure), Object(Illuminate\Http\Request)) #27 C:\xampp\htdocs\ruac\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #28 [internal function]: Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure)) #29 C:\xampp\htdocs\ruac\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(124): call_user_func_array(Array, Array) #30 C:\xampp\htdocs\ruac\vendor\laravel\framework\src\Illuminate\View\Middleware\ShareErrorsFromSession.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #31 [internal function]: Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure)) #32 C:\xampp\htdocs\ruac\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(124): call_user_func_array(Array, Array) #33 C:\xampp\htdocs\ruac\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #34 [internal function]: Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure)) #35 C:\xampp\htdocs\ruac\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(124): call_user_func_array(Array, Array) #36 C:\xampp\htdocs\ruac\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #37 [internal function]: Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure)) #38 C:\xampp\htdocs\ruac\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(124): call_user_func_array(Array, Array) #39 C:\xampp\htdocs\ruac\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php(59): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #40 [internal function]: Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure)) #41 C:\xampp\htdocs\ruac\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(124): call_user_func_array(Array, Array) #42 C:\xampp\htdocs\ruac\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #43 [internal function]: Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure)) #44 C:\xampp\htdocs\ruac\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(124): call_user_func_array(Array, Array) #45 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #46 C:\xampp\htdocs\ruac\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(103): call_user_func(Object(Closure), Object(Illuminate\Http\Request)) #47 C:\xampp\htdocs\ruac\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(122): Illuminate\Pipeline\Pipeline->then(Object(Closure)) #48 C:\xampp\htdocs\ruac\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(87): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request)) #49 C:\xampp\htdocs\ruac\public\index.php(54): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request)) #50 {main}

vendor publish error

[ErrorException]
call_user_func_array() expects parameter 1 to be a valid callback, class 'Illuminate\Auth\Guard' does not have a method 'provider'

Cas::getCurrentUser() Exception

Hi Xavier ! Can you help me ?

I will describe the context of what is happening;

1- I access first page os system and do login
laravel1

2- Login redirect to cas server and authentication is ok, return to application
laravel2

3- Cas send ticket via GET but raise exception when getCurrentUser is called
laravel3

Route, Filter and Controller informations :

Routes
laravel4

Filters
laravel5

Controller
laravel6

PS: Using the "simple example" of jasig PHPcas everythings is ok ..... cas return ticket and i can getCurrentUser.... Whats happen with laravel ?

Thank you for your attention

How to return null when not auth

I use \Cas::authenticate(); and then $user = \Cas::getCurrentUser(); to get current login user as well. But, I want to get null when user not auth yet without redirect to CAS_LOGIN_REDIRECT.

How can I do that?

Tag a release

Could you do me a favor an tag a release? I just got your package up an running on a project, but I don't feel comfortable with that "dev-master" in my composer.json.

Not working with Laravel 8.*

Hi,

It is working well in Laravel 5.2. When I upgraded to 8.* it is not working. I want to know whether it is compatible with Laravel 8.* or not. If yes, what are the changes to be done?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.