Skip to content

Commit c25df81

Browse files
committed
Added custom lxml parser based on the one defined at xmldefused. Update copyright
1 parent 95f06d3 commit c25df81

31 files changed

+191
-44
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2010-2018 OneLogin, Inc.
1+
Copyright (c) 2010-2021 OneLogin, Inc.
22

33
Permission is hereby granted, free of charge, to any person
44
obtaining a copy of this software and associated documentation

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4-
# Copyright (c) 2010-2018 OneLogin, Inc.
4+
# Copyright (c) 2010-2021 OneLogin, Inc.
55
# MIT License
66

77
from setuptools import setup
@@ -37,8 +37,9 @@
3737
test_suite='tests',
3838
install_requires=[
3939
'isodate>=0.5.0',
40+
'lxml>=3.3.5',
4041
'xmlsec>=0.6.0',
41-
'defusedxml>=0.5.0'
42+
'defusedxml==0.6.0'
4243
],
4344
dependency_links=['http://github.com/mehcode/python-xmlsec/tarball/master'],
4445
extras_require={

src/onelogin/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22

33
"""
4-
Copyright (c) 2010-2018 OneLogin, Inc.
4+
Copyright (c) 2010-2021 OneLogin, Inc.
55
MIT License
66
77
Add SAML support to your Python softwares using this library.

src/onelogin/saml2/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22

33
"""
4-
Copyright (c) 2010-2018 OneLogin, Inc.
4+
Copyright (c) 2010-2021 OneLogin, Inc.
55
MIT License
66
77
Add SAML support to your Python softwares using this library.

src/onelogin/saml2/auth.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
""" OneLogin_Saml2_Auth class
44
5-
Copyright (c) 2010-2018 OneLogin, Inc.
5+
Copyright (c) 2010-2021 OneLogin, Inc.
66
MIT License
77
88
Main class of OneLogin's Python Toolkit.
@@ -12,16 +12,16 @@
1212
"""
1313

1414
import xmlsec
15-
from defusedxml.lxml import tostring
1615

1716
from onelogin.saml2 import compat
18-
from onelogin.saml2.settings import OneLogin_Saml2_Settings
19-
from onelogin.saml2.response import OneLogin_Saml2_Response
20-
from onelogin.saml2.logout_response import OneLogin_Saml2_Logout_Response
17+
from onelogin.saml2.authn_request import OneLogin_Saml2_Authn_Request
2118
from onelogin.saml2.constants import OneLogin_Saml2_Constants
22-
from onelogin.saml2.utils import OneLogin_Saml2_Utils, OneLogin_Saml2_Error, OneLogin_Saml2_ValidationError
2319
from onelogin.saml2.logout_request import OneLogin_Saml2_Logout_Request
24-
from onelogin.saml2.authn_request import OneLogin_Saml2_Authn_Request
20+
from onelogin.saml2.logout_response import OneLogin_Saml2_Logout_Response
21+
from onelogin.saml2.response import OneLogin_Saml2_Response
22+
from onelogin.saml2.settings import OneLogin_Saml2_Settings
23+
from onelogin.saml2.utils import OneLogin_Saml2_Utils, OneLogin_Saml2_Error, OneLogin_Saml2_ValidationError
24+
from onelogin.saml2.xmlparser import tostring
2525

2626

2727
class OneLogin_Saml2_Auth(object):

src/onelogin/saml2/authn_request.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
""" OneLogin_Saml2_Authn_Request class
44
5-
Copyright (c) 2010-2018 OneLogin, Inc.
5+
Copyright (c) 2010-2021 OneLogin, Inc.
66
MIT License
77
88
AuthNRequest class of OneLogin's Python Toolkit.
@@ -131,8 +131,6 @@ def __init__(self, settings, force_authn=False, is_passive=False, set_nameid_pol
131131
def _generate_request_id(self):
132132
"""
133133
Generate an unique request ID.
134-
135-
You can override this in a subclass.
136134
"""
137135
return OneLogin_Saml2_Utils.generate_unique_id()
138136

src/onelogin/saml2/compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
""" py3 compatibility class
44
5-
Copyright (c) 2010-2018 OneLogin, Inc.
5+
Copyright (c) 2010-2021 OneLogin, Inc.
66
MIT License
77
88
"""

src/onelogin/saml2/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
""" OneLogin_Saml2_Constants class
44
5-
Copyright (c) 2010-2018 OneLogin, Inc.
5+
Copyright (c) 2010-2021 OneLogin, Inc.
66
MIT License
77
88
Constants class of OneLogin's Python Toolkit.

src/onelogin/saml2/errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
""" OneLogin_Saml2_Error class
44
5-
Copyright (c) 2010-2018 OneLogin, Inc.
5+
Copyright (c) 2010-2021 OneLogin, Inc.
66
MIT License
77
88
Error class of OneLogin's Python Toolkit.

src/onelogin/saml2/idp_metadata_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22

33
""" OneLogin_Saml2_IdPMetadataParser class
4-
Copyright (c) 2010-2018 OneLogin, Inc.
4+
Copyright (c) 2010-2021 OneLogin, Inc.
55
MIT License
66
Metadata class of OneLogin's Python Toolkit.
77
"""

0 commit comments

Comments
 (0)