That was what I was thinking of too, but isn't there a way to do it without frontend cheating?
Any ideas about how to connect to the hook in user\session? Christian -------- Ursprüngliche Nachricht -------- Von: Klaus Herberth <[email protected]> Gesendet: Friday, October 16, 2015 08:39 AM An: List for Developers of ownCloud <[email protected]> Betreff: Re: [owncloud-devel] What is the best way to acquire real SSO bypassing login screen You could use your first approach + a js snippet which submits the form. Regards Am 15. Oktober 2015 10:11:39 nachm. schrieb Christian Ludwig <[email protected]>: > 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 _______________________________________________ Devel mailing list [email protected] http://mailman.owncloud.org/mailman/listinfo/devel
_______________________________________________ Devel mailing list [email protected] http://mailman.owncloud.org/mailman/listinfo/devel
