Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieving more than just current username #11

Closed
samyerkes opened this issue Jan 21, 2015 · 2 comments
Closed

Retrieving more than just current username #11

samyerkes opened this issue Jan 21, 2015 · 2 comments

Comments

@samyerkes
Copy link
Contributor

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.

@XavRsl
Copy link
Owner

XavRsl commented Jan 23, 2015

Hi there. Thanks for your message.
The way I use CAS is only to retrieve the username, then I perform an LDAP search (with my LDAP package) collecting all the stuff I need from the username.
There's another way to handle things. This CAS package is only a wrapper for phpCAS library, meaning you can use all the phpCAS methods as long as you use \phpCAS in your code. But what you are looking for is an implementation like in this example, using SAML :
https://github.com/Jasig/phpCAS/blob/master/docs/examples/example_advanced_saml11.php
It is not yet possible in this package as I haven't yet implemented the possibility to use the SAML_VERSION_1_1 in the client method to initialize the session. Only CAS_VERSION_2_0 and proxy are available at the moment.

Hope this helps

Xavier

@samyerkes
Copy link
Contributor Author

👏 Thanks for your reply @XavRsl. I'll definitely look into this stuff, but appreciate you helping me head in the right direction!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants