omniauth-dnanexus 0.1.0 → 0.2.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5bc7db96376c80561844bf3b28ba26985c23a6bdff6eca6180e2e089e7e8683b
4
- data.tar.gz: ccbfc0ba353080882aa6be789e998782c7368b62cb3b3fbc2ec7ca1fa48139f3
3
+ metadata.gz: fe01eb3423a87da46a5565457867e9c317d9050f64a3388ed70ba25007cf1309
4
+ data.tar.gz: d217575b74be1f368e9bfc132795dc4ffb1604bf00fcb22ab2473a2f9df2f835
5
5
  SHA512:
6
- metadata.gz: 57c8795f54b75c185834464f6cd286a35fb78b474b157ccad8c054acd924ae08e6d619b07a8770b01ec3b9d543d277a56b370f17375dcafcb75465323c26538b
7
- data.tar.gz: ad63b5a4311fd9b533f3fe1193c9481cfc809ba61d56a0dcd5bfaf1821b693399d9f25dbc074e1315634284847bdc6bda2a4d41abf07132c0080f377d472c24d
6
+ metadata.gz: 47e1d20b18e59bc0656677dd0d59b9efd981ebf5ca242e243a2cca7c5bdaecb3e0ea96606cd43c47412eb24039ea4b42bd871912be405488f2e29eecca186734
7
+ data.tar.gz: c0d921de7ade693de3fd5da873326a512f626f1e43cadf7124f88bcc29eb3729f45f3b8cec7639f7ee05cb7bc3e1a8bf2200120c1893ecc57402038531ad60f2
data/CHANGELOG.md CHANGED
@@ -2,7 +2,16 @@
2
2
 
3
3
  ## [Unreleased](https://github.com/MikeRogers0/omniauth-dnanexus/tree/HEAD)
4
4
 
5
- [Full Changelog](https://github.com/MikeRogers0/omniauth-dnanexus/compare/c419477e02461b4bc41b754f0daeaa997fb7ad1f...HEAD)
5
+ [Full Changelog](https://github.com/MikeRogers0/omniauth-dnanexus/compare/v0.1.0...HEAD)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - bug: Remove trailing slashes on endpoint api calls [\#5](https://github.com/MikeRogers0/omniauth-dnanexus/pull/5) ([MikeRogers0](https://github.com/MikeRogers0))
10
+ - doc: Adding links to readme [\#4](https://github.com/MikeRogers0/omniauth-dnanexus/pull/4) ([MikeRogers0](https://github.com/MikeRogers0))
11
+
12
+ ## [v0.1.0](https://github.com/MikeRogers0/omniauth-dnanexus/tree/v0.1.0) (2021-07-13)
13
+
14
+ [Full Changelog](https://github.com/MikeRogers0/omniauth-dnanexus/compare/c419477e02461b4bc41b754f0daeaa997fb7ad1f...v0.1.0)
6
15
 
7
16
  **Merged pull requests:**
8
17
 
data/README.md CHANGED
@@ -1,6 +1,22 @@
1
- # OmniAuth::DNAnexus
2
-
3
- OmniAuth strategy for [DNAnexus](https://documentation.dnanexus.com/developer/api/authentication).
1
+ <h1 align="center">
2
+ OmniAuth::DNAnexus
3
+ </h1>
4
+
5
+ <p align="center">
6
+ <a target="_blank" rel="noopener noreferrer" href="https://twitter.com/MikeRogers0">
7
+ <img src="https://img.shields.io/twitter/follow/MikeRogers0?label=Follow%20%40MikeRogers0%20For%20Updates&style=social" alt="Follow @MikeRogers on Twitter" style="max-width:100%;">
8
+ </a>
9
+ <a target="_blank" rel="noopener noreferrer" href="https://badge.fury.io/rb/omniauth-dnanexus">
10
+ <img src="https://badge.fury.io/rb/omniauth-dnanexus.svg" alt="Gem Version" style="max-width:100%;">
11
+ </a>
12
+ <a target="_blank" rel="noopener noreferrer" href="https://github.com/MikeRogers0/omniauth-dnanexus/actions/workflows/ci.yml">
13
+ <img src="https://github.com/MikeRogers0/omniauth-dnanexus/actions/workflows/ci.yml/badge.svg" alt="CI Passing" style="max-width:100%;">
14
+ </a>
15
+ </p>
16
+
17
+ <p align="center">
18
+ OmniAuth strategy for <a target="_blank" rel="noopener noreferrer" href="https://documentation.dnanexus.com/developer/api/authentication">DNAnexus</a>
19
+ </p>
4
20
 
5
21
  ## Installation
6
22
 
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module DNAnexus
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -40,13 +40,19 @@ module OmniAuth
40
40
 
41
41
  def raw_info
42
42
  @raw_info ||= access_token.post(
43
- "#{options.dnanexus_api_endpoint}/#{access_token.params["user_id"]}/describe",
43
+ user_describe_endpoint,
44
44
  body: "{}",
45
45
  headers: {
46
46
  "Content-Type" => "application/json"
47
47
  }
48
48
  ).parsed
49
49
  end
50
+
51
+ private
52
+
53
+ def user_describe_endpoint
54
+ "#{options.dnanexus_api_endpoint.chomp("/")}/#{access_token.params["user_id"]}/describe"
55
+ end
50
56
  end
51
57
  end
52
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-dnanexus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Rogers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-07-13 00:00:00.000000000 Z
11
+ date: 2021-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2