The prevailing wisdom for getting SAML to work with Python is to install python3-saml, however that library depends on xmlsec. xmlsec does not seem to install on my workstation running Python 3.11+ system or in a Linux Docker container running Python 3.11+ system.
As a result it looks like getting SAML to work in Python 3.11+ will not be happening until/unless a useable and installable SAML library for Python is released.
Thank you for reaching out here on the Okta Developer Forum. We noticed that your question is more closely related to SAML. To ensure you receive the most accurate and timely assistance, we recommend reposting your query on Okta’s Community at: Okta Help Center (Lightning)
Okta’s teams on the Community are better equipped to provide the comprehensive support and guidance you need as they have the specialised knowledge and expertise in SAML.
We appreciate your understanding and are committed to ensuring you receive the best possible support. If you have any other questions or issues related to Okta’s developer tools and API’s, feel free to post them here, and we’ll be happy to assist!