eIDAS SAML samlp:Extensions to AuthRequest option#180
Open
smarek wants to merge 2 commits intoomniauth:masterfrom
Open
eIDAS SAML samlp:Extensions to AuthRequest option#180smarek wants to merge 2 commits intoomniauth:masterfrom
smarek wants to merge 2 commits intoomniauth:masterfrom
Conversation
…ibutes to AuthRequest settings if enabled by new option
Author
|
Travis CI tests fail from obvious reasons, but locally the whole thing can be tested using Bundler git/github repository feature Step.1: require updated ruby-saml gem from github via Bundler instead of gemspec (see repo diff lower) > git diff
diff --git a/Gemfile b/Gemfile
index 3cb5947..71e5285 100644
--- a/Gemfile
+++ b/Gemfile
@@ -11,5 +11,6 @@ group :test do
end
gem 'appraisal'
+gem 'ruby-saml', :github => 'smarek/ruby-saml', :branch => 'eidas-saml-extensions'
gemspec
diff --git a/omniauth-saml.gemspec b/omniauth-saml.gemspec
index 796796f..bc8e989 100644
--- a/omniauth-saml.gemspec
+++ b/omniauth-saml.gemspec
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
gem.required_ruby_version = '>= 2.1'
gem.add_runtime_dependency 'omniauth', '~> 1.3', '>= 1.3.2'
- gem.add_runtime_dependency 'ruby-saml', '~> 1.8'
+# gem.add_runtime_dependency 'ruby-saml', '~> 1.11.1'
gem.add_development_dependency 'rake', '>= 10', '< 12'
gem.add_development_dependency 'rspec', '~>3.4'For me the tests passes |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR depends on SAML-Toolkits/ruby-saml#520 being merged and will require binding of omniauth-saml to new version of ruby-saml gem, so I'm pushing the PR for reference and discussion, but don't expect it to be merged before ruby-saml#520 is released
This PR intends to provide samlp:Extensions as per EC eIDAS references ( see https://ec.europa.eu/cefdigital/wiki/display/CEFDIGITAL/eIDAS+eID+Profile )
Basically AuthRequest must contain Extensions with definition of eidas:SPType (ServiceProviderType) and eidas:RequestedAttributes (something that saml-core provides only in SeP metadata)
New option (by default disabled)
:auth_request_include_request_attributesallows user to configure sending required Extensions in AuthRequest, and uses options:sptypeand:request_attributesto fill the RubySaml::Settings with necessary infoPoints for discussion, because this is my first time with your library, and I'm not sure if the implementation follows your expectations/guidelines
:request_attributeswith:isRequired(bool)and:value(anytype)symbols for each array member, so the user can configure all params expected to be available in eidas:RequestedAttribute ?'http://eidas.europa.eu/attributes/naturalperson/DateOfBirth'), currently your:nameis plain string:name => 'email'with ie.:name => 'http://eidas.europa.eu/attributes/naturalperson/CurrentGivenName'?:request_name) to fill the RequestedAttribute correctly?Usage should be simple
which will result in AuthRequest having this XML snippet included:
Anyway excuse my ruby skills, i've just started, hope my PR is readable to you