Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you run in localhost an app that use Twitter OAuth?

Tags:

oauth

twitter

When you edit your app settings at Twitter.com, you can asked for a return url, but you can set it to localhost/return. Can you?

I think this is useful in developing time.

When I fill the form with this url: http://localhost/return

I get this error: Not a valid URL format

like image 212
Juanjo Conti Avatar asked Feb 21 '10 16:02

Juanjo Conti


People also ask

Can you use localhost as a callback URL?

The callback localhost is an easy collision point, especially where the initiation of the authentication, and callback are separated. 3). Due to poor deployment practices, or (unintentional) ignorance, often if localhost callbacks are setup in DEV envs, they end up being pasted into the PRD envs.

What is callback URL in twitter oauth?

As users work through these flows, they need a web page or location to be sent to after they have successfully logged in and provided authorization to the developer's App. This follow-up webpage or location is called a callback URL.

How do I create a twitter callback URL?

Enable 3rd Party Application in TwitterClick "App Settings". Scroll down to your app and click the settings (cog) icon. Scroll down to "Authentication settings" and click "Edit". Toggle "Enable 3-legged OAuth" to be on, and we'll need to fill in two properties, Callback URLs and Website URL .


1 Answers

http://127.0.0.1/return will do the trick!

like image 77
Juanjo Conti Avatar answered Oct 16 '22 20:10

Juanjo Conti