-
Notifications
You must be signed in to change notification settings - Fork 448
[WIP] Add eIDAS support #658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ioparaskev
wants to merge
26
commits into
IdentityPython:master
Choose a base branch
from
ioparaskev:eidas
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
b778376
Add eIDAS NodeCountry and NodeCountryType basic support
ioparaskev 8f27876
Add tests for eIDAS support
ioparaskev fded1f6
Add eIDAS SP config class and validation
ioparaskev 5181068
Add validator for NodeCountry element
ioparaskev 1b8bdbd
Add eIDAS application identifier support in config
ioparaskev faba67f
Add eIDAs protocol version suppert in config
ioparaskev 4e3aeb7
Refactor warning/error config checks format
ioparaskev c8c7864
Add organization and contact person validations
ioparaskev cbaaa8f
Add SP config validation for https entityid
ioparaskev c84a36d
Add SP AuthnRequestsSigned validation
ioparaskev ff8eba7
Add eIDAS SP config sp_type validation
ioparaskev 651284d
Extract warning and error validators to eIDASConfig
ioparaskev 8518822
Fix validator report printing and filtering
ioparaskev 2e54657
Adds multiple validators for eIDAS IdP config
ioparaskev a029ce8
Rename eidas tests config files
ioparaskev d544328
Add eIDAS IdP validation rule for WantAuthnRequestsSigned
ioparaskev d18673c
Add support for exposing IdP supported attributes
ioparaskev b65b841
Add support for LoA in eIDAS IdP config
ioparaskev f86e464
Add validation rules for LoA configuration
ioparaskev 53c0251
Add warning validation for eIDASSP for AssertionConsumerServiceURL
ioparaskev 0cfc7ac
Add eIDAS IdP validation rule for signed response
ioparaskev 3d912e5
Add eIDAS IdP validation rule for encrypted assertion
ioparaskev d3423bb
Add eIDAS SP config validation for allow_unsolicited
ioparaskev 613a3d0
Move ConfigValidationError class to config module
ioparaskev 9a4b0ff
Extract LoAs in variable and fix fallback LoA lookups
ioparaskev 4c93775
Use assurance_certification for eIDAS LoA config
ioparaskev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,6 +51,7 @@ install_requires = | |
| pytz | ||
| requests >= 1.0.0 | ||
| six | ||
| iso3166 | ||
|
|
||
|
|
||
| [options.packages.find] | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| #!/usr/bin/env python | ||
|
|
||
| # | ||
| # Generated Thu Dec 12 18:16:51 2019 by parse_xsd.py version 0.5. | ||
| # | ||
|
|
||
| import saml2 | ||
| from saml2 import SamlBase | ||
|
|
||
|
|
||
| NAMESPACE = 'http://eidas.europa.eu/saml-extensions' | ||
| class NodeCountryType_(SamlBase): | ||
| """The http://eidas.europa.eu/saml-extensions:NodeCountryType element """ | ||
|
|
||
| c_tag = 'NodeCountryType' | ||
| c_namespace = NAMESPACE | ||
| c_children = SamlBase.c_children.copy() | ||
| c_attributes = SamlBase.c_attributes.copy() | ||
| c_child_order = SamlBase.c_child_order[:] | ||
| c_cardinality = SamlBase.c_cardinality.copy() | ||
|
|
||
| def node_country_type__from_string(xml_string): | ||
| return saml2.create_class_from_xml_string(NodeCountryType_, xml_string) | ||
|
|
||
|
|
||
| class NodeCountry(NodeCountryType_): | ||
| """The http://eidas.europa.eu/saml-extensions:NodeCountry element """ | ||
|
|
||
| c_tag = 'NodeCountry' | ||
| c_namespace = NAMESPACE | ||
| c_children = NodeCountryType_.c_children.copy() | ||
| c_attributes = NodeCountryType_.c_attributes.copy() | ||
| c_child_order = NodeCountryType_.c_child_order[:] | ||
| c_cardinality = NodeCountryType_.c_cardinality.copy() | ||
|
|
||
| def node_country_from_string(xml_string): | ||
| return saml2.create_class_from_xml_string(NodeCountry, xml_string) | ||
|
|
||
|
|
||
| ELEMENT_FROM_STRING = { | ||
| NodeCountry.c_tag: node_country_from_string, | ||
| NodeCountryType_.c_tag: node_country_type__from_string, | ||
| } | ||
|
|
||
| ELEMENT_BY_TAG = { | ||
| 'NodeCountry': NodeCountry, | ||
| 'NodeCountryType': NodeCountryType_, | ||
| } | ||
| def factory(tag, **kwargs): | ||
| return ELEMENT_BY_TAG[tag](**kwargs) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.