Skip to content

Conversation

@LukasReschke
Copy link
Member

This adds some authentication to the updater using a shared secret in config.php. The whole process is cookieless and thus if somebody closes the tab all authentication is gone (which is desired from a security PoV)

To test this define an updater.secret in config.php and try to access it with a valid or invalid token.

The next step is to add the automagic login from core once this is in. We can do that using the new updatenotification app at owncloud/core#22238.

@VicDeo Please review.

@LukasReschke LukasReschke added this to the 9.0-current milestone Feb 9, 2016
define('CURRENT_DIR', getcwd());
}

session_start();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LukasReschke please leave this in place. I use session to store info between ajax requests. :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Back it is 😄

@LukasReschke
Copy link
Member Author

PS: The styling sucks. But this is something that we or @jancborchardt can fix later 🙈

@VicDeo
Copy link
Member

VicDeo commented Feb 9, 2016

@LukasReschke as or me I just steal markup and assets from core 🃏

This adds some authentication to the updater using a shared secret in `config.php`. The whole process is cookieless and thus if somebody closes the tab all authentication is gone (which is desired from a security PoV)

To test this define an `updater.secret` in `config.php` and try to access it with a valid or invalid token.

The next step is to add the automagic login from core once this is in. We can do that using the new updatenotification app at owncloud/core#22238.
@VicDeo
Copy link
Member

VicDeo commented Feb 9, 2016

@LukasReschke You're magician!
👍

LukasReschke added a commit that referenced this pull request Feb 9, 2016
Add authentication to updater
@LukasReschke LukasReschke merged commit 2a86efb into master Feb 9, 2016
@LukasReschke LukasReschke deleted the add-auth branch February 9, 2016 17:26
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

Successfully merging this pull request may close these issues.

3 participants