-->
This article shows how to configure Azure App Service or Azure Functions to use Twitter as an authentication provider.
Head on over to the Twitter website and login to your account. You can set up two-factor authentication from Twitter’s own iOS app, but not everyone uses that so I’m focusing on the web-based. Information provided by Twitter App (Could not authenticate you.) Kindly, please guide me that when I did launch the Twitter App by entering UserID and Temporary App Password the massage shown ( 'Could not authenticate you.' ) so, what might be reason rise for that?
To complete the procedure in this article, you need a Twitter account that has a verified email address and phone number. To create a new Twitter account, go to twitter.com.
Mac Twitter App Could Not Authenticate Download
Register your application with Twitter
Sign in to the Azure portal and go to your application. Copy your URL. You'll use it to configure your Twitter app.
Go to the Twitter Developers website, sign in with your Twitter account credentials, and select Create an app.
Enter the App name and the Application description for your new app. Paste your application's URL into the Website URL field. In the Callback URLs section, enter the HTTPS URL of your App Service app and append the path
/.auth/login/twitter/callback
. For example,https://contoso.azurewebsites.net/.auth/login/twitter/callback
.At the bottom of the page, type at least 100 characters in Tell us how this app will be used, then select Create. Click Create again in the pop-up. The application details are displayed.
Select the Keys and Access Tokens tab.
Make a note of these values:
- API key
- API secret key
Note
The API secret key is an important security credential. Do not share this secret with anyone or distribute it with your app.
Add Twitter information to your application
Go to your application in the Azure portal.
Select Settings > Authentication / Authorization, and make sure that App Service Authentication is On.
Select Twitter.
Paste in the
API key
andAPI secret key
values that you obtained previously.Select OK.
By default, App Service provides authentication but doesn't restrict authorized access to your site content and APIs. You must authorize users in your app code.
(Optional) To restrict access to your site to only users authenticated by Twitter, set Action to take when request is not authenticated to Twitter. When you set this functionality, your app requires all requests to be authenticated. It also redirects all unauthenticated requests to Twitter for authentication.
Caution
Restricting access in this way applies to all calls to your app, which might not be desirable for apps that have a publicly available home page, as in many single-page applications. For such applications, Allow anonymous requests (no action) might be preferred so that the app manually starts authentication itself. For more information, see Authentication flow.
Select Save.
You are now ready to use Twitter for authentication in your app.
Next steps
- App Service Authentication / Authorization overview.
- Add authentication to your Mobile App: iOS, Android, Windows Universal, Xamarin.Android, Xamarin.iOS, Xamarin.Forms, Cordova.
Twitter “Could Not Authenticate You” in Notification Center
Is anyone else seeing a problem with 10.13.4 where the Twitter module in the Notification Center fails to load tweets with the message 'Could Not Authenticate You' for both the Trending and Highlights subsections? I have removed my Twitter account from the Internet Accounts and put it back and while it seemed to accept my credentials, this doesn't change the problem. Anyone else seeing this? I'm not sure if this is a bug, a problem with my configuration, or 'pilot error', so if you could try this out and let me know what you see I would appreciate it. Thanks.
iMac with Retina 5K display
Mac Twitter App Could Not Authenticate Google
Posted on