ruby-saml-idp 0.3.1 → 0.3.2

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.
data/README.md CHANGED
@@ -49,7 +49,7 @@ class SamlIdpController < SamlIdp::IdpController
49
49
  private
50
50
 
51
51
  def find_account
52
- @subdomain = saml_acs_url[/http:\/\/(.+?)\.example.com/, 1]
52
+ @subdomain = saml_acs_url[/https?:\/\/(.+?)\.example.com/, 1]
53
53
  @account = Account.find_by_subdomain(@subdomain)
54
54
  render :status => :forbidden unless @account.saml_enabled?
55
55
  end
@@ -57,6 +57,21 @@ class SamlIdpController < SamlIdp::IdpController
57
57
  end
58
58
  ```
59
59
 
60
+ The most minimal example controller would look like:
61
+
62
+ ``` ruby
63
+ class SamlIdpController < SamlIdp::IdpController
64
+
65
+ def idp_authenticate(email, password)
66
+ true
67
+ end
68
+
69
+ def idp_make_saml_response(user)
70
+ encode_SAMLResponse("you@example.com")
71
+ end
72
+
73
+ end
74
+ ```
60
75
 
61
76
  Keys and Secrets
62
77
  ----------------
@@ -4,6 +4,7 @@ module SamlIdp
4
4
  require 'openssl'
5
5
  require 'base64'
6
6
  require 'time'
7
+ require 'uuid'
7
8
 
8
9
  attr_accessor :x509_certificate, :secret_key, :algorithm
9
10
  attr_accessor :saml_acs_url
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module SamlIdp
3
- VERSION = '0.3.1'
3
+ VERSION = '0.3.2'
4
4
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-saml-idp
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 1
10
- version: 0.3.1
9
+ - 2
10
+ version: 0.3.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Lawrence Pit
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-05-08 00:00:00 Z
18
+ date: 2012-07-03 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: uuid