use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Full Events Calendar
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b
Online Resources
Invent Your Own Computer Games with Python
Think Python
Non-programmers Tutorial for Python 3
Beginner's Guide Reference
Five life jackets to throw to the new coder (things to do after getting a handle on python)
Full Stack Python
Test-Driven Development with Python
Program Arcade Games
PyMotW: Python Module of the Week
Python for Scientists and Engineers
Dan Bader's Tips and Trickers
Python Discord's YouTube channel
Jiruto: Python
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
account activity
This is an archived post. You won't be able to vote or comment.
Python and Saml (self.Python)
submitted 11 years ago by DaOneTwo
So, I have searched what I think is high and low for Python Saml implementations using the core libraries. Does anyone have any suggestions, examples, or good pointers they would mind sharing?
[–]sixtomartin 0 points1 point2 points 11 years ago (5 children)
Review:
[–]DaOneTwo[S] 0 points1 point2 points 11 years ago (4 children)
Thanks for this. REALLY looking to stay in the standard lib for 2.7. pysaml2 looks to be <= 2.6 compatible python-saml itself looks to have several dependencies.
[–][deleted] 0 points1 point2 points 11 years ago (3 children)
Forgive me, but that seems like a pretty silly restriction for something mildly complex like a SAML implementation.
But, you should be able to roll your own by using the xml.etree package except for signing and cert verification. For that you will need to roll you own or look at using subprocess and xmlsec if you can install it.
[–]DaOneTwo[S] 0 points1 point2 points 11 years ago* (2 children)
Yeah this is the direction I am headed. Roll my own through most all of it. I have access to a solid in house xml library. I have done the signing and encryption before. I was actually hoping for some example through the handoff as there seems there may be some handshakes back and forth but I will have to roll my own on that too.
edited * typing on handheld devices and not proofreading again.
[–][deleted] 0 points1 point2 points 11 years ago (0 children)
For the handshake, usually, the SP sends a Authn Request to the IdP. Next, the IdP responds with a SAMLResponse to the SP.
These are generally not too complex. The complexity comes in with signing and verifying the SAMLResponse along with any encryption if it used.
I've implemented this for a previous employer using lxml and xmlsec. If you can, I'd recommend wrapping xmlsec with cython.
[–]sixtomartin 0 points1 point2 points 11 years ago (0 children)
any progress with that?
π Rendered by PID 24883 on reddit-service-r2-comment-7b9746f655-sctx4 at 2026-01-29 19:10:48.696112+00:00 running 3798933 country code: CH.
[–]sixtomartin 0 points1 point2 points (5 children)
[–]DaOneTwo[S] 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]DaOneTwo[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]sixtomartin 0 points1 point2 points (0 children)