Last active
August 25, 2016 08:02
-
-
Save tomgross/da912087a673c20e7cae688e490a89b9 to your computer and use it in GitHub Desktop.
Extract authenticator in Zope / Plone form
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
curl -u admin:admin http://localhost:8080/Plone/portal_quickinstaller/manage_installProductsForm -q | grep -oP '_authenticator.*value="\K[a-z0-9]*' | head -1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
TOKEN=`curl -u admin:admin http://localhost:8080/Plone/portal_quickinstaller/manage_installProductsForm -q | grep -oP '_authenticator.*value="\K[a-z0-9]*' | head -1` | |
curl -u admin:admin http://localhost:8080/Plone/portal_quickinstaller/manage_installProductsForm -p products%3Alist=productA&products%3Alist=productB&reinstallProducts%3Amethod=Reinstall&_authenticator=$TOKEN |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment