Support the ongoing development of Laravel.io →
posted 3 years ago
Last updated 1 year ago.
0

I would like to explain my requirement in detail.

My client(a college) has a CAS system. They have so many users and they need to do an SSO CAS request to login to my website.

My website is a Laravel 5.7/MYSQL. How do I set up my website to handle this CAS SSO request? Is it the same as an API request handling? Can anyone give a sample request URL or explain to me the steps to set up to handle this CAS request on my website. Thanks.

0

Search for a package which provides the functionality and examine the package for details.

This seems to be the most popular subfission/cas. Here's another one sentrasoft/laravel-cas and another one XavRsl/Cas.

0

I had integrated sentrasoft/laravel-cas. When the user tries to access our login page it will redirect the user to the CAS server login page. Once the user logged in the user will be redirected to my call back page with the ticket id. When I gave this command in my callback method

Cas::authenticate(); Cas::getCurrentUser();

I am getting this error

CAS Authentication failed! You were not authenticated. You may submit your request again by clicking here. If the problem persists, you may contact the administrator of this site.

So I am not getting any user info of the login form submitted user.

When I run the validate URL in my callback method with the above ticket I am getting the response like this https://casserver.com/cas/p3/serviceValidate?service=https://m...

<cas:serviceresponse xmlns:cas="http://www.yale.edu/tp/cas";> cas:authenticationsuccess cas:userTEST</cas:user> cas:attributes cas:isfromnewloginfalse</cas:isfromnewlogin> cas:bypassmultifactorauthenticationfalse</cas:bypassmultifactorauthentication> cas:authenticationdate2020-07-16T06:02:52.341-05:00[America/Chicago]</cas:authenticationdate> cas:authncontextclassmfa-duo</cas:authncontextclass> cas:givennameTest111</cas:givenname> cas:successfulauthenticationhandlersFileAuthenticationHandler</cas:successfulauthenticationhandlers> cas:successfulauthenticationhandlersmfa-duo</cas:successfulauthenticationhandlers> cas:lastnameStudent</cas:lastname> cas:samlauthenticationstatementauthmethodurn:oasis:names:tc:SAML:1.0:am:password</cas:samlauthenticationstatementauthmethod> cas:samlauthenticationstatementauthmethodurn:oasis:names:tc:SAML:1.0:am:unspecified</cas:samlauthenticationstatementauthmethod> cas:credentialtypeUsernamePasswordCredential</cas:credentialtype> cas:credentialtypeDuoCredential</cas:credentialtype> cas:udc_identifierTESTUSER</cas:udc_identifier> cas:authenticationmethodFileAuthenticationHandler</cas:authenticationmethod> cas:authenticationmethodmfa-duo</cas:authenticationmethod> cas:longtermauthenticationrequesttokenusedfalse</cas:longtermauthenticationrequesttokenused> cas:email[email protected]</cas:email> </cas:attributes> </cas:authenticationsuccess> </cas:serviceresponse>

Please help someone to resolve this issue?

Thanks in advance.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Yoh V yohannanvk Joined 11 Jun 2020

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.