ruby-saml-idp 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +16 -1
- data/lib/saml_idp/controller.rb +1 -0
- data/lib/saml_idp/version.rb +1 -1
- metadata +4 -4
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[/
|
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
|
----------------
|
data/lib/saml_idp/controller.rb
CHANGED
data/lib/saml_idp/version.rb
CHANGED
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:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
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-
|
18
|
+
date: 2012-07-03 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: uuid
|