djangosaml2-fork 1.12.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. djangosaml2_fork-1.12.1/CHANGES +423 -0
  2. djangosaml2_fork-1.12.1/COPYING +202 -0
  3. djangosaml2_fork-1.12.1/MANIFEST.in +6 -0
  4. djangosaml2_fork-1.12.1/PKG-INFO +102 -0
  5. djangosaml2_fork-1.12.1/README.md +50 -0
  6. djangosaml2_fork-1.12.1/djangosaml2/__init__.py +0 -0
  7. djangosaml2_fork-1.12.1/djangosaml2/apps.py +9 -0
  8. djangosaml2_fork-1.12.1/djangosaml2/backends.py +386 -0
  9. djangosaml2_fork-1.12.1/djangosaml2/cache.py +91 -0
  10. djangosaml2_fork-1.12.1/djangosaml2/conf.py +71 -0
  11. djangosaml2_fork-1.12.1/djangosaml2/exceptions.py +2 -0
  12. djangosaml2_fork-1.12.1/djangosaml2/middleware.py +81 -0
  13. djangosaml2_fork-1.12.1/djangosaml2/overrides.py +30 -0
  14. djangosaml2_fork-1.12.1/djangosaml2/signals.py +18 -0
  15. djangosaml2_fork-1.12.1/djangosaml2/templates/djangosaml2/auth_error.html +16 -0
  16. djangosaml2_fork-1.12.1/djangosaml2/templates/djangosaml2/echo_attributes.html +18 -0
  17. djangosaml2_fork-1.12.1/djangosaml2/templates/djangosaml2/example_post_binding_form.html +15 -0
  18. djangosaml2_fork-1.12.1/djangosaml2/templates/djangosaml2/login_error.html +13 -0
  19. djangosaml2_fork-1.12.1/djangosaml2/templates/djangosaml2/logout_error.html +17 -0
  20. djangosaml2_fork-1.12.1/djangosaml2/templates/djangosaml2/post_binding_form.html +15 -0
  21. djangosaml2_fork-1.12.1/djangosaml2/templates/djangosaml2/wayf.html +16 -0
  22. djangosaml2_fork-1.12.1/djangosaml2/templatetags/__init__.py +0 -0
  23. djangosaml2_fork-1.12.1/djangosaml2/templatetags/idplist.py +46 -0
  24. djangosaml2_fork-1.12.1/djangosaml2/tests/__init__.py +1071 -0
  25. djangosaml2_fork-1.12.1/djangosaml2/tests/attribute-maps/django_saml_uri.py +19 -0
  26. djangosaml2_fork-1.12.1/djangosaml2/tests/attribute-maps/saml_uri.py +243 -0
  27. djangosaml2_fork-1.12.1/djangosaml2/tests/auth_response.py +106 -0
  28. djangosaml2_fork-1.12.1/djangosaml2/tests/conf.py +114 -0
  29. djangosaml2_fork-1.12.1/djangosaml2/tests/idpcert.csr +17 -0
  30. djangosaml2_fork-1.12.1/djangosaml2/tests/idpcert.key +27 -0
  31. djangosaml2_fork-1.12.1/djangosaml2/tests/idpcert.pem +20 -0
  32. djangosaml2_fork-1.12.1/djangosaml2/tests/mycert.csr +17 -0
  33. djangosaml2_fork-1.12.1/djangosaml2/tests/mycert.key +27 -0
  34. djangosaml2_fork-1.12.1/djangosaml2/tests/mycert.pem +20 -0
  35. djangosaml2_fork-1.12.1/djangosaml2/tests/remote_metadata.xml +123 -0
  36. djangosaml2_fork-1.12.1/djangosaml2/tests/remote_metadata_no_idp.xml +3 -0
  37. djangosaml2_fork-1.12.1/djangosaml2/tests/remote_metadata_one_idp.xml +33 -0
  38. djangosaml2_fork-1.12.1/djangosaml2/tests/remote_metadata_post_binding.xml +33 -0
  39. djangosaml2_fork-1.12.1/djangosaml2/tests/remote_metadata_three_idps.xml +93 -0
  40. djangosaml2_fork-1.12.1/djangosaml2/tests/sp_metadata.xml +42 -0
  41. djangosaml2_fork-1.12.1/djangosaml2/tests/spcert.csr +16 -0
  42. djangosaml2_fork-1.12.1/djangosaml2/tests/spcert.key +27 -0
  43. djangosaml2_fork-1.12.1/djangosaml2/tests/spcert.pem +19 -0
  44. djangosaml2_fork-1.12.1/djangosaml2/tests/utils.py +16 -0
  45. djangosaml2_fork-1.12.1/djangosaml2/urls.py +27 -0
  46. djangosaml2_fork-1.12.1/djangosaml2/utils.py +281 -0
  47. djangosaml2_fork-1.12.1/djangosaml2/views.py +904 -0
  48. djangosaml2_fork-1.12.1/djangosaml2_fork.egg-info/PKG-INFO +102 -0
  49. djangosaml2_fork-1.12.1/djangosaml2_fork.egg-info/SOURCES.txt +57 -0
  50. djangosaml2_fork-1.12.1/djangosaml2_fork.egg-info/dependency_links.txt +1 -0
  51. djangosaml2_fork-1.12.1/djangosaml2_fork.egg-info/not-zip-safe +1 -0
  52. djangosaml2_fork-1.12.1/djangosaml2_fork.egg-info/requires.txt +3 -0
  53. djangosaml2_fork-1.12.1/djangosaml2_fork.egg-info/top_level.txt +1 -0
  54. djangosaml2_fork-1.12.1/docs/source/_templates/pplnx_template/footer.html +53 -0
  55. djangosaml2_fork-1.12.1/docs/source/_templates/pplnx_template/layout.html +55 -0
  56. djangosaml2_fork-1.12.1/pyproject.toml +14 -0
  57. djangosaml2_fork-1.12.1/setup.cfg +13 -0
  58. djangosaml2_fork-1.12.1/setup.py +68 -0
@@ -0,0 +1,423 @@
1
+ Changes
2
+ =======
3
+
4
+ v1.12.1 (2026-09-08)
5
+ --------------------
6
+
7
+ - Rename package to djangosaml2-fork
8
+ - Update dependency to pysaml2-fork>=7.5.5
9
+
10
+ v1.2.2 (2021-05-27)
11
+ -------------------
12
+
13
+ - Fix #245: Don't update user_main_attribute @jaap3 (#283)
14
+ - Fix #278: Allow ACS_DEFAULT_REDIRECT_URL to override LOGIN_REDIRECT_URL in more places @jaap3 (#285)
15
+ - Add release notes for previous and upcoming releases @jaap3 (#284)
16
+ - Add default_auto_field setting, strongly recommended in Django 3.2 @jaap3 (#282)
17
+ - SPConfig loader instead of global django settings @peppelinux (#281)
18
+ - Fix #277: Resolve LOGIN_REDIRECT_URL @jaap3 (#279)
19
+ - Resolve LOGIN_REDIRECT_URL @jaap3 (#277)
20
+
21
+ v1.2.1 (2021-05-23)
22
+ -------------------
23
+
24
+ - Documentation improved
25
+ - unit tests and coverage improved
26
+ - better handling of unknown idps
27
+
28
+
29
+ v1.2.0 (2021-05-14)
30
+ -------------------
31
+
32
+ - Implement IdP Scoping parameter for SPs suggesting an entityID to a proxy @pauldekkers (#272)
33
+
34
+
35
+ v1.1.5 (2021-04-29)
36
+ -------------------
37
+
38
+ - Cast major/minor django VERSION number into float before comparing @lgarvey (#269)
39
+ - Add note to SameSite cookie docs section recommending upgrade to Django >= 3.1 @m6312 (#267)
40
+
41
+
42
+ v1.1.4 (2021-04-28)
43
+ -------------------
44
+
45
+ - fix: samesite cookie configuration fix for django version <3.1
46
+
47
+
48
+ v1.1.3 (2021-04-28)
49
+ --------------------
50
+
51
+ - Add assertion param to backed.authenticate and backend.is_authorized @lucyeun-alation (#128)
52
+ - feat: CI - added django 3.1 and 3.2
53
+ - fix: Samesite cookie value - fixed #266
54
+ - fix: Docs small changes in setup - pysaml2 example conf improved
55
+
56
+
57
+ v.1.1.2 (2021-04-11)
58
+ --------------------
59
+
60
+ - fix: idp hinting invalid import
61
+
62
+
63
+ v.1.1.1 (2021-04-05)
64
+ --------------------
65
+
66
+ - Read the docs
67
+ - Information exposure mitigation on SSO login view
68
+
69
+
70
+ v.1.1.0 (2021-04-01)
71
+ --------------------
72
+
73
+ - feature: Idp Hinting
74
+ - params: SAML_DEFAULT_BINDING for SSO
75
+ - code cleanup in SSO
76
+
77
+
78
+ v.1.0.5 (2021-03-05)
79
+ --------------------
80
+ - code linting, cleanup. Not enough but better than before
81
+ - Documentation: Replace signal with hooks (#251)
82
+ - Better saml_attribute handling in backend - more resilient
83
+ - Add session_info to user auth failed template (#248)
84
+ - Fix SAML_ACS_FAILURE_RESPONSE_FUNCTION override
85
+ - Update Custom Error Handler docs
86
+
87
+
88
+ v.1.0.4 (2021-02-16)
89
+ --------------------
90
+ - fixed saml_attributes of zero length
91
+ - removed unused code
92
+
93
+
94
+ v1.0.3 (2020-02-04)
95
+ -------------------
96
+ - Django Logout behaviour improved
97
+
98
+
99
+ v1.0.2 (2020-01-24)
100
+ -------------------
101
+ - RequestVersionTooLow exception handled in ACS
102
+ - Better exception handling for Malformed SAML Response
103
+ - pySAML2 dep up to v6.5.1
104
+
105
+
106
+ v1.0.1 (2020-01-20)
107
+ -------------------
108
+ - PySAML2 dependency, security update
109
+ https://github.com/IdentityPython/pysaml2/commit/12ec4a70c5aaf4c144f6b30a158193ca99bc76cd
110
+
111
+ v1.0.0 (2020-10-15)
112
+ -------------------
113
+ - General refactor with Django ClassViews
114
+
115
+
116
+ 0.50.0 (2020-10-15)
117
+ -------------------
118
+ - Discovery Service support
119
+
120
+ 0.40.1 (2020-09-08)
121
+ -------------------
122
+ - [BugFix] HTTP-REDIRECT Authn Requests with optional signature now works.
123
+ - [BugFix] SameSite - SuspiciousOperation issue in middleware (Issue #220)
124
+
125
+ 0.40.0 (2020-08-07)
126
+ -------------------
127
+ - Allow a SSO request without any attributes besides the NameID info. Backwards-incompatible changes to allow easier behaviour differentiation, two methods now receive the idp identifier (+ **kwargs were added to introduce possible similar changes in the future with less breaking effect):
128
+ - Method signature changed on Saml2Backend.clean_attributes: from `clean_attributes(self, attributes: dict)` to `clean_attributes(self, attributes: dict, idp_entityid: str, **kwargs)`
129
+ - Methodignature changed on Saml2Backend.is_authorized: from `is_authorized(self, attributes: dict, attribute_mapping: dict)` to `is_authorized(self, attributes: dict, attribute_mapping: dict, idp_entityid: str, **kwargs)`
130
+ - SAML session refactor and minor changes in README file
131
+ - local Logout - independent by IdP SLO Response
132
+
133
+ 0.30.0 (2020-07-30)
134
+ -------------------
135
+ - SameSite workaround with a specialized cookie, decoupled from django default
136
+
137
+ 0.20.0 (2020-06-29)
138
+ -------------------
139
+ - Bugfix: Always save newly created users when ATTRIBUTE_MAPPING is missing in the config
140
+ - pySAML2 v5.3.0
141
+
142
+ 0.19.1 (2020-06-15)
143
+ ------------------
144
+ - Fixes creating new user with iexact lookup
145
+
146
+ 0.19.0 (2020-06-03)
147
+ ------------------
148
+
149
+ - Support several required fields during User creation
150
+ - Don't pass sigalg parameter when not signing login request
151
+ - ALLOW_SAML_HOSTNAMES validation for redirect
152
+ - Custom attribute mapping for Django user model (example)
153
+ - Slo absence workaround
154
+ - Metadata EntityID exception handling
155
+ - Fix unsigned authentication request to POST endpoint
156
+ - py38 Test fixes
157
+ - CI with Github actions
158
+ - Backend restructuring for easier subclassing
159
+ - Assertion consumer service now more extensible as a class-based view
160
+ with hooks that can be overridden by subclass implementations.
161
+
162
+ 0.18.1 (2020-02-15)
163
+ ----------
164
+ - Fixed regression from 0.18.0. Thanks to OskarPersson
165
+
166
+ 0.18.0 (2020-02-14)
167
+ ----------
168
+ - Django 3.0 support. Thanks to OskarPersson
169
+ - forceauthn and allowcreate support. Thanks to peppelinux
170
+ - Dropped support for Python 3.4
171
+ - Also thanks to WebSpider, mhindery, DylannCordel, habi3000 for various fixes and improvements
172
+
173
+ Thanks to plumdog
174
+
175
+ 0.17.2 (2018-08-29)
176
+ ----------
177
+ - Upgraded pysaml2 dependency to version 4.6.0 which fixes security issue.
178
+
179
+ Thanks to plumdog
180
+
181
+ UNRELEASED
182
+ ----------
183
+ - Allowed creating Users with multiple required fields.
184
+
185
+ 0.17.1 (2018-07-16)
186
+ ----------
187
+ - A 403 (permission denied) is now raised if a SAMLResponse is replayed, instead of 500.
188
+ - Dropped support for Python 3.3
189
+ - Upgraded pysaml2 dependency to version 4.5.0
190
+
191
+ Thanks to francoisfreitag, mhindery, vkurup, peppelinux
192
+
193
+ 0.16.11 (2017-12-25)
194
+ ----------
195
+ - Dropped compatibility for Python < 2.7 and Django < 1.8.
196
+ - Added a clean_attributes hook allowing backends to restructure attributes extracted from SAML response.
197
+ - Log when fields are missing in a SAML response.
198
+ - Log when attribute_mapping maps to nonexistent User fields.
199
+ - Multiple compatibility fixes and other minor improvements and code cleanups
200
+
201
+ Thanks to francoisfreitag, mhindery, charn, jdufresne
202
+
203
+ 0.16.10 (2017-10-02)
204
+ -------------------
205
+ - Bugfixes and internal refactorings.
206
+ - Added support for custom USERNAME_FIELD on custom User models. Many thanks to francoisfreitag.
207
+
208
+ 0.16.9 (2017-09-19)
209
+ -------------------
210
+ - Bugfixes and minor improvements. Thanks to goetzk and AmbientLighter.
211
+ - Added option SAML_LOGOUT_REQUEST_PREFERRED_BINDING
212
+ - Added Django 1.11 to tox.
213
+
214
+ 0.16.4 (2017-09-11)
215
+ -------------------
216
+ - Added support for SHA-256 signing. Thanks to WebSpider.
217
+ - Bugfixes. Thanks to justinsg and charn.
218
+ - Error handling made more extensible. This will be further improved in next versions.
219
+
220
+ 0.16.1 (2017-07-15)
221
+ -------------------
222
+ - Bugfixes. Thanks to canni, AmbientLighter, cranti and logston.
223
+ - request is now passed to authentication backend (introduced in Django 1.11). Thanks to terite.
224
+
225
+ 0.16.0 (2017-04-14)
226
+ -------------------
227
+ - Upgrade pysaml2 dependency to version 4.4.0 which fixes some serialization issues. Thanks to nakato for the report.
228
+ - Added support for HTTP Redirect binding with signed authentication requests. Many thanks to liquidpele for this feature and other related refactorings.
229
+ - The custom permission_denied.html template was removed in favor of standard PermissionDenied exception. Thanks to mhindery.
230
+
231
+ 0.15.0 (2016-12-18)
232
+ -------------------
233
+ - Python 3.5 support. Thanks to timheap.
234
+ - Added support for callable user attributes. Thanks to andy-miracl and joetsoi.
235
+ - Security improvement: "next" URL is now checked. thanks to flupzor.
236
+ - Improved testability. Thanks to flupzor.
237
+ - Other bugfixes and minor improvements. Thanks to jamaalscarlett, ws0w, jaywink and liquidpele.
238
+
239
+ 0.14.5 (2016-09-19)
240
+ -------------------
241
+ - Django 1.10 support. Thanks to inducer.
242
+ - Various fixes and minor improvements. Thanks to ajsmilutin, ganiserb, inducer, grunichev, liquidpele and darbula
243
+
244
+ 0.14.4 (2016-03-29)
245
+ -------------------
246
+ - Fix compatibility issue with pysaml2-4.0.3+. Thanks to jimr and astoltz.
247
+ - Fix Django 1.9 compatibility issue in templates. Thanks to nikoskal.
248
+
249
+ 0.14.3 (2016-03-18)
250
+ -------------------
251
+ - Upgraded to pysaml2-4.0.5.
252
+ - Added 'ACS_DEFAULT_REDIRECT_URL' setting for default redirection after successful authentication. Thanks to ganiserb.
253
+
254
+ 0.14.2 (2016-03-11)
255
+ -------------------
256
+ - Released under the original 'djangosaml2' package name; abandoning the djangosaml2-knaperek fork.
257
+
258
+ 0.14.1 (2016-03-09)
259
+ -------------------
260
+ - Upgraded to pysaml2-4.0.4.
261
+
262
+ 0.14.0 (2016-01-28)
263
+ -------------------
264
+ - Upgrade to pysaml2-4.0.2. Thanks to kviktor
265
+ - Django 1.9 support. Thanks to Jordi Gutiérrez Hermoso
266
+
267
+ 0.13.2 (2015-06-24)
268
+ -------------------
269
+ - Improved usage of standard Python logging.
270
+
271
+ 0.13.1 (2015-06-05)
272
+ -------------------
273
+ - Added support for djangosaml2 specific user model defined by SAML_USER_MODEL setting
274
+
275
+ 0.13.0 (2015-02-12)
276
+ -------------------
277
+ - Django 1.7 support. Thanks to Kamei Toshimitsu
278
+
279
+ 0.12.0 (2014-11-18)
280
+ -------------------
281
+ - Pysaml2 2.2.0 support. Thanks to Erick Tryzelaar
282
+
283
+ 0.11.0 (2014-06-15)
284
+ -------------------
285
+ - Django 1.5 custom user model support. Thanks to Jos van Velzen
286
+ - Django 1.5 compatibility url template tag. Thanks to bula
287
+ - Support Django 1.5 and 1.6. Thanks to David Evans and Justin Quick
288
+
289
+ 0.10.0 (2013-05-05)
290
+ -------------------
291
+ - Check that RelayState is not empty before redirecting into a loop. Thanks
292
+ to Sam Bull for reporting this issue.
293
+ - In the global logout process, when the session is lost, report an error
294
+ message to the user and perform a local logout.
295
+
296
+ 0.9.2 (2013-04-19)
297
+ ------------------
298
+ - Upgrade to pysaml2-0.4.3.
299
+
300
+ 0.9.1 (2013-01-29)
301
+ ------------------
302
+ - Add a method to the authentication backend so it is possible
303
+ to customize the authorization based on SAML attributes.
304
+
305
+ 0.9.0 (2012-10-30)
306
+ ------------------
307
+ - Add a signal for modifying the user just before saving it on
308
+ the update_user method of the authentication backend.
309
+
310
+ 0.8.1 (2012-10-29)
311
+ ------------------
312
+ - Trim the SAML attributes before setting them to the Django objects
313
+ if they are too long. This fixes a crash with MySQL.
314
+
315
+ 0.8.0 (2012-10-25)
316
+ ------------------
317
+ - Allow to use different attributes besides 'username' to look for
318
+ existing users.
319
+
320
+ 0.7.0 (2012-10-19)
321
+ ------------------
322
+ - Add a setting to decide if the user should be redirected to the
323
+ next view or shown an authorization error when the user tries to
324
+ login twice.
325
+
326
+ 0.6.1 (2012-09-03)
327
+ ------------------
328
+ - Remove Django from our dependencies
329
+ - Restore support for Django 1.3
330
+
331
+ 0.6.0 (2012-08-29)
332
+ ------------------
333
+ - Add tox support configured to run the tests with Python 2.6 and 2.7
334
+ - Fix some dependencies and sdist generation. Lorenzo Gil
335
+ - Allow defining a logout redirect url in the settings. Lorenzo Gil
336
+ - Add some logging calls to improve debugging. Lorenzo Gil
337
+ - Add support for custom conf loading function. Sam Bull.
338
+ - Make the tests more robust and easier to run when djangosaml2 is
339
+ included in a Django project. Sam Bull.
340
+ - Make sure the profile is not None before saving it. Bug reported by
341
+ Leif Johansson
342
+
343
+ 0.5.0 (2012-05-22)
344
+ ------------------
345
+ - Allow defining custom config loaders. They can be dynamic depending on
346
+ the request.
347
+ - Do not automatically add the authentication backend. This way
348
+ we allow other people to add their own backends.
349
+ - Support for additional attributes other than the ones that get mapped
350
+ into the User model. Those attributes get stored in the UserProfile model.
351
+
352
+ 0.4.2 (2012-03-23)
353
+ ------------------
354
+ - Fix a crash in the idplist templatetag about using an old pysaml2 function
355
+ - Added a test for the previous crash
356
+
357
+ 0.4.1 (2012-03-19)
358
+ ------------------
359
+ - Upgrade pysaml2 dependency to version 0.4.1
360
+
361
+ 0.4.0 (2012-03-18)
362
+ ------------------
363
+ - Upgrade pysaml2 dependency to version 0.4.0 (update our tests as a result
364
+ of this)
365
+ - Add logging calls to make debugging easier
366
+ - Use the Django configured logger in pysaml2
367
+
368
+ 0.3.3 (2012-02-14)
369
+ ------------------
370
+ - Freeze the version of pysaml2 since we are not (yet!) compatible with
371
+ version 0.4.0
372
+
373
+ 0.3.2 (2011-12-13)
374
+ ------------------
375
+ - Avoid a crash when reading the SAML attribute that maps to the Django
376
+ username
377
+
378
+ 0.3.1 (2011-12-01)
379
+ ------------------
380
+ - Load the config in the render method of the idplist templatetag to
381
+ make it more flexible and reentrant.
382
+
383
+ 0.3.0 (2011-11-30)
384
+ ------------------
385
+ - Templatetag to get the list of available idps.
386
+ - Allow to map the same SAML attribute into several Django field.
387
+
388
+ 0.2.4 (2011-11-29)
389
+ ------------------
390
+ - Fix restructured text bugs that made pypi page looks bad.
391
+
392
+ 0.2.3 (2011-06-14)
393
+ ------------------
394
+ - Set a unusable password when the user is created for the first time
395
+
396
+ 0.2.2 (2011-06-07)
397
+ ------------------
398
+ - Prevent infinite loop when going to the /saml2/login/ endpoint and the user
399
+ is already logged in and the settings.LOGIN_REDIRECT_URL is (badly) pointing
400
+ to /saml2/login.
401
+
402
+ 0.2.1 (2011-05-09)
403
+ ------------------
404
+ - If no next parameter is supplied to the login view, use the
405
+ settings.LOGIN_REDIRECT_URL as default
406
+
407
+ 0.2.0 (2011-04-26)
408
+ ------------------
409
+ - Python 2.4 compatible if the elementtree library is installed
410
+ - Allow post processing after the authentication phase by using
411
+ Django signals.
412
+
413
+ 0.1.1 (2011-04-18)
414
+ ------------------
415
+ - Simple view to echo SAML attributes
416
+ - Improve documentation
417
+ - Change default behaviour when a new user is created. Now their attributes
418
+ are filled this first time
419
+ - Allow to set a next page after the logout
420
+
421
+ 0.1.0 (2011-03-16)
422
+ ------------------
423
+ - Emancipation from the pysaml package
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,6 @@
1
+ include README.rst
2
+ include CHANGES
3
+ include COPYING
4
+ global-include *.html *.csr *.key *.pem *.xml
5
+ include djangosaml2/tests/attribute-maps/*.py
6
+ global-exclude *.pyc