omniauth-singly 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  This is the official OmniAuth strategy for authenticating to Singly. To
4
4
  use it, you'll need to sign up for an OAuth2 Application ID and Secret
5
- on the [Singly Applications Page](https://dev.singly.com/apps).
5
+ on the [Singly Applications Page](https://singly.com/apps).
6
6
 
7
7
  ## Basic Usage
8
8
 
@@ -24,7 +24,19 @@ You can authorize many services through Singly. Link to
24
24
 
25
25
  /auth/singly?service=<service>
26
26
 
27
- where `service` is anything from the list at http://dev.singly.com/authorization
27
+ To see what services are supported, check the [Service
28
+ Overview](https://singly.com/docs/services_overview).
29
+
30
+ ## Scope
31
+
32
+ Custome scopes can be passed through Singly to a service via the `scope`
33
+ parameter:
34
+
35
+ /auth/singly?service=<service>&scope=<scope>
36
+
37
+ For more details, see the [authorization
38
+ documentation](https://singly.com/docs/authorization). To see what scopes are
39
+ available, check the documentation for the service you're using.
28
40
 
29
41
  ## License
30
42
 
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Singly
3
- VERSION = "0.0.1"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
@@ -12,7 +12,10 @@ module OmniAuth
12
12
  }
13
13
 
14
14
  def authorize_params
15
- super.merge(:service => request.params["service"])
15
+ super.merge(
16
+ :service => request.params["service"],
17
+ :scope => request.params["scope"]
18
+ )
16
19
  end
17
20
 
18
21
  uid { raw_info["id"] }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-singly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-15 00:00:00.000000000 -07:00
13
- default_executable:
12
+ date: 2012-09-24 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: omniauth
17
- requirement: &2153605180 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
18
17
  none: false
19
18
  requirements:
20
19
  - - ~>
@@ -22,10 +21,15 @@ dependencies:
22
21
  version: '1.0'
23
22
  type: :runtime
24
23
  prerelease: false
25
- version_requirements: *2153605180
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '1.0'
26
30
  - !ruby/object:Gem::Dependency
27
31
  name: omniauth-oauth2
28
- requirement: &2153604680 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
29
33
  none: false
30
34
  requirements:
31
35
  - - ~>
@@ -33,10 +37,15 @@ dependencies:
33
37
  version: '1.0'
34
38
  type: :runtime
35
39
  prerelease: false
36
- version_requirements: *2153604680
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '1.0'
37
46
  - !ruby/object:Gem::Dependency
38
47
  name: rspec
39
- requirement: &2153604220 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
40
49
  none: false
41
50
  requirements:
42
51
  - - ~>
@@ -44,10 +53,15 @@ dependencies:
44
53
  version: '2.7'
45
54
  type: :development
46
55
  prerelease: false
47
- version_requirements: *2153604220
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '2.7'
48
62
  - !ruby/object:Gem::Dependency
49
63
  name: rack-test
50
- requirement: &2153603840 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
51
65
  none: false
52
66
  requirements:
53
67
  - - ! '>='
@@ -55,10 +69,15 @@ dependencies:
55
69
  version: '0'
56
70
  type: :development
57
71
  prerelease: false
58
- version_requirements: *2153603840
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
59
78
  - !ruby/object:Gem::Dependency
60
79
  name: simplecov
61
- requirement: &2153603380 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
62
81
  none: false
63
82
  requirements:
64
83
  - - ! '>='
@@ -66,10 +85,15 @@ dependencies:
66
85
  version: '0'
67
86
  type: :development
68
87
  prerelease: false
69
- version_requirements: *2153603380
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
70
94
  - !ruby/object:Gem::Dependency
71
95
  name: webmock
72
- requirement: &2153602960 !ruby/object:Gem::Requirement
96
+ requirement: !ruby/object:Gem::Requirement
73
97
  none: false
74
98
  requirements:
75
99
  - - ! '>='
@@ -77,7 +101,12 @@ dependencies:
77
101
  version: '0'
78
102
  type: :development
79
103
  prerelease: false
80
- version_requirements: *2153602960
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
81
110
  description: Official Singly strategy for OmniAuth
82
111
  email:
83
112
  - kristjan@singly.com
@@ -95,7 +124,6 @@ files:
95
124
  - omniauth-singly.gemspec
96
125
  - spec/omniauth/strategies/singly_spec.rb
97
126
  - spec/spec_helper.rb
98
- has_rdoc: true
99
127
  homepage: https://github.com/Singly/omniauth-singly
100
128
  licenses: []
101
129
  post_install_message:
@@ -116,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
144
  version: '0'
117
145
  requirements: []
118
146
  rubyforge_project: omniauth-singly
119
- rubygems_version: 1.6.2
147
+ rubygems_version: 1.8.24
120
148
  signing_key:
121
149
  specification_version: 3
122
150
  summary: Official Singly strategy for OmniAuth