cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic login SSO

iann
Champ in-the-making
Champ in-the-making
Hi,

I'm trying to create a mechanism to automatically log users in to both Alfresco Explorer and Share when they are passed through from another site. Having looked at the wiki, it seems that the external authentication subsystem is probably the best one to go for - does this only work in 3.2r2?

Secondly, is there a way that I can get an alf_ticket and log into Share or Explorer using this?

Any advice would be greatly appreciated.

Cheers,
Ian
6 REPLIES 6

iann
Champ in-the-making
Champ in-the-making
I solved this in the end by creating a webscript that took post / get parameters and then posted them into share - had to do a client side JS call to the page to determine if the user was logged in first.

Definitely not the neatest solution, but will work as an interim - looking to build a servlet to make the process fully server side in the future.

It would be great if the JavaScript API could log users in and out….

carbotex
Champ in-the-making
Champ in-the-making
Hi Ian,

I'm also working on automatic login SSO. Could you please elaborate your solution? How did you do it with webscript to log into Alfresco Explorer and Share?

pankajmi
Champ in-the-making
Champ in-the-making
Hello ianN,
I have sent you a private message regarding this problem, Can you please reply ?

Pankaj

iann
Champ in-the-making
Champ in-the-making
Hi There,

Just got your messages, yes I'd be happy to post the code up here, not sure how production ready it is as it was more a workaround.

Essentially I built a web service that takes in paramaters (user name / password) from the querystring, and then does a javascript (client side) post into Share. So not the most secure or tidy method, but it gets the job done.

At some point I suspect I'll re-visit it and make it server side, but this was a 'quick and dirty'' route.

If you still think it'll be handy, let me know and i'll stick it up here.

Regards,

Ian

pankajmi
Champ in-the-making
Champ in-the-making
Hi IanN,
thanks for reply. Yes can you please post it here. I am also trying server side implementation, but by the time, can you please share your client side solution.

Thanks
Pankaj

iann
Champ in-the-making
Champ in-the-making
Hi,

See attached - I'll keep you updated if I get any further with the server side implementation.

http://www.uiwe.co.uk/files/AutoLogin.zip

Ian