i have a django project using django-allauth.
I want to add the ability for users to provide their consent for my web app to interface with the google api.
I think django-allauth has this all neatly packaged away but the docs and the implementation are (appropriately) targeted towards login authentication.
What i want to do is:
display a page where users can click a button that says "Connect my google account"
have users provide their consent on the google page
process the oauthcall back using allauth internals
Is there an example of this somewhere? I tried searching but i think i don't know what keywords to search for.
Any assistance apprecieated
Related
I would like to create a google sign-in popup similar to https://www.reddit.com/. on the right side of this page, you can see "Sign in to Reddit with Google", I want this similar on my website.
See documentation for Sign-in with Google
If you want to give users the ability to sign-in with other providers e.g. Apple, Twitter, etc, then you should checkout Firebase from Google. The documentation for their sign-in can be found here
I am trying to make a python script that queries post notifications from a page I am following on Facebook using Graph API. However, it seems that Facebook made it more restrictive after the Cambridge Analytica scandal, even if you get it from your own account. What is the legal and working way to either query posts or notifications from a public page?
You’d have to start by submitting your app for Page Public Content Access, if you want to get public posts.
For the verification as an individual developer, see https://developers.facebook.com/docs/apps/review#individual-verification
Notifications however are only accessible, if you have admin access to the page.
I have written scripts connecting to the google API to connect to bigquery and google sheets and slides.
However, currently I am trying to write a script that would be able to access a non-google site for which I am required to be signed in with my gmail account to access.
So essentially when I access this site in a browser, I am asked to login using gmail and allow the site to verify my details, and in return I can view the page. If I don't login with google I cannot view the page.
I am not sure how/if the google authentication process for my app could be set up in a way for it to login as if it was myself. But can anybody give me some advice on how I can get my app to pass the google sign-in process, so that my app can access the contents of the website?
Please let me know if I can clarify.
Thanks!
If choosing not to use Google API is okay, and if it is only one specific website that you would like to access, then I would suggest looking into doing this using Selenium. You can simulate the way you use the browser so the script can do it for you. Here is a tutorial on a simple login use-case that might be relevant to your problem.
Hope it helps.
A Linkedin friend's full profile is not viewable without login to our Linkedin account. Is it possible to use cookie or any other alternative way without a browser to do that?
Any tips are welcome!
You may want to check out python-linkedin package link
LinkedIn REST API uses Oauth 2.0 protocol for authentication. In order
to use the LinkedIn API, you have an application key and application
secret. You can get more detail from here.
Thanks #Anzel, but related-profile-views API allows to read past profile view, but not trigger a new view (and therefore notify the user that I visited their profile programmatically). Unless I pop up a new window and load their profile, but then I'll need a browser to do it. Ideally I wanted to achieve it via backend, cURL and cookies, but it it's not as simple as it sounds.
I want to build a Django application where I have a simple button "login using Facebook" and it redirects you to the Facebook page allowing to log in with facebook username and password . When user clicks "login" . It should redirect me to my already defined url where i can display the user's public information from his profile. How this can be achieved ??
Just like 4shared.com allows to login with Facebook . I want something like that but i only want to display its public information of the user.
You should take a look at some of the existing OAuth libraries for django. I'm using allauth, and I can definitely recommend it, even though the documentation is a bit lacking.
Here's a tutorial that helped me a lot when I was starting out:
http://www.sarahhagstrom.com/2013/09/the-missing-django-allauth-tutorial/
As to how to display the Facebook user's public information, you should consult the Facebook Graph API