Tsim cov xwm txheej

Disciple.Tools Mobile App Plugin

cov Disciple.Tools Mobile App extends lub Disciple.Tools system txhawb nqa mobile app kev koom ua ke.

Team

Nyob ntawm Repo

teeb

Cov plugin no tau ntim nrog JWT plugin.

Yog tias koj tau txais qhov yuam kev xws li "Tsuas yog cov neeg siv lees paub tuaj yeem nkag mus rau REST API" los ntawm lub app ces koj yuav tsum tau hloov kho koj .htacce Debugging: ua daim ntawv thov rau POST./wp-json/jwt-auth/v1/token (nrog username thiab password post teb) kom tau txais lub token.

NCEJ /wp-json/jwt-auth/v1/token/validate nrog rau lub token nyob rau hauv lub Authorization hearer li Bearer {token}. Yog tias koj tau txais qhov yuam kev no: "Kev tso cai header tsis pom" ces koj yuav tsum hloov kho koj .htaccss nrog:

RewriteEngine On
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]

Los yog nrog:

SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

Paub Teeb Meem

Peb tau pom qhov tsis sib haum xeeb thaum qee cov plugins raug teeb tsa uas tiv thaiv DT Mobile App plugin los ntawm kev ua haujlwm raws li qhov xav tau. Cov plugins thiab hosts hauv qab no tau pom tias muaj teeb meem:

  • JetPack ntau versions ntawm ntau tus neeg muab kev pabcuam hosting thiab txawm tias nws tus kheej yog tus tswv
  • Creative Mail by Constant Contact v1.2.1 ntawm Bluehost

Kuj tseem yuav muaj kev tsis sib haum xeeb yog tias koj tseem siv lwm tus JWT Token muab kev pabcuam plugin xws li: https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/

Basic Tsim tswv yim

Basic Tsim tswv yim