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 +4 -4
- data/README.md +7 -14
- data/lib/omniauth/bsmart/version.rb +1 -1
- data/omniauth-bsmart.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d12e573fa3b102e2e77df7ce49eafbfb94433ac78efefdd0a8f76fd2563b6a11
|
|
4
|
+
data.tar.gz: 76d3f3d431fb6b53a2560a20f187771855045d41f42dd48f94fe8b2c984da4e7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2c8de905fae6a2cb4104889a781788c17f0ec341552f97b1f5ee2b87beee12ec93b72228e9c9e2d65676ed16573c51523d6d03496ffa60bf47595af61420201b
|
|
7
|
+
data.tar.gz: d8b348033aeb3687860d3eaab58686b1a2b0fbb8475a79e9ffe3817e5f4c364204ded2830cf5b1f1184f0b247dda72fe8d9719de2e01179e5192684b7804b32a
|
data/README.md
CHANGED
|
@@ -1,24 +1,17 @@
|
|
|
1
|
-
#
|
|
1
|
+
# OmniAuth bSmart Strategy
|
|
2
2
|
|
|
3
|
-
[](https://github.com/bsmartlabs/omniauth-bsmart/actions/workflows/test.yml)
|
|
4
|
-
[](https://badge.fury.io/rb/omniauth-bsmart)
|
|
3
|
+
[](https://github.com/bsmartlabs/omniauth-bsmart/actions/workflows/test.yml?query=branch%3Amain)
|
|
4
|
+
[](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
|
|
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
|
-
##
|
|
55
|
+
## Provider App Setup
|
|
63
56
|
|
|
64
|
-
Create an OAuth application in bSmart
|
|
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
|
|
data/omniauth-bsmart.gemspec
CHANGED
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.
|
|
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: '
|
|
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: '
|
|
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:
|