fenchgroup
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Plugins
In reply to: [گرویتی فرم فارسی] خطا هنگام بروزرسانی ورودی های فرماین مشکل را من هم با فرم هایی که درگاه بانکی دارن پیدا کردم.
شما راه حلی تونستید پیدا کنید؟
پشتیبانی چرا هیچ بررسی نمی کنند بعد از یک ماه مطرح شدن مشکل؟ممنون میشم اگر راه حلی پیدا کردید اینجا به اشتراک بزارید
Hi
I have the same problem.
actually, I use the jso.js library for a javascript client on another side.
but it dose not work currectly.
I installed the OAuth Server plugin and create a client. also, I checked the Authorization Code, Implicit and Allow Implicit options.
there is my WordPress site.
there is a client
and here is my client configuration js code:// Based on https://github.com/andreassolberg/jso/tree/version3 var ROOTURL = 'http://fenchgroup.com'; const RESTROOT = ROOTURL + '/wp-json'; const RESTROUTE = RESTROOT + '/wp/v2/tasks/'; var jso = new JSO({ providerID: "fenchi", client_id: "sO05Jc85OA19V2HUe6GJ2caIYaX0rQ3UF4Zoh8u5", redirect_uri: "http://wpro.ir/taskapp/tasklist.html", authorization: ROOTURL + "/oauth/authorize", debug: true }); // Catch the response after login: jso.callback(); var token = localStorage.getItem('tokens-fenchi'); // Trigger OAuth 2 authentication sequence: function oauthLogin() { jso.getToken(); } // Log out and wipe all memory of the session: function oauthLogout() { jso.wipeTokens(); } // Monitor the login button: $('#login').click(function() { oauthLogin(); }); // Monitor the logout button: $('#logout').click(function() { oauthLogout(); window.location.href = "/"; }); (function() { // If we are on the home page, redirect to tasklist.html: if ( location.pathname == "/" ) { // If we have a token, assume we're logged in: if ( token !== null ) { window.location.href = "/tasklist.html"; } } else { // If we have a token, assume we're logged in: if ( token !== null ) { // Enable JSO jQuery wrapper: JSO.enablejQuery($); } else { // If we're not logged in, redirect to the login page: window.location.href = "/"; console.log(token); } } })();I tested on localhost and a real host. both of theme has the same problem and doesn’t work.
I will glad to hear your advice.
- This reply was modified 7 years, 5 months ago by fenchgroup. Reason: edit links
- This reply was modified 7 years, 5 months ago by fenchgroup.
Viewing 2 replies - 1 through 2 (of 2 total)