File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717 <saml : NameID SPNameQualifier =" {{ entity_id }}" Format =" urn:oasis:names:tc:SAML:2.0:nameid-format:transient" >_ce3d2948b4cf20146dee0a0b3dd6f69b6cf86f62d7</saml : NameID >
1818 <saml : SubjectConfirmation Method =" urn:oasis:names:tc:SAML:2.0:cm:bearer" >
1919 <saml : SubjectConfirmationData
20- NotOnOrAfter =" 2026-01-18T06:21:48Z "
20+ NotOnOrAfter =" {{ not_on_or_after }} "
2121 Recipient =" {{ recipient }}"
2222 InResponseTo =" ONELOGIN_4fee3b046395c4e751011e97f8900b5273d56685" />
2323 </saml : SubjectConfirmation >
Original file line number Diff line number Diff line change 1818"""
1919
2020import base64
21- from datetime import datetime
21+ from datetime import datetime , timedelta
2222from jinja2 import Template
2323import os
2424import pytest
@@ -59,6 +59,7 @@ def _prepare_unsigned_response():
5959 'destination' : 'http://test.ckan.net/acs' ,
6060 'recipient' : 'http://test.ckan.net/acs' ,
6161 'issue_instant' : datetime .now ().isoformat (),
62+ 'not_on_or_after' : (datetime .utcnow () + timedelta (hours = 1 )).strftime ('%Y-%m-%dT%H:%M:%SZ' ),
6263 }
6364 t = Template (unsigned_response )
6465 final_response = t .render (** context )
Load diff This file was deleted.
Original file line number Diff line number Diff line change 3434 # Versions should comply with PEP440. For a discussion on single-sourcing
3535 # the version across setup.py and the project code, see
3636 # http://packaging.python.org/en/latest/tutorial.html#version
37- version = '1.3.6 ' ,
37+ version = '1.3.7 ' ,
3838
3939 description = '''An extension to enable Single Sign On(SSO) for CKAN data portals via SAML2 Authentication.''' ,
4040 long_description = long_description ,
4141 long_description_content_type = 'text/markdown' ,
4242
4343 # The project's main homepage.
44- url = 'https://github.com/keitaroinc /ckanext-saml2auth' ,
44+ url = 'https://github.com/okfn /ckanext-saml2auth' ,
4545
4646 # Author details
47- author = '''Keitaro Inc''' ,
48- author_email = '''info@keitaro.com ''' ,
47+ author = '''Keitaro Inc + OKFN ''' ,
48+ author_email = '''info@okfn.org ''' ,
4949
5050 # Choose your license
5151 license = 'AGPL' ,
You can’t perform that action at this time.
0 commit comments