Skip to content

Commit

Permalink
fixed idp metadata export after regression
Browse files Browse the repository at this point in the history
  • Loading branch information
peppelinux committed Mar 20, 2021
1 parent 75d7893 commit 6807612
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/spid_sp_test/authn_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ def get_authn_request(authn_request_url, verify_ssl=False):
# HTTP POST
authn_request = request.content.decode()
form_dict = samlreq_from_htmlform(authn_request)
if not form_dict:
raise SAMLRequestNotFound(f'{authn_request}')
data['action'] = form_dict['action']
data['method'] = form_dict['method']
data['SAMLRequest'] = form_dict['SAMLRequest']
Expand Down
2 changes: 1 addition & 1 deletion src/spid_sp_test/spid_sp_test
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ if __name__ == '__main__':

tests_done = []
if args.idp_metadata:
from spid_sp_test.idp.idp import SAML2_IDP_CONFIG
from spid_sp_test.idp.settings import SAML2_IDP_CONFIG

idp_server = Server(SAML2_IDP_CONFIG)
idp_metadata = entity_descriptor(idp_server.config)
Expand Down

0 comments on commit 6807612

Please sign in to comment.