Dear Developers,

I am new to ownCloud development and need to develop an app for ownCloud v8.1+ 
that enables users to login without entering a username or without clicking a 
button. All apps that I found so far where user_backends that connect to other 
systems AFTER the user entered his credentials.

Does anyone know about an app coming close to what I need? Even hints on where 
or how to start are very welcome.


My setup. The php application where the user is logged in (Identity Provider) 
is on the same server in the same domain as ownCloud. OC is 'simply' located in 
a directory /owncloud/ beneath the document root.

My first approach was a user backend that simply checked the session of the IdP 
(session names are equal) where user id and name can be found. But the user 
still had to enter any dummy username and password before he could enter 
ownCloud.

In a second try I used the 'remember login' functionality by adding a 
login_token to the database and setting a cookie before redirecting the user to 
ownCloud. This seemed to me more clear and elegant, but I got stuck when a user 
comes for the first time because the users filesystem is not created as it is 
by a normal login. I found a hook in OC\User\Session 

$this->manager->emit('\OC\User', 'preRememberedLogin', array($uid))

Where this->manager is \OC\User\Manager, but don't know how to connect my app 
to this hook.


Thank you for any help.

Christian




_______________________________________________
Devel mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/devel

Reply via email to