]> git.immae.eu Git - github/wallabag/wallabag.git/commit
Add ability to match many domains for credentials
authorJeremy Benoist <jeremy.benoist@gmail.com>
Tue, 23 Apr 2019 20:28:36 +0000 (22:28 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Tue, 23 Apr 2019 20:39:31 +0000 (22:39 +0200)
commitf45496336f5bbd31b69553fcfae9cdfd03b280cc
treecd085115f041cf0e56a5c5a23dd2706160f2950d
parentbfd69c74e5b4f2ebfcb304b1983bf771c2bb11f7
Add ability to match many domains for credentials

Instead of fetching one domain, we use the same method as in site config (to retrieve the matching file) and handle api.example.org, example.org, .org (yes the last one isn’t useful).
If one of these match, we got it and use it.
15 files changed:
src/Wallabag/CoreBundle/GuzzleSiteAuthenticator/GrabySiteConfigBuilder.php
src/Wallabag/CoreBundle/Repository/SiteCredentialRepository.php
src/Wallabag/CoreBundle/Resources/translations/messages.da.yml
src/Wallabag/CoreBundle/Resources/translations/messages.de.yml
src/Wallabag/CoreBundle/Resources/translations/messages.en.yml
src/Wallabag/CoreBundle/Resources/translations/messages.es.yml
src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml
src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml
src/Wallabag/CoreBundle/Resources/translations/messages.it.yml
src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml
src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml
src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml
src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml
src/Wallabag/CoreBundle/Resources/translations/messages.th.yml
tests/Wallabag/CoreBundle/GuzzleSiteAuthenticator/GrabySiteConfigBuilderTest.php