Skip to content

Commit 68ff527

Browse files
committed
Use latest versions of development dependencies ruby-saml and nokogiri
1 parent 728fd8b commit 68ff527

13 files changed

+10
-29
lines changed

Diff for: MIT-LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2012 Lawrence Pit (http://lawrencepit.com)
1+
Copyright (c) 2012 Lawrence Pit (https://github.com/lawrencepit/ruby-saml-idp)
22

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

Diff for: README.md

-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Ruby SAML Identity Provider (IdP)
22

33
[![Build Status](https://secure.travis-ci.org/lawrencepit/ruby-saml-idp.png)](http://travis-ci.org/lawrencepit/ruby-saml-idp?branch=master)
4-
[![Code Climate](https://codeclimate.com/github/lawrencepit/ruby-saml-idp/badges/gpa.svg)](https://codeclimate.com/github/lawrencepit/ruby-saml-idp)
54
[![Gem Version](https://fury-badge.herokuapp.com/rb/ruby-saml-idp.png)](http://badge.fury.io/rb/ruby-saml-idp)
65

76
The ruby SAML Identity Provider library is for implementing the server side of SAML authentication. It allows your application to act as an IdP (Identity Provider) using the [SAML v2.0](http://en.wikipedia.org/wiki/Security_Assertion_Markup_Language) protocol. It provides a means for managing authentication requests and confirmation responses for SPs (Service Providers).
@@ -94,12 +93,6 @@ Service Providers
9493
To act as a Service Provider which generates SAML Requests and can react to SAML Responses use the excellent [ruby-saml](https://github.com/onelogin/ruby-saml) gem.
9594

9695

97-
Author
98-
----------
99-
100-
Lawrence Pit, [email protected], [lawrencepit.com](http://lawrencepit.com), [@lawrencepit](http://twitter.com/lawrencepit)
101-
102-
10396
Copyright
10497
-----------
10598

Diff for: app/controllers/saml_idp/idp_controller.rb

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# encoding: utf-8
21
module SamlIdp
32
class IdpController < ActionController::Base
43
include SamlIdp::Controller

Diff for: lib/ruby-saml-idp.rb

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# encoding: utf-8
21
module SamlIdp
32
require 'saml_idp/configurator'
43
require 'saml_idp/controller'

Diff for: lib/saml_idp/configurator.rb

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# encoding: utf-8
21
module SamlIdp
32
class Configurator
43
attr_accessor :x509_certificate, :secret_key, :algorithm

Diff for: lib/saml_idp/controller.rb

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# encoding: utf-8
2-
31
module SamlIdp
42
module Controller
53
require 'openssl'

Diff for: lib/saml_idp/default.rb

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# encoding: utf-8
21
module SamlIdp
32
module Default
43

Diff for: lib/saml_idp/engine.rb

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# encoding: utf-8
21
module SamlIdp
32
class Engine < Rails::Engine
43
end

Diff for: lib/saml_idp/version.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# encoding: utf-8
21
module SamlIdp
3-
VERSION = '0.3.4'
2+
VERSION = '0.3.5'
43
end

Diff for: ruby-saml-idp.gemspec

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- encoding: utf-8 -*-
21
$:.push File.expand_path("../lib", __FILE__)
32
require "saml_idp/version"
43

@@ -12,7 +11,7 @@ Gem::Specification.new do |s|
1211
s.summary = %q{SAML Indentity Provider in ruby}
1312
s.description = %q{SAML IdP (Identity Provider) library in ruby}
1413
s.license = "MIT"
15-
14+
1615
s.date = Time.now.utc.strftime("%Y-%m-%d")
1716
s.files = Dir.glob("app/**/*") + Dir.glob("lib/**/*") + [
1817
"MIT-LICENSE",
@@ -24,10 +23,10 @@ Gem::Specification.new do |s|
2423
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
2524
s.require_paths = ["lib"]
2625
s.rdoc_options = ["--charset=UTF-8"]
27-
s.add_development_dependency "rake"
28-
s.add_development_dependency("nokogiri", "~> 1.6.8")
26+
s.add_development_dependency("rake")
27+
s.add_development_dependency("ruby-saml")
28+
s.add_development_dependency("nokogiri")
2929
s.add_development_dependency("rspec", "~> 3.0")
30-
s.add_development_dependency("ruby-saml", "~> 0.8")
3130
s.add_development_dependency("rails", "~> 3.2")
3231
s.add_development_dependency("capybara", "~> 2.4.1")
3332
end

Diff for: spec/saml_idp/controller_spec.rb

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# encoding: utf-8
21
require 'spec_helper'
32

43
describe SamlIdp::Controller do
@@ -25,17 +24,16 @@ def params
2524
saml_response = encode_SAMLResponse("[email protected]")
2625
response = OneLogin::RubySaml::Response.new(saml_response)
2726
expect(response.name_id).to eq("[email protected]")
28-
expect(response.issuer).to eq("http://example.com")
27+
expect(response.issuers).to eq(["http://example.com"])
2928
response.settings = saml_settings
30-
expect(response.is_valid?).to be true
29+
expect(response.is_valid?).to be_truthy
3130
end
3231

3332
it "should handle custom attribute objects" do
3433
provider = double(to_s: %[<saml:AttributeStatement><saml:Attribute Name="organization"><saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">Organization name</saml:AttributeValue></saml:Attribute></saml:AttributeStatement>])
3534

3635
default_attributes = %[<saml:AttributeStatement><saml:Attribute Name="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"><saml:AttributeValue>[email protected]</saml:AttributeValue></saml:Attribute></saml:AttributeStatement>]
3736

38-
3937
saml_response = encode_SAMLResponse("[email protected]", { attributes_provider: provider })
4038
response = OneLogin::RubySaml::Response.new(saml_response)
4139
expect(response.response).to include provider.to_s
@@ -48,7 +46,7 @@ def params
4846
saml_response = encode_SAMLResponse("[email protected]")
4947
response = OneLogin::RubySaml::Response.new(saml_response)
5048
expect(response.name_id).to eq("[email protected]")
51-
expect(response.issuer).to eq("http://example.com")
49+
expect(response.issuers).to eq(["http://example.com"])
5250
response.settings = saml_settings
5351
expect(response.is_valid?).to be true
5452
end

Diff for: spec/spec_helper.rb

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# encoding: utf-8
21
$LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib'
32
$LOAD_PATH.unshift File.dirname(__FILE__)
43

Diff for: spec/support/saml_request_macros.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def make_saml_request(requested_saml_acs_url = "https://foo.example.com/saml/con
99
def saml_settings(options = {})
1010
settings = OneLogin::RubySaml::Settings.new
1111
settings.assertion_consumer_service_url = options[:saml_acs_url] || "https://foo.example.com/saml/consume"
12-
settings.issuer = options[:issuer] || "http://example.com/issuer"
12+
settings.issuer = options[:issuer] || "https://foo.example.com/"
1313
settings.idp_sso_target_url = options[:idp_sso_target_url] || "http://idp.com/saml/idp"
1414
settings.idp_cert_fingerprint = SamlIdp::Default::FINGERPRINT
1515
settings.name_identifier_format = SamlIdp::Default::NAME_ID_FORMAT

0 commit comments

Comments
 (0)