kamov
Forum Replies Created
-
Forum: Plugins
In reply to: [JSON API User] Can’t create userI understand, what you suggest, I have try already yesterday.
this is my steps using your existing API:
1) curl https://mywordpress.com/api/user/generate_auth_cookie/?username=$username&password=$password
Then I save response inside $response, and I retrieve $cookie, and then call:
2) curl https://mywordpress.com/api/user/validate_auth_cookie/?cookie=$cookie
It return status OK, but if I visit mywordpress.com, I am not logged-in.
Forum: Plugins
In reply to: [JSON API User] Can’t create userI have this case:
1) someone login on my application under https://www.myapplication.com
2) I call API endpoint by passing email and password
3) Then on WP I authenticate this user
4) When my user visit https://www.mywordpress.com, then should be authenticate also there.Forum: Plugins
In reply to: [JSON API User] Can’t create user>then your endpoint will appear /api/user/your_custom/
Yes, work fine this part!
I just guess how to authenticate user now, I am trying also like:
do_action( ‘wp_login’, $user->user_login, $user );
or
wp_authenticate_username_password($user, $user_name, $password);Forum: Plugins
In reply to: [JSON API User] Can’t create userI have implement this:
but user is not authenticated after this…
Any idea how to do this?
Thanks
Forum: Plugins
In reply to: [JSON API User] Can’t create userIt seem that authentication is like after registration and after generate cookie:
$expiration = time() + apply_filters(‘auth_cookie_expiration’, $seconds, $user_id, true);
$cookie = wp_generate_auth_cookie($user_id, $expiration, ‘logged_in’);
but then why user is not logged-in also in WP after ?
I need that after someone register/login on my application, I send to api username/pass for authenticate also on WP:
Thanks
Forum: Plugins
In reply to: [JSON API User] Can’t create userPlease tell me if correct.
1) Copy/Paste function fb_connect() and rename to single_signon
2) Update code for my need
3) Then?
Forum: Plugins
In reply to: [JSON API User] Can’t create userThanks for your reply.
This mean that single signon is not implemented right? I will check into. But I can’t find anywhere docs how to implement custom endpoint.
Can you please tell me the difference between your JSON API plugin and WP API added recently in the core?
I see that you have JSON API Auth, but seem that have the same API of JSON API User, it’s deprecated JSON Api Auth?
Thanks!
Forum: Plugins
In reply to: [JSON API User] Can’t create userIt seem not possible to authenticate, right?
I would like to implement single sign-on with my application
thanks!Forum: Plugins
In reply to: [JSON API User] Can’t create userI use password for register and not user_pass…
Now I was able to register and authenticate, and I receive this cookie:
[cookie] => xxx|1484854666|14auLa3MRK92O9PBHDekdc64NcPXs4KoO83cQfBBA6U|ac548aad1430039a80d09ce9bb902c6a0de5e3552b0730e7c26c971fc97db581
[cookie_name] => wordpress_logged_in_f3305040aa19de6d951fc7bc04a0fd49I set this cookie using setcookie() but then user is not logged-in, how to logged-in user in WP ?
thanks
Forum: Plugins
In reply to: [JSON API User] Can’t create userI found /api/user/generate_auth_cookie
But I notice that the password that I use for register don’t work even when try to login via WP.
What I missing here?
Thanks
Forum: Plugins
In reply to: [JSON API User] Can’t create userI was to create, but after user creation, is returned cookie,
{“status”:”ok”,”cookie”:”xxx|1484847138|xxxxxxxRe|d8a2609e97aa38ee7004c5ac6f6d1504dbc5f507dcc8fa4433e1eaecc4468c11″,”user_id”:6}
so I should create a cookie for authenticate user?
which is name and which the value?
thanks
Forum: Plugins
In reply to: [PayPal for WooCommerce] Error: 'X-Frame-Options' to 'SAMEORIGIN'.it doesn’t work for me, I added
remove_action( ‘template_redirect’, ‘wc_send_frame_options_header’ );
inside functions.php of my template
any idea?Forum: Plugins
In reply to: [Disqus Conditional Load] WOrk with WP 4.6.1hmm.. I was going to check code inside plugins/disqus-comment-system but this folder it’s empty, it’s possible ?
Forum: Plugins
In reply to: [Disqus Conditional Load] WOrk with WP 4.6.1Thanks works fine.
Can I move all JS inline inside my main.js ?
For avoid to have inline JS.
Thanks!Forum: Plugins
In reply to: [AddToAny Share Buttons] Generate FB hashtag while sharingHi, I am not able to start new topic, so I am writing here.
It’s possible to move script on bottom of page because google pagespeed claim that order of script and style is wrong when I active your plugin.Or how to load using:
// Load AddToAny script asynchronously
(function(){
var a = document.createElement(‘script’);
a.type = ‘text/javascript’;
a.async = true;
a.src = ‘//static.addtoany.com/menu/page.js’;
var s = document.getElementsByTagName(‘script’)[0];
s.parentNode.insertBefore(a, s);
})();Thanks