centipede icon indicating copy to clipboard operation
centipede copied to clipboard

Session authentification & Ignore URLs via config file

Open jjsaunier opened this issue 9 years ago • 5 comments

./bin/centipede run http://mywebsite.com --auth-method=session --session-name=SESSNAME --session-id=peigs2pqfjkdr4ms6k3epaamr2 --ignore-url=/app_dev.php/user/logout
  • Ignore url (one or many)
  • Auth user via authenticator, by default we provide SessionAuthenticator, --session-name is PHPSESSID by default. And you can add your own. Auth is totally optional.
  • Fix depth, was not given to centipede-crawler before.

PR on centipede crawler is coming.

jjsaunier avatar Dec 17 '14 17:12 jjsaunier

I would like to support configurable list of ignore urls via config, see https://github.com/umpirsky/centipede/issues/2.

Standard auth methods are also in planning, but I would like to keep crawler interface simple, including constructor.

umpirsky avatar Dec 17 '14 17:12 umpirsky

Now you can do it

./bin/centipede run http://github.com -c /home/user/[..]/centipede.yml

with :

ignore:
    - '/blog'
    - '/explore'

for example

jjsaunier avatar Dec 17 '14 18:12 jjsaunier

Cool, I will revisit this PR and do it in separate PR to split config implementation and auth.

I also want config to be in the root of target project like for Behat and PHPSpec.

umpirsky avatar Dec 17 '14 20:12 umpirsky

Any progress on this ? I just got a legacy project to manage that needs authentication and I would love to use centipede to ensure each page is accessible upon migrations/changes.

gnutix avatar Feb 20 '15 00:02 gnutix

@gnutix No, sorry. I didn't have chance to work on it lately.

You can fork it and adopt to your needs, then post link here and we will see what can be reused/merged.

umpirsky avatar Feb 20 '15 09:02 umpirsky