authenticating a twitter user id using twitter api - python-3.x

i am able to fetch all the data based on my developer account's keys from tweepy api. But i am not sure how to dynamically authenticate a new user id with the help of twitter api and fetch information of that.

Related

Facebook Graph API - NodeJS - Server Side Authentication

I am implementing a social management tool.
LIKE there are 2 businesses BUSINESS_A and BUSINESS_B. Both of their Facebook pages are created using the same Facebook account (fb-page#xyz.com).
And the Facebook App I have created using fb-integration#xyz.com.
Now, I can not give fb-pages#xyz.com or fb-integration#xyz.com credentials to both businesses.
How can I generate an access key server side, without the user login as they are not the creator?
If I make their Email Id as admin on the page. Will that work?

How do i setup a service that collects users credentials authenticate the user with google gmail api and fetch mails from their inbox

I am building a service where I need to fetch certain messages from different users' Gmail inboxes. I have searched for a way to do this, only to keep stumbling on google OAuth flow. Is there a way I can authenticate with Gmail API, without the OAuth flow, and access different users inbox and fetch the messages? Because I won't be needing a GUI as this service will run on a server.
The first thing you need to understand is the diffrence between private and public data. Public data is data that is data that you can access without permisison. For example public videos uploaded to YouTube. Google holiday calendars on Google calendar.
private data is data that is owned by a user, to access that data you need the permission of a user with access.
To access some ones personal Gmail email account you need their permission the only way to get that permission is to use Oauth2. YOu will need to use oauth2 to request consent of the user once the user has consented if you also requested offline access you will get a refresh token. The refresh token can then be used by your backend system to request a new access token when ever it needs to. This access token can then be used to access the Gmail api.
As you have stated these are standard gmail accounts you want to access. There is no other option. A user must grant you access to their data.

Is it safe to save JWT on UserState/Azure Blob Storage with MS Bot Framework?

I have an API Service where users can manage ToDo's and I want to create a Bot to allow Signed Up users to create ToDos on their accounts using my Slack Bot.
The steps that I'm thinking of are:
My Bot will show the user a message asking him to authenticate
The API will send to the user's mobile phone a verification code
The user will write that code in the chat with my Bot
My bot will make an HTTP request to the API Service to validate that code
Then the API will authenticate the user and generate a JSON Web Token for that user.
The API will return this JWT to my Bot
And my bot will storage this token using Azure Blob Storage.
Now, when the user wants to create a ToDo, the steps should be the following:
The user enters something like "Pay bill tomorrow".
My bot will retrieve the user JWT from the Azure Blob Storage
Then my bot will make an HTTP request to the API service using this token
And the API can authenticate the user by checking the Token and create the ToDO.
By doing that, I'll be able to keep the user logged in for 1 year and the user can request the bot to create ToDos on their behalf without the need to authenticate again during this period.
However, I don't know if I'm missing some security issues in this process.
Is there a better way to do that?
thanks!
Here is the link to Bot-authentication that demonstrates how to integrate OAuth providers for user authenticated flows. Bot Service collects no customer data for service improvement.

PubNub grant auth key using REST API

What I want is grant a specific auth key with specific chat rooms using the PubNub REST API.
Can that be done?

To get user id from username in instagram api

Any ways to get user id from username in instagram api?
Other than user/search endpoint and instagram front code cracking (https://instagram.com/{username}/?a__=1)
You can get user id from username using instagram api.
Register your app here:https://www.instagram.com/developer and submit review for public_content permission.
Using their https://www.instagram.com/developer/endpoints/users/#get_users_search
api you can get information about user.
To get working above api make sure you have public_content permission approved for your app.

Resources