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.
Files changed (3) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +7 -8
  3. metadata +10 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 964daffc75b3ca8125e9cd80e31d0e96ffa1cb46
4
- data.tar.gz: a317e2dea50412a8fd74540561eb5b3a7172403c
2
+ SHA256:
3
+ metadata.gz: 7114a261c4657b1093fa15c002dc0c5dc501c3a147670c99b31bb82bb2173290
4
+ data.tar.gz: 409fe3bd640e82ec72fc30f92ef9a0fd383bb95260b4f1d8d7d9d070b6d325b4
5
5
  SHA512:
6
- metadata.gz: fd660369c9518967643d91bc036445fd66c098d8ddf8737c46dae4413a829991d66287989a7c04f8fd24d8753ddc817d7a4fbd958141f6df4b7a9d5b529b2d9a
7
- data.tar.gz: 4d6ba13e6ce6a42bc57514623c7c3d5149665b0ff915c1dd046e11b9704216ef01a0128b2dfb40846b21b72bbf3ac522841d114eb70694e699c381fed66485ab
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://travis-ci.org/heroku/omniauth-heroku.svg?branch=master)](https://travis-ci.org/heroku/omniauth-heroku)
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.rb][heroku-ruby-client] to make API calls on behalf of the user.
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/heroku.rb
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
- heroku_api = Heroku::API.new(api_key: access_token)
127
- "You have #{heroku_api.get_apps.body.size} apps"
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
- heroku_api = Heroku::API.new(api_key: access_token)
170
- @apps = heroku_api.get_apps.body
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.3.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: 2016-06-29 00:00:00.000000000 Z
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: '1.2'
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: '1.2'
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: '1.2'
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: '1.2'
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
- rubyforge_project:
72
- rubygems_version: 2.6.4
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: []