hennge / minisignxml Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
minisignxml (>=20.11b0,<21.0) requires defusedxml (>=0.6.0,<0.7.0).
meanwhile, current https://pypi.org/project/defusedxml/ is 0.7.1
betas have been up for some time, I guess it's time to call it final/prod before the year is out!
Hi,
I'm attempting to utilise minisaml in my project. However, when processing the response, I receive the following error (I have curtailed the traceback to where my code starts [i.e. I have removed any code caused by my web API library, FastAPI]).
File "D:\Users\redstonedesigner\...\Projects\Applications\app\api\saml.py", line 37, in process_saml_callback
response = validate_response(
File "D:\Users\...\AppData\Local\pypoetry\Cache\virtualenvs\applications-uAhKr-uD-py3.10\lib\site-packages\minisaml\response.py", line 64, in validate_response
element, certificate_used = extract_verified_element_and_certificate(
File "D:\Users\...\AppData\Local\pypoetry\Cache\virtualenvs\applications-uAhKr-uD-py3.10\lib\site-packages\minisignxml\verify.py", line 35, in extract_verified_element_and_certificate
base64.b64decode(key_info.text, validate=True), default_backend()
File "D:\Program Files\Python310\lib\base64.py", line 86, in b64decode
raise binascii.Error('Non-base64 digit found')
As this is a testing, self-hosted version of my IdP and application, I will provide both my IdP certificate (self-signed by the IdP) and the SAML response received.
SAML Response:
PHNhbWxwOlJlc3BvbnNlIHhtbG5zOnNhbWxwPSJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6cHJvdG9jb2wiIHhtbG5zOnNhbWw9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDphc3NlcnRpb24iIHhtbG5zOmRzPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIiB4bWxuczptZD0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOm1ldGFkYXRhIiBWZXJzaW9uPSIyLjAiIElzc3VlSW5zdGFudD0iMjAyMS0xMS0xN1QxNTo0NjoyOVoiIERlc3RpbmF0aW9uPSJodHRwOi8vMTI3LjAuMC4xOjgwODAvYXBpL3NhbWwvY2FsbGJhY2siIElEPSJfZj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OYW1lPSJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy91cG4iPjxzYW1sOkF0dHJpYnV0ZVZhbHVlPm1lQHJlZHN0b25lZGVzaWduZXIuY29tPC9zYW1sOkF0dHJpYnV0ZVZhbHVlPjwvc2FtbDpBdHRyaWJ1dGU+PHNhbWw6QXR0cmlidXRlIE5hbWU9Imh0dHA6Ly9zY2hlbWFzLmdvYXV0aGVudGlrLmlvLzIwMjEvMDIvc2FtbC91aWQiPjxzYW1sOkF0dHJpYnV0ZVZhbHVlPjE8L3NhbWw6QXR0cmlidXRlVmFsdWU+PC9zYW1sOkF0dHJpYnV0ZT48c2FtbDpBdHRyaWJ1dGUgTmFtZT0iaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvY2xhaW1zL0dyb3VwIj48c2FtbDpBdHRyaWJ1dGVWYWx1ZT5JZGVudGl0eSBBZG1pbmlzdHJhdG9yPC9zYW1sOkF0dHJpYnV0ZVZhbHVlPjwvc2FtbDpBdHRyaWJ1dGU+PHNhbWw6QXR0cmlidXRlIE5hbWU9Imh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL25hbWUiPjxzYW1sOkF0dHJpYnV0ZVZhbHVlPkdhYnJpZWwgVDwvc2FtbDpBdHRyaWJ1dGVWYWx1ZT48L3NhbWw6QXR0cmlidXRlPjwvc2FtbDpBdHRyaWJ1dGVTdGF0ZW1lbnQ+PC9zYW1sOkFzc2VydGlvbj48L3NhbWxwOlJlc3BvbnNlPg==
IdP certificate attached. You will need to rename it and remove the .txt
extension, which I added to allow upload to GH.
authentik Self-signed Certificate_certificate.pem.txt
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.