invitational 1.1.5 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6be26e6c2ba8c14eedc3c84029c42fb2d8ba27c
|
4
|
+
data.tar.gz: adfd381d2d9b1484211b2dd56e153eda3f806990
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b893c783473e121a31c412639316039b8e8aec19b508b7a660949f0ccefea5e245939d0d7872c11aefa9d322a55c22d14a68560624347e6a323db3f126ccd23
|
7
|
+
data.tar.gz: fa83149b377ba8788bee298f644346e8f1363def5b3c63ccb9f8bf3d2ce9bdf0709c9996c748c7ef05864e0e1cba4a18dc1606716fc8507ca2d0afacfea7b78e
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/invitational.png)](http://badge.fury.io/rb/invitational)
|
2
|
+
|
1
3
|
#Overview
|
2
4
|
|
3
|
-
The purpose of Invitational is to eliminate the tight coupling between user identity/authentication and application authorization. It is a common pattern in multi-user systems that in order to grant access to someone else, an existing administrator must create a user account, providing a username and password, and then grant permissions to that account. The administrator then needs to communicate the username and password to the individual, often via email. The complexity of this process is compounded in multi-account based systems where a single user might wind up with mutiple user accounts with various usernames and passwords.
|
5
|
+
The purpose of Invitational is to eliminate the tight coupling between user identity/authentication and application functional authorization. It is a common pattern in multi-user systems that in order to grant access to someone else, an existing administrator must create a user account, providing a username and password, and then grant permissions to that account. The administrator then needs to communicate the username and password to the individual, often via email. The complexity of this process is compounded in multi-account based systems where a single user might wind up with mutiple user accounts with various usernames and passwords.
|
4
6
|
|
5
7
|
Inspired by 37Signals' single sign-on process for Basecamp, Invitational provides an intermediate layer between an identity model (i.e. User) and some entity to which authorization is given. This intermediate layer, an Invitation, represents a granted role for a given entity. These roles can then be leveraged by the application's functional authorization system.
|
6
8
|
|
@@ -17,6 +17,10 @@ module Invitational
|
|
17
17
|
template "invitation.rb", "app/models/invitation.rb"
|
18
18
|
end
|
19
19
|
|
20
|
+
def add_to_gemfile
|
21
|
+
gem "cancancan"
|
22
|
+
end
|
23
|
+
|
20
24
|
def ability_model
|
21
25
|
@identity_model = @identity_class.underscore
|
22
26
|
template "ability.rb", "app/models/ability.rb"
|
data/lib/invitational/version.rb
CHANGED
@@ -3,8 +3,7 @@ namespace :invitational do
|
|
3
3
|
task :create_uberadmin => [:environment] do
|
4
4
|
email = Digest::SHA1.hexdigest(DateTime.now.to_s) + "@localhost"
|
5
5
|
|
6
|
-
|
7
|
-
invitation = creator.invitation
|
6
|
+
invitation = Invitation.invite_uberadmin email
|
8
7
|
|
9
8
|
puts "Your uberadmin invitation claim hash is: #{invitation.claim_hash}"
|
10
9
|
puts "Visit your claim URL with this hash to claim the invitation."
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: invitational
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Goerlich
|
@@ -123,7 +123,8 @@ dependencies:
|
|
123
123
|
- - "~>"
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: 2.3.0
|
126
|
-
description:
|
126
|
+
description: Solution that eliminates the tight coupling between user identity/authentication
|
127
|
+
and application functional authorization
|
127
128
|
email:
|
128
129
|
- dave@d-i.co
|
129
130
|
- joe@d-i.co
|
@@ -183,5 +184,6 @@ rubyforge_project:
|
|
183
184
|
rubygems_version: 2.2.0
|
184
185
|
signing_key:
|
185
186
|
specification_version: 4
|
186
|
-
summary:
|
187
|
+
summary: Solution that eliminates the tight coupling between user identity/authentication
|
188
|
+
and application functional authorization
|
187
189
|
test_files: []
|