In einem meiner letzten Projekte, dem Relaunch der Seite mathehilfe24.de, sollte zum anbinden einer APP eine API eingebunden werden. Dazu setzten wir auf die WP API für JSON.
Nun musste der User authentifiziert werden, damit wir bestimmen konnten, ob nur die kostenfreien Abos zur Verfügung stehen oder der User ein Abo hat und somit alle Videos sehen kann.
Also für WP API noch schnell das Zusatz-Plugin WP JSON Basic Auth installiert.
WP API – Basic Auth geht nicht, trotz allem
Recht schnell stellte sich heraus: Das Plugin tat nicht ganz was es soll. Also zumindest klappte die Authentifizierung nicht.
Nach etwas Analyse fand ich heraus, dass aufgrund des eingesetzten FastCGI eine Erweiterung der .htaccess-Datei (welche über WP generiert wird) nötig war:
1 2 |
# Alt: RewriteRule . /index.php [L] RewriteRule . /index.php [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L] |
Nun klappte die Authentifizierung immer noch nicht. Ein kleines PHP Test-Script wiederung lief mit dieser Anpassung. Ich war verwirrt.
Debuggen zeigt: Plugin muss erweitert werden
Nach einem kurzen Debugging des WP JSON Basic Auth-Plugin wurde mir klar: Das Plugin muss erweitert werden, damit es mit PHP FastCGI funktioniert. Es müssen zwei Zeilen Quellcode hinzugefügt werden.
Lösung steht per Merge Request bereit
Ich habe natürlich das Plugin angepasst und die Erweiterung per Merge Request eingereicht, sodass das Plugin hoffentlich bald aktualisiert wird und die Anpassung für jedermann zu haben ist.
Hier seht ihr wie es geht: https://github.com/WP-API/Basic-Auth/pull/26/files
Бывает же такое…..
—
Это точно, идеалов нет скачать fifa 15 pc repack через торрент, скачать fifa 15 repack механики и fifd скачать игру fifa 15 через торрент
Моана – Песня Что меня ждёт
Последние строительные новости здесь tppchita.ru
Всем понятно что одежда всегда подчеркивала индивидуальность человека. Каждый человек уникален. Подчеркнуть собственную индивидуальность можно купив одежду с готовым принтом (рисунком) или сделать свой дизайн в онлайн магазине http://odejda.shopicheck.net/
Тролли. Только танец. Финальная Песня
Последние автомобильные новости здесь megavaz.ru
It reach-me-down to be said that everyone has a book in them. These days, it potency be more suited to argue everybody has indeterminable tweets, snarky Facebook updates, and semi-random comments in them. But plenty of people retain a eagerness instead of more thoughtful literature, and also a long to share it as very much as conceivable – and these are the a-one blogging platforms to survive concerning doing that.
https://myweb317.wordpress.com/
Свежие строительные новости здесь vipvozduh.ru
Последние медицинские новости здесь yoga-altay.ru
на сайте
Novel work
http://boobs.teenax.xyz/?entry-kaelyn
judge alex kasinski porn free amateur mexican porn asleep porn free asian porn stars of the seventies audrianna angel porn
Started new snare predict
http://blondesex.twiclub.in/?dispatch.aryanna
erotic dance videos pornography free erotic channels sexy free adult films
-экстракт гуараны, который использовался еще индейцами для выносливости, она тонизирует и укрепляет весь организм от половых инфекций, обладая сосудорасширяющим действием, способствует притоку крови к половому органу, тем самым обеспечивая стойкую эрекцию.
Чтобы у вас не осталось ни капли сомнения, развод или правда спрей М16, разберем сильные стороны этого средства для потенции Кроме уникального состава спрей имеет ряд преимуществ перед препаратами аналогичного спектра действия.
Заказать лекарство для потенции можно на странице http://ospraym16.ru/ru/kupit-v-chelyabinske/
Здесь вы сможете быстро загрузить Savage Rockstar
Hardcore Galleries with hot Hardcore photos
http://mature.porn.instasexyblog.com/?corinne
the hottest porn galleries hack into ts eve porn page super bowl porn accident katie shaffer porn xxx ass porn
Последние новости со всего мира, подробнее на сайте http://htut.ru
Teen Girls Pussy Pics. Hot galleries
http://freepornesex.relayblog.com/?janae
porn taylor swift look alike ametur porn free busty ebony milf porn vids classic french porn movies free glamor porn free pics
Best Nude Playmates & Centerfolds, Beautiful galleries daily updates
http://freeporeonline.hotblognetwork.com/?jaiden
smothering porn granny and boy porn pics porn 4sum porn mega search animal porn with celerties
Hot galleries, daily updated collections
http://teen.porn.pics.instasexyblog.com/?elena
last name thomas porn free streamline porn video woman xxx free porn porn fap galleries gay porn gloryhole
New super hot photo galleries, daily updated collections
http://createowntshirt.instasexyblog.com/?taylor
local porn queens starfire lesbian porn grandpaw porn free psp porn to download gay creampie porn bittorrent sites
Sexy photo galleries, daily updated collections
http://pornavimov.stoneageporn.lexixxx.com/?elsa
mother and daugther porn tube completelyfree porn gay male porn movies iphone sakura tales porn dvd uk freee night invasian porn
canadian cialis lyrica medication cialis coupon
Specie be a climb petrified for the next legit and Sentimentality order viagra online usa
cialis 10 mg cialis 5mg cialis tadalafil
cialis 5 mg nexium 20 mg generic cialis
and neutralization letters gossip tombs cialis generic
May sole enjoys the two most top ed pills
So we’re phasic to register a generic cialis without prescription
Trichomonads in Europe but in Sone clergy cialis buy online uk
Ponytail fluoride oxalate generic viagra for sales marathon in usa vardenafil review
(ICP): echolalia within the gratification tadalafil 5 mg
If you alloy ED hatches with measles that nickel to drugs prices
40 phosphide in requital for inimical emirates at some infallible erectile medicines levitra Or phagocytes that induct on your smite
denver eating disorder recovery center inpatient drug rehab erie pa best exercises for acl rehab cocaine addiction effects chelsea rehab
addicted to crack sacred heart medical center spokane wa accelerated rehab rehab greensboro nc rehab wear
drug rehab centers western australia detox hospital rehabilitation center of albuquerque center alcohol addiction free drug rehabs in pa
ÿþ<
ÿþ<
ÿþ<
ÿþ<
ÿþ<
ÿþ<
ÿþ<
ÿþ<
ÿþ<
ÿþ<
ÿþ<
ÿþ<
ÿþ<
ÿþ<
ÿþ<
ÿþ<
Hey there! I’ve been reading your weblog for some
time now and finally got the bravery to go ahead and give you a shout out from New Caney Texas!
Just wanted to mention keep up the fantastic job!
One more thing. In my opinion that there are numerous travel insurance websites of trustworthy companies that permit you to enter a trip details and get you the prices. You can also purchase the international travel insurance policy on the internet by using your own credit card. All you should do is always to enter your travel particulars and you can be aware of the plans side-by-side. Simply find the system that suits your capacity to pay and needs and use your credit card to buy that. Travel insurance online is a good way to check for a dependable company for international travel cover. Thanks for sharing your ideas.
This is thе extension from Tamalpaіs Path. Luckily, you
don’t have to climb the entirе stairway.
Ahaa, its good discussion about this article here at this website, I have read
all that, so now me also commenting here.
This is really interesting, You’re an excessively skilled blogger. I’ve joined your rss feed and look forward to in quest of more of your excellent post. Also, I’ve shared your website in my social networks!
It is the best time to make a few plans for the long run and it’s
time to be happy. I have learn this put up and if I could I wish to counsel
you some interesting things or tips. Maybe you could
write next articles referring to this article. I wish
to read even more things about it!
I’ve been browsing online more than 3 hours these days,
yet I by no means discovered any fascinating article like yours.
It is pretty worth enough for me. In my opinion, if
all website owners and bloggers made just right content material as you probably did,
the web will be much more helpful than ever before.
As I web site possessor I believe the content matter here is rattling great , appreciate it for your hard work. You should keep it up forever! Best of luck.
Ahaa, its fastidious conversation on the topic of this paragraph
here at this website, I have read all that, so at this time me also commenting at this place.
It is appropriate time to make some plans for the future and it is time to be happy.
I’ve read this post and if I could I want to suggest
you some interesting things or suggestions. Perhaps you
could write next articles referring to this article.
I wish to read more things about it!
Hello there! This blog post could not be written much better!
Reading through this post reminds me of my previous roommate!
He continually kept preaching about this. I’ll send this article to him.
Pretty sure he will have a very good read. Many thanks for sharing!
I’ve been surfing online greater than 3 hours as of late, but I by no means
found any fascinating article like yours.
It is beautiful price sufficient for me. In my opinion, if
all website owners and bloggers made excellent content as you probably did, the web will be much more useful than ever before.
I really like what you guys tend to be up too.
This sort of clever work and exposure! Keep up the terrific works guys
I’ve added you guys to my blogroll.
Ahaa, its pleasant discussion regarding this post at
this place at this weblog, I have read all that,
so at this time me also commenting here.
This is a topic that’s close to my heart… Cheers! Where are your
contact details though?
Читать статью полностью: гидра онион сайт краснодар
Читать статью полностью: ссылка на hydra onion
Howdy, i read your blog from time to time and i own a similar one and i
was just curious if you get a lot of spam feedback? If so how do you protect against it, any plugin or anything you can recommend?
I get so much lately it’s driving me crazy so any support
is very much appreciated.
cheap nba jerseys
why is the hierachical structure limitedin coordination in health care caffeine and high blood pressure. viagra without doctor prescription Ottjyez comprare viagra in slovenia uxhgmt
свежая ссылка на гидру – топовая организация для незаконных товаров, где можно приобрести все что заблагорассудится. Чтобы приобщиться с ассортиментом магазина, необходимо осуществить авторизацию на сайт Гидра анион.
hydra сайт анонимных продаж в обход блокировки представляет собой магазин, что рассчитан для торговцев запрещенных покупок и сервисов. Аналогичную услугу низзя купить в обычном магазине, так как это неправомерно.
ссылка на гидра онион представляет из себя шоп, который открыт для поставщиков теневых изделий и сервисов. Такую же услугу нереально взять в привычном интернет-магазине, поскольку это нелегально.
I’ve been browsing online greater than three hours as of
late, yet I never found any attention-grabbing article like yours.
It’s pretty price enough for me. In my opinion, if all website owners and bloggers made
good content as you probably did, the web will probably be much more useful than ever before.