Experts,
I am a novice in implementing the SSO (SAML) for a django application. I want to use SAML integration using djangosaml2/pysaml2. Any best tutorial with example is very much helpful.
First thing : What you have tried ?
Before asking your question you should tell community what you tried and you caught up with some issues.
However you are new here I would like to answer it for you.
There are many SAML2 packages are available on pypi please go through it.
One of them is Here
You have to get the xml from your IDP (Identity provider) and you have to ask your IDP to configure your metadata in IDP system.
The above library will help you to generate your metadata.Please follow the steps given in documentation
Try and then if you get some issue do let us know.
Related
All I know about API authentication is just password and bearer token. (and NO AUTH too ;)) And I got this OAuth problem when I was trying to use audiomack API.
https://www.audiomack.com/data-api/docs
This is their API documentation. They say
Rather than manually creating code for OAuth, we recommend instead using one of the pre-built libraries available for your programming language.
And I got piles of python libraries here: https://oauth.net/1/#:~:text=Max%20Countryman%20maintains,Tornado%20Auth%20package
Because I am new to OAuth, and also do not know how to get this consumer key and secret from my audiomack account (newly created for test use), these repos give no meaning to me.
Is there anyone who can help me out? I want to know how to make a proper OAuth step to use this API.
A step-by-step guidance or relevant link will be appreciated. Thanks in advance.
I am wondering if someone has sample code of a working python connection to the Quickbooks API. From the documentation of Intuit-Oaut, Python-Intuit, or intuit developer docs I cant figure out how to connect. Would like to connect and then post sample JSON (for example a sales receipt), but cant seem to connect.
I am new to python and new to quickbooks api so apologies if this seems basic or am missing a step.
Followed steps on:
-https://oauth-pythonclient.readthedocs.io/en/latest/user-guide.html#authorize-your-app
-https://github.com/intuit/oauth-pythonclient
-https://github.com/sidecars/python-quickbooks
-https://developer.intuit.com/app/developer/qbo/docs/develop/authentication-and-authorization
Check out the fo_qbo repo. You need an Intuit developer account and (perhaps obviously but for the avoidance of doubt, Admin-level access to a QBO comapny instance) to use it.
I've searched on google and have taken a look at the facebook site for the apis, but facebook does not have an official SDK for python. I looked at the third party api for python listed on their site that could be used to communicate with facebook. After having visited their official site and github repository there is a small readme file that shows basic usage, it seems to assume that you are already connected to facebook, and the example at the end of that page shows a cookie example.
The short examples seem easy enough but there is no explaination of anything and i dont find any more documentation about anything else.. there does not seem to be any information about all available methods you can use with the api..where do the people who are using this api get the documentation to find the methods available so they are able to do work with this ?
Since i guess people are pretty tired of signing up for yet another service i would like to offer to sign in with their facebook and twitter accounts (although thats a no no for the ad people who would like to have access to the user profile in order to have targeted words/links that generate revenue). Im using django and have taken a look at the django-facebook api as well but the documentation seems to just point to the github repository which doesnt have any documenation, almost just like the other api pointed out above. Basically i dont find any documenation about how to use the apis except from the small examples.
And like always, i appericiate your time answering this, always nice to add an explaination to any code so the answer is a little more usefull, thanks.
My info might be a little bit out of date as I was working at a startup implementing a Python backend on Google AppEngine that interfaced with Facebook, used FQL, AppEngine datastore etc, about a year and half ago.
There are several third party APIs you can use, for instance, https://github.com/jgorset/facepy or https://github.com/pythonforfacebook/facebook-sdk. The reason there is no 'documentation' on the github site is because it implements access to the API that IS documented on Facebook's developer pages https://developers.facebook.com/docs/graph-api/.
But that is in a perfect world. My experience with the Facebook APIs is that they don't always do what is said on the dev pages. You don't get consistent return data, FB Realtime API not/inconsistently notifying for certain connections (music, movies, books, tv). Unfortunately, I think they have many non-documented APIs that are only available to the big app players.
Where I got my real world working info and learned how to access Facebook using Python was right here on stack overflow.
I'm a Simple DB newb and am looking for some step-by-step instructions about how to generate the correct signature. Some of the tutorials/sample code I'm seeing say it's a combination of a timestamp, the service you're using, and the method you're requesting be done on that service. Is this correct? I speak python if someone can provide code to generate it...
You'll want to use boto. It's documentation is really great, and they have a page specifically about SimpleDB.
You may like to view this: http://www.youtube.com/watch?v=9YEGwmYejt4
I want to let users use their google account to login to my website. Exactly the way SO lets me. Can anyone please point in the right direction? I'm assuming the oAuth library is to be used but what I'd really like is a snippet of code I can directly copy paste and get this to work.
It's not OAuth particularly that you need (OAuth is for authorising access for one website to specific private content held on another), but OpenID - which is meant for authentication rather than authorisation. (Some sites, like Twitter, do provide authentication services via OAuth, but that's not what it's primarily for.) I have used python-openid which is fairly straightforward to use, or you can look at django-openid - though it admits to being incomplete, you could get some idea of how to implement OpenID support.
The problem's a little too involved to admit a copy-and-paste solution, but it's not especially hard to do this.
Update: piquadrat's link (in he comment) is definitely worth following.
You may want to check out django-piston which is a mini-framework with oAuth built in. Here's a tutorial on how to set it up.
You might consider using Django-Socialauth, as it supports
Twitter
Gmail
Facebook
Yahoo (essentially openid)
OpenId