I have created a Twitter application and specified the following url as the callback url:
http://www.myapp.com/login
However, when a user comes to my site from the url myapp.com (missing the www prefix) the authentication fails.
Apparently, I cannot have multiple urls. So what can be a workaround?
On the dashboard, https://developer.twitter.com/en/portal/projects-and-apps in one of your apps, Authentication settings “Edit” button, and there should be a “Enable 3-legged OAuth” switch that enables the Callback URL field.
The “User authorization callback URL” is the URL that people are redirected to after they authorize your GitHub App to act on their behalf. This is the user-to-server OAuth flow for GitHub Apps.
Twitter allows you to obtain user access tokens through the 3-legged OAuth flow, which allows your application to obtain an access token and access token secret by redirecting a user to Twitter and having them authorize your application.
You can either
No, you cannot feed multiple URLs to the OAuth service.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With