Navigation überspringen

[Gelöst] jwt login and unable to submit or delete post

This support ticket is created vor 3 Jahren, 8 Monaten. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Dieses Thema enthält 3 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Luo Yang vor 3 Jahren, 7 Monaten.

Assistiert von: Luo Yang.

Author
Artikel
#2054421

I have develop a web app with apppresser that use jwt login. The system use a iframe with link token.

When I try to delete a post in view o I try to submit a post with cred I lost the login.

The ajax request is not authenticated, is there a way to solve this?

In past I do simply this with login directly in iframe page but now iOs 14 block this possibility

#2054923

Hello,

There isn't such kind of built-in feature within Toolset plugins. For the problem you mentioned above:

When I try to delete a post in view o I try to submit a post with cred I lost the login.

That means you did not submit the request to the WordPress as a logged-in user, so it conduct the problem.

For example, with WordPress built-in "Application Passwords":
https://make.wordpress.org/core/2020/11/05/application-passwords-integration-guide/
each time you send a request to WordPress site, you need to attach the Application Passwords too, so WordPress will take you as a logged-in user.

I suggest you check it with "Jwt login" plugin author, check if it is possible to get and store the logged-in user's cookies, so you can use cookies to send the request.

#2058877

Thanks Luo,

is there a way to send autenticate Ajax request for delete post in view and inpunt new post with cred?

Regards,
Claudio

#2059177

Toolset Forms plugin is a WordPress plugin, it works only within WordPress:
- when you login into WordPress site, you will get a cookie in client browser,
- when you submit Toolset Forms , it will attach above cookie in the request without any problem
as I mentioned above:
You need to check it with "Jwt login" plugin author, check if it is possible to get and store the logged-in user's cookies, so you can use those cookies to send the request.