Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Login Issue #40

Closed
jayshao830413 opened this issue Mar 28, 2014 · 7 comments
Closed

Login Issue #40

jayshao830413 opened this issue Mar 28, 2014 · 7 comments

Comments

@jayshao830413
Copy link

@luxflux
I try to do login by using RestClient.post("cas.xxx.com/login", {:username => "xxx", :password => "xxx", :lt => "xxx"}) from my client side, but after doing that, although my client side web has logged in, but when I visit cas.xxx.com, I found my user doesn't log in. Coule you help me to find out why it doesn't successd

@luxflux
Copy link
Member

luxflux commented Mar 28, 2014

I think you would have to set a cookie with the login data so CASino can detect whether the client is logged in. @pencil, do you know which cookie and which format is needed?

@jayshao830413
Copy link
Author

@luxflux , Thanks for you anwser. I have compared with two different conditions, i see when visit cas.xxx.com/login ,and do login, I see tgt in cookies. But by visiting RestClient.post("cas.xxx.com/login", {:username => "xxx", :password => "xxx", :lt => "xxx"}) from my client side, after successful doing that , I didnt' see tgt in cookies. Maybe thats why it didn't work

@pencil
Copy link
Member

pencil commented Mar 29, 2014

You would have to set a cookie with the TGT that CASino can read yourself.

@jayshao830413
Copy link
Author

Thanks @pencil : )

@luxflux
Copy link
Member

luxflux commented Apr 2, 2014

This seems to be resolved. Closing...

@luxflux luxflux closed this as completed Apr 2, 2014
This was referenced May 25, 2014
@nicolasiensen
Copy link

I suggested a new way to auto login user in #46

@nicolasiensen
Copy link

@pencil What do you mean with: set the TGT cookie? Could you give an example of how is the right way to write on this cookie in order to login an user with Casino?

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

No branches or pull requests

4 participants