omniauth-onedrive 0.0.4 → 0.0.6
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.
- checksums.yaml +5 -13
- data/README.md +6 -2
- data/lib/omniauth/onedrive/version.rb +1 -1
- data/lib/omniauth/strategies/onedrive.rb +8 -10
- data/omniauth-onedrive.gemspec +1 -1
- metadata +14 -14
checksums.yaml
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
|
|
5
|
-
data.tar.gz: !binary |-
|
|
6
|
-
MDUxYjAxMTRlNjYyZTAyMDUxY2NmZTE3ZTkwNTFjMTUyYzU3N2RjMQ==
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: b44563a32a82047f82f8754baae9a5bbfd5d7dc6
|
|
4
|
+
data.tar.gz: 6847cb4b75a3969c2cc791b4d5f25a28f49a3707
|
|
7
5
|
SHA512:
|
|
8
|
-
metadata.gz:
|
|
9
|
-
|
|
10
|
-
YmU1ZTVjMTliNjhjOWU5ZjU3OTY2NDAyNDkxYzhlMDhjMDZhNTg1N2ViMjAx
|
|
11
|
-
MzBmNTE1ZTJlYzJlODYwZDE5OGZjYjUxNTVlYTE3YjdhZjdlNjE=
|
|
12
|
-
data.tar.gz: !binary |-
|
|
13
|
-
MWRkOWQ3NThkNDViNGVmNWQ2Nzk5M2RhMjNmMGEyMmIzYjkzNDFmNjJkZDI3
|
|
14
|
-
YzMxOWM4MDI0MmUxYzA1MTQ1MzM3ZmM3OGE2OWE3MTQ0YjZlMDUzNmExN2Ey
|
|
15
|
-
N2E0ZTRhMmEzMGQyM2ZhOTVkYjFjMzViNTgyMWVmOTdjNjhhMzE=
|
|
6
|
+
metadata.gz: deddd56c03de5adab48a335ca019ae09a2099161e01bab49d564666e9dc670f7e549a55c82ffbc838b2c7371fa4abe23f455337e1628c00f3e6a33cb55389d3b
|
|
7
|
+
data.tar.gz: 92630c4be29a1383c44ed9ca1b05313082937fce1b0f32e669365650dce49b834b11640d143bcba0fb3dc552368bb4717cf58008b886122d1d638218c2eecceb
|
data/README.md
CHANGED
|
@@ -9,7 +9,11 @@ This gem is slighty based on the version of Plexinc (https://github.com/plexinc/
|
|
|
9
9
|
|
|
10
10
|
## Installation
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Before you can get started you will need to add your platform and set your redirect uri's correctly in the
|
|
13
|
+
apps dashboard. You can get there by going to: https://apps.dev.microsoft.com/#/appList and click on your application.
|
|
14
|
+
If you don't have an application yet, you will need to create it in the same dashboard.
|
|
15
|
+
|
|
16
|
+
Step two is adding this line to your application's Gemfile:
|
|
13
17
|
|
|
14
18
|
```ruby
|
|
15
19
|
gem 'omniauth-onedrive'
|
|
@@ -26,7 +30,7 @@ Or install it yourself as:
|
|
|
26
30
|
## Usage
|
|
27
31
|
|
|
28
32
|
# Add to OmniAuth::Builder do
|
|
29
|
-
provider :onedrive, ENV['live_client_id'], ENV['live_secret_key'],
|
|
33
|
+
provider :onedrive, ENV['live_client_id'], ENV['live_secret_key'],
|
|
30
34
|
{ :scope => 'wl.signin wl.basic' }
|
|
31
35
|
|
|
32
36
|
## Contributing
|
|
@@ -9,23 +9,21 @@ module OmniAuth
|
|
|
9
9
|
# Options
|
|
10
10
|
option :name, 'onedrive'
|
|
11
11
|
option :authorize_options, [:scope]
|
|
12
|
-
option :client_options,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
option :client_options,
|
|
13
|
+
site: 'https://login.live.com',
|
|
14
|
+
authorize_url: 'https://login.live.com/oauth20_authorize.srf',
|
|
15
|
+
token_url: 'https://login.live.com/oauth20_token.srf'
|
|
16
16
|
|
|
17
17
|
uid { raw_info['id'] }
|
|
18
18
|
|
|
19
19
|
info do
|
|
20
|
-
{
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
:name => raw_info['name']
|
|
24
|
-
}
|
|
20
|
+
{id: raw_info['id'],
|
|
21
|
+
email: raw_info['emails']['preferred'],
|
|
22
|
+
name: raw_info['name']}
|
|
25
23
|
end
|
|
26
24
|
|
|
27
25
|
extra do
|
|
28
|
-
{
|
|
26
|
+
{raw_info: raw_info}
|
|
29
27
|
end
|
|
30
28
|
|
|
31
29
|
def raw_info
|
data/omniauth-onedrive.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-onedrive
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- VvanGemert
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-01-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: omniauth-oauth2
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - ~>
|
|
17
|
+
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '1.2'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- - ~>
|
|
24
|
+
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '1.2'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: bundler
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- - ~>
|
|
31
|
+
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: '1.7'
|
|
34
34
|
type: :development
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- - ~>
|
|
38
|
+
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '1.7'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: rake
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
|
-
- - ~>
|
|
45
|
+
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
47
|
version: '10.0'
|
|
48
48
|
type: :development
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
|
-
- - ~>
|
|
52
|
+
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '10.0'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: rubocop
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
|
-
- -
|
|
59
|
+
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
61
|
version: '0'
|
|
62
62
|
type: :development
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
|
-
- -
|
|
66
|
+
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '0'
|
|
69
69
|
description: This strategy will allow you to connect with OneDrive
|
|
@@ -73,7 +73,7 @@ executables: []
|
|
|
73
73
|
extensions: []
|
|
74
74
|
extra_rdoc_files: []
|
|
75
75
|
files:
|
|
76
|
-
- .gitignore
|
|
76
|
+
- ".gitignore"
|
|
77
77
|
- Gemfile
|
|
78
78
|
- LICENSE.txt
|
|
79
79
|
- README.md
|
|
@@ -93,17 +93,17 @@ require_paths:
|
|
|
93
93
|
- lib
|
|
94
94
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
95
95
|
requirements:
|
|
96
|
-
- -
|
|
96
|
+
- - ">="
|
|
97
97
|
- !ruby/object:Gem::Version
|
|
98
98
|
version: '0'
|
|
99
99
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
100
|
requirements:
|
|
101
|
-
- -
|
|
101
|
+
- - ">="
|
|
102
102
|
- !ruby/object:Gem::Version
|
|
103
103
|
version: '0'
|
|
104
104
|
requirements: []
|
|
105
105
|
rubyforge_project:
|
|
106
|
-
rubygems_version: 2.
|
|
106
|
+
rubygems_version: 2.6.8
|
|
107
107
|
signing_key:
|
|
108
108
|
specification_version: 4
|
|
109
109
|
summary: Omniauth OneDrive strategy
|