Magento Implementing token based authentication - rest

I saw some documentation here to create token based authentication.
http://devdocs.magento.com/guides/v1.0/get-started/authentication/gs-authentication-token.html
But i cant make it work. The urls in this example are not working.
I am new to magento. Please help in integrating token authentication, because i have to integrate it with mobile app.

Which Magento version are you using? I ran into the same problem until I found out that the token based authentication is available for Magento 2 which is still in Beta while I'm posting this. I'm currently using Magento 1.9.1.1 hence the 404 ;)

There is no direct way to use token based authentication on the Magento 1.x version. You need to write this functionality to you for your own. You can also follow this article for more details.
https://www.ipragmatech.com/magento-token-base-rest-api-for-authentication-and-authorization

Related

OAuth integration in iphone app

I have one problem regarding OAuth integration in iPhone App.
Can anyone help me how to integrate OAuth 2.0 with facebook in iPhone ?
I have referred so many sites about OAuth but I haven't got satisfied answer yet. I referred this question of stackoverflow. There is one good option about ShareKit. But my client wants only OAuth 2.0.
I downloaded framework from google code. I integrated it in my application. But How to use it ? Without guidance I can't implement it in proper way.
I have got stuck between my application and 0Auth 2.0 since last 3 days. Please can anyone give me idea or demo project or any another tutorial ?
Rather than implement OAuth for Facebook, make use of the Facebook iOS SDK which makes handling Facebook Auth and Requests much easier. You can read about it and download it here... http://developers.facebook.com/ios/
I just done a research
This post will really help you
Also please look at the below posts
iphone-facebook-oauth2-graph-api
OAuth and Facebook iPhone SDK
The framework you mentioned in your post is not for OAuth 2, but for OAuth 1.0a.
You can try the OAuth2Client we developed for talking to the SoundCloud API. It's build against draft 10 of the spec. I'm not sure which one is used by Facebook. Unfortunately the spec is not final yet and over the years different services adopted different drafts of the spec.
If you're able to argue with your client I'd try to convince him to let you go with the official iOS SDK. This gives you many benefits like automatic token refresh, single sign on via the official app & much more.

cakephp 2.1 Facebook Connect with Auth

Can any one help me in getting facebook connect working in my cakephp 2.1 app.
Now I am able to user authentication with Auth, I need to add facebook connect to the same.
where users can register themselves by filling a user form or they can sign up through facebook. Googled a lot but not able to get it working.
A tutorial link or an example with complete code will be very useful, I am new to cakephp.
Thanks in advance.
I'm using this plugin and it's working well with my Cake 2.1
https://github.com/webtechnick/CakePHP-Facebook-Plugin
There is a readme on that page ;)

Photobucket IOS integration

could anyone assist in authenticating to photobucket and uploading an image from and iPhone app? I am currently configured with many networks but I can't really find good documentation for the photobucket process. I guess the process is only authenticate and upload using customer key then username and password of the user?
Any help here would be amazing! Thanks in advance!
Jim
Jim, the Photobucket (PB) process for authenticating is modified OAUTH. If you start looking at OAUTH examples you will find that you can authenticate on PB by simply converting a sample over to PB. e.g.: There's an OAuth starter kit set up for LinkedIN by Lee WHitney on Github courtesy of Kirsten Jones. Register an app with PB, get your keys and plug in the keys & correct PB URLs and you will be working. The URLS you need are:-
requestTokenURLString = #"http://api.photobucket.com/login/request";
accessTokenURLString = #"http://api.photobucket.com/login/access";
userLoginURLString = #"http://photobucket.com/apilogin/login";
This will get you logged in but there's a lot more to come. PB have a code page and there is an Objective-C library including a modified OAUTH but it's missing docs so you need to work it out by studying the code. Bitbucket Photobucket code for objective-c
The issue I have is to do with their usage of sub domains and trying to get OAUTH to work with that.
UPDATE: Solved: I have at last worked out how to get a part of the provided API working in my own Xcode project. Basically I added the special Oauth files which enable the requests to be set up correctly to get round the subdomain stuff.
eg: OAuthASIHTTPRequest etc
I'm now getting full album info.
Official documentation for Photobucket API is available at: http://pic.pbsrc.com/dev_help/WebHelpPublic/PhotobucketPublicHelp.htm . You can find examples for login and media uploading.
Client libraries for Photobucket API are at: https://bitbucket.org/photobucket/api/wiki/Client_Libraries . There is a Objective-C one, like SundialSoft mentioned in answer.

Is there any codeigniter authentication library that also supports login with FB/Google/Twitter?

I'm writing my first codeigniter application and I want to have FB/Google/Twitter authentication along with normal authentication system, all well integrated.
Is there any codeigniter authentication library that supports FB/Google/Twitter login(or at least just FB Login)?
For Facebook support, try https://github.com/elliothaughin/codeigniter-facebook
The same github profile used to have an integrated library for all the services you mentioned, but that seems to have been removed.

Using oauth for creating twitter application in iphone

I am creating a twitter application in iphone using oauth. But my application request for:
oauth_consumer_key,
oauth_signature_method,
oauth_signature,
oauth_timestamp,
oauth_nonce,
oauth_version,
oauth_callback,
Please anyone help me how to create all these keys for my application.
In my twitter account xauth is disabled by default. So, how can I enable it in my application?
It's highly unlikely you need to enable xAuth. The Twitter API documentation, specifically the authentication guide explain these parameters in more detail. Also have the OAuth 1.0 spec open to refer to, even if you're using a third party library- you will save your sanity if you understand the mechanics of the token exchange.
You'll need to read up about OAuth. All the fields are part of the standard. Twitter will give you the first one (oauth_consumer_key), and the version number is always 1.0. (Version 2.0 is not yet complete and Twitter doesn't use it.) The others you need to calculate. Or at least find an open source library that does it for you.
As for enabling xAuth, you need to send a message to Twitter. Sounds like they're getting more and more strict about which apps they allow, though.