omniauth-bsmart 1.0.0 → 1.1.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: 2e6f043f979942458da100c9045bc5926d433e6a922a47970ff495422eefb16a
4
- data.tar.gz: d5e9489558f6ae69f4c7c0044a9293dfac744fae0e27e07e622c2c2b3bde6c5e
3
+ metadata.gz: d12e573fa3b102e2e77df7ce49eafbfb94433ac78efefdd0a8f76fd2563b6a11
4
+ data.tar.gz: 76d3f3d431fb6b53a2560a20f187771855045d41f42dd48f94fe8b2c984da4e7
5
5
  SHA512:
6
- metadata.gz: c6a315131625ecf0099331b5611f0671dd6de8c11dd00d8941628b6f384f8e29bafbdeecc243a095fa92d051ffc821e947b8151bddd8f7c023cf24d81b5304b6
7
- data.tar.gz: 76f8041dbb8d0c28f07931218268ff30dcced94e3b0ca5676023dfd05ab0efba39fcbbfe09fd072c5728bca4b9c03b30b9a029e5cfbdab39d8a8091024e8a81b
6
+ metadata.gz: 2c8de905fae6a2cb4104889a781788c17f0ec341552f97b1f5ee2b87beee12ec93b72228e9c9e2d65676ed16573c51523d6d03496ffa60bf47595af61420201b
7
+ data.tar.gz: d8b348033aeb3687860d3eaab58686b1a2b0fbb8475a79e9ffe3817e5f4c364204ded2830cf5b1f1184f0b247dda72fe8d9719de2e01179e5192684b7804b32a
data/README.md CHANGED
@@ -1,24 +1,17 @@
1
- # omniauth-bsmart
1
+ # OmniAuth bSmart Strategy
2
2
 
3
- [![Test](https://github.com/bsmartlabs/omniauth-bsmart/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/bsmartlabs/omniauth-bsmart/actions/workflows/test.yml)
4
- [![Release](https://github.com/bsmartlabs/omniauth-bsmart/actions/workflows/release.yml/badge.svg)](https://github.com/bsmartlabs/omniauth-bsmart/actions/workflows/release.yml)
5
- [![Gem Version](https://badge.fury.io/rb/omniauth-bsmart.svg)](https://badge.fury.io/rb/omniauth-bsmart)
3
+ [![Test](https://github.com/bsmartlabs/omniauth-bsmart/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/bsmartlabs/omniauth-bsmart/actions/workflows/test.yml?query=branch%3Amain)
4
+ [![Gem Version](https://img.shields.io/gem/v/omniauth-bsmart.svg)](https://rubygems.org/gems/omniauth-bsmart)
6
5
 
7
6
  🔌 OmniAuth OAuth2 strategy for bSmart accounts.
8
7
 
9
8
  ## Features
10
9
 
11
- - OAuth2 Authorization Code flow using bSmart Doorkeeper endpoints
10
+ - OAuth2 Authorization Code flow using bSmart OAuth endpoints
12
11
  - User profile fetch from `GET /api/v6/user`
13
12
  - Automatic fallback to `GET /api/v6/me` when `/user` is unavailable
14
13
  - Auth hash with normalized `uid`, `info`, `credentials`, and `extra.raw_info`
15
14
 
16
- ## Requirements
17
-
18
- - Ruby `>= 3.2`
19
- - OmniAuth `~> 2.0`
20
- - `omniauth-oauth2` `>= 1.8`, `< 1.9`
21
-
22
15
  ## Installation
23
16
 
24
17
  ```ruby
@@ -59,9 +52,9 @@ provider :bsmart,
59
52
  me_url: '/api/v6/me'
60
53
  ```
61
54
 
62
- ## bSmart OAuth App Setup
55
+ ## Provider App Setup
63
56
 
64
- Create an OAuth application in bSmart (Doorkeeper) and configure your callback URL:
57
+ Create an OAuth application in bSmart and configure your callback URL:
65
58
 
66
59
  - Production OAuth base: `https://www.bsmart.it/oauth`
67
60
  - Production API base: `https://www.bsmart.it/api/v6`
@@ -117,7 +110,7 @@ bundle exec rake test_rails_integration
117
110
 
118
111
  - Ruby: `3.2`, `3.3`, `3.4`, `4.0`
119
112
  - Rails integration lanes: `~> 7.1.0`, `~> 7.2.0`, `~> 8.0.0`, `~> 8.1.0`
120
- - `omniauth-oauth2`: `1.8.x`
113
+ - `omniauth-oauth2`: `1.8.x`, `1.9.x`
121
114
 
122
115
  ## Release
123
116
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module Bsmart
5
- VERSION = '1.0.0'
5
+ VERSION = '1.1.0'
6
6
  end
7
7
  end
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
30
30
  spec.require_paths = ['lib']
31
31
 
32
32
  spec.add_dependency 'cgi', '>= 0.3.6'
33
- spec.add_dependency 'omniauth-oauth2', '>= 1.8', '< 1.9'
33
+ spec.add_dependency 'omniauth-oauth2', '>= 1.8', '< 2.0'
34
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-bsmart
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claudio Poli
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '1.8'
33
33
  - - "<"
34
34
  - !ruby/object:Gem::Version
35
- version: '1.9'
35
+ version: '2.0'
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ dependencies:
42
42
  version: '1.8'
43
43
  - - "<"
44
44
  - !ruby/object:Gem::Version
45
- version: '1.9'
45
+ version: '2.0'
46
46
  description: OAuth2 OmniAuth strategy that authenticates users against bSmart and
47
47
  maps v6 user profile data.
48
48
  email: