omniauth-heroku 0.3.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +7 -8
- metadata +10 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7114a261c4657b1093fa15c002dc0c5dc501c3a147670c99b31bb82bb2173290
|
4
|
+
data.tar.gz: 409fe3bd640e82ec72fc30f92ef9a0fd383bb95260b4f1d8d7d9d070b6d325b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36e9c08495d7941cf3a19b8e2b972ec2d70fd992c326f88586141892c5bc445ab4ee9ff28927062d6a5babd58351f7b16fda97fcea9e5933750bc73178f5d6fd
|
7
|
+
data.tar.gz: 6d8bcd09cd0847c01f870ad2d955a90b21ac449b56ba0aafcd275790a9fc8efbca5aae86252a80f3ec916583780d352516b4065e275a9b9450c6201d034c4703
|
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# OmniAuth Heroku
|
2
2
|
|
3
|
-
[![Build Status](https://
|
4
|
-
|
3
|
+
[![Build Status](https://github.com/heroku/omniauth-heroku/actions/workflows/ci.yml/badge.svg)](https://github.com/heroku/omniauth-heroku/actions)
|
5
4
|
|
6
5
|
[OmniAuth](https://github.com/intridea/omniauth) strategy for authenticating
|
7
6
|
Heroku users.
|
@@ -44,9 +43,9 @@ refresh token and an access token (identified just as `"token"`) to the
|
|
44
43
|
account.
|
45
44
|
|
46
45
|
We recommend using this access token together with
|
47
|
-
[Heroku
|
46
|
+
the [Heroku Platform API gem][heroku-ruby-client] to make API calls on behalf of the user.
|
48
47
|
|
49
|
-
[heroku-ruby-client]: https://github.com/heroku/
|
48
|
+
[heroku-ruby-client]: https://github.com/heroku/platform-api
|
50
49
|
|
51
50
|
Refer to the examples below to see how these work.
|
52
51
|
|
@@ -123,8 +122,8 @@ class Myapp < Sinatra::Application
|
|
123
122
|
access_token = env["omniauth.auth"]["credentials"]["token"]
|
124
123
|
# DO NOT store this token in an unencrypted cookie session
|
125
124
|
# Please read "A note on security" below!
|
126
|
-
|
127
|
-
"You have #{
|
125
|
+
heroku = PlatformAPI.connect_oauth(access_token)
|
126
|
+
"You have #{heroku.app.list.count} apps"
|
128
127
|
end
|
129
128
|
end
|
130
129
|
```
|
@@ -166,8 +165,8 @@ class SessionsController < ApplicationController
|
|
166
165
|
access_token = request.env['omniauth.auth']['credentials']['token']
|
167
166
|
# DO NOT store this token in an unencrypted cookie session
|
168
167
|
# Please read "A note on security" below!
|
169
|
-
|
170
|
-
@apps =
|
168
|
+
heroku = PlatformAPI.connect_oauth(access_token)
|
169
|
+
@apps = heroku.app.list
|
171
170
|
end
|
172
171
|
end
|
173
172
|
```
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-heroku
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pedro Belo
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.9.0
|
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
|
-
version:
|
26
|
+
version: 1.9.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: omniauth-oauth2
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 1.6.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 1.6.0
|
41
41
|
description: OmniAuth strategy for Heroku.
|
42
42
|
email:
|
43
43
|
- pedro@heroku.com
|
@@ -53,7 +53,7 @@ homepage: https://github.com/heroku/omniauth-heroku
|
|
53
53
|
licenses:
|
54
54
|
- MIT
|
55
55
|
metadata: {}
|
56
|
-
post_install_message:
|
56
|
+
post_install_message:
|
57
57
|
rdoc_options: []
|
58
58
|
require_paths:
|
59
59
|
- lib
|
@@ -68,9 +68,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '0'
|
70
70
|
requirements: []
|
71
|
-
|
72
|
-
|
73
|
-
signing_key:
|
71
|
+
rubygems_version: 3.2.14
|
72
|
+
signing_key:
|
74
73
|
specification_version: 4
|
75
74
|
summary: OmniAuth strategy for Heroku.
|
76
75
|
test_files: []
|