omniauth-zeuswpi 1.0.0 → 2.0.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: f5eb66f8bc8167c32055a23ab48ef1cd21265373b5b56b92e3adafb5157fc722
4
- data.tar.gz: a3412cc3633f7dc193ad2d35b1b67c28e56e9a3bb04c6aebf3bbd3483cd17f4b
3
+ metadata.gz: acd3a50d37a9dc71057ead0b5eb229e3daa2eb6821c5bc57e2409620cac402a8
4
+ data.tar.gz: 1e8133c656c99f8d289597f160537801c526b56d4ca77cd1bc27cf338451d7c7
5
5
  SHA512:
6
- metadata.gz: 11c71863ed4aac88099157671fae11f2362dd41557a763e97f8a402f01ee6dc107da62390cb5850b5279d95037e442a9a9b6788d091b68359ec81f7f49ce76a9
7
- data.tar.gz: dc8d0bb46269b878377c499ba70f96a660e5e575575c794da9350b7b9a4158aa8f6c6c180744788009fc3731c4745fab751cd545839cc92cfb8445a832a451e3
6
+ metadata.gz: e9def09b45154fdfaa5cd65bdb4d23ae1dfa0b6176656d903653bfdfeabd3b2c80e37fe74896f527ca4ee726ecbeaf4605e54577a8c6b022affc05a1a46b3c5c
7
+ data.tar.gz: d7f914b0f56942e57789ef94fb16487c3ae93670d0481c58186974c070e04df0dded495fdd5df9af3f6c57bc1381fedaed544b56676f29594152c05dd8ffaf9e
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 3.4.8
data/Gemfile.lock CHANGED
@@ -1,39 +1,59 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omniauth-zeuswpi (1.0.0)
4
+ omniauth-zeuswpi (2.0.0)
5
5
  omniauth-oauth2 (~> 1.7.1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- faraday (2.3.0)
11
- faraday-net_http (~> 2.0)
12
- ruby2_keywords (>= 0.0.4)
13
- faraday-net_http (2.0.3)
14
- hashie (5.0.0)
15
- jwt (2.3.0)
16
- multi_json (1.15.0)
17
- multi_xml (0.6.0)
18
- oauth2 (1.4.9)
19
- faraday (>= 0.17.3, < 3.0)
20
- jwt (>= 1.0, < 3.0)
21
- multi_json (~> 1.3)
10
+ base64 (0.3.0)
11
+ bigdecimal (4.0.1)
12
+ faraday (2.14.0)
13
+ faraday-net_http (>= 2.0, < 3.5)
14
+ json
15
+ logger
16
+ faraday-net_http (3.4.2)
17
+ net-http (~> 0.5)
18
+ hashie (5.1.0)
19
+ logger
20
+ json (2.18.0)
21
+ jwt (3.1.2)
22
+ base64
23
+ logger (1.7.0)
24
+ multi_xml (0.8.1)
25
+ bigdecimal (>= 3.1, < 5)
26
+ net-http (0.9.1)
27
+ uri (>= 0.11.1)
28
+ oauth2 (2.0.18)
29
+ faraday (>= 0.17.3, < 4.0)
30
+ jwt (>= 1.0, < 4.0)
31
+ logger (~> 1.2)
22
32
  multi_xml (~> 0.5)
23
- rack (>= 1.2, < 3)
24
- omniauth (2.1.0)
33
+ rack (>= 1.2, < 4)
34
+ snaky_hash (~> 2.0, >= 2.0.3)
35
+ version_gem (~> 1.1, >= 1.1.9)
36
+ omniauth (2.1.4)
25
37
  hashie (>= 3.4.6)
38
+ logger
26
39
  rack (>= 2.2.3)
27
40
  rack-protection
28
- omniauth-oauth2 (1.7.2)
29
- oauth2 (~> 1.4)
41
+ omniauth-oauth2 (1.7.3)
42
+ oauth2 (>= 1.4, < 3)
30
43
  omniauth (>= 1.9, < 3)
31
- rack (2.2.3)
32
- rack-protection (2.2.0)
33
- rack
34
- ruby2_keywords (0.0.5)
44
+ rack (3.2.4)
45
+ rack-protection (4.2.1)
46
+ base64 (>= 0.1.0)
47
+ logger (>= 1.6.0)
48
+ rack (>= 3.0.0, < 4)
49
+ snaky_hash (2.0.3)
50
+ hashie (>= 0.1.0, < 6)
51
+ version_gem (>= 1.1.8, < 3)
52
+ uri (1.1.1)
53
+ version_gem (1.1.9)
35
54
 
36
55
  PLATFORMS
56
+ arm64-darwin-24
37
57
  x86_64-darwin-21
38
58
 
39
59
  DEPENDENCIES
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  [![Gem Version](https://badge.fury.io/rb/omniauth-zeuswpi.svg)](https://badge.fury.io/rb/omniauth-zeuswpi)
2
2
 
3
- # OmniAuth ZeusWPI Zauth Strategy
3
+ # OmniAuth Zeus WPI Zauth Strategy
4
4
 
5
5
  Strategy to authenticate with [Zeus WPI](https://zeus.gent) via OAuth2 in OmniAuth, powered by [Zauth](https://github.com/ZeusWPI/zauth).
6
6
 
@@ -60,9 +60,8 @@ devise :omniauthable, omniauth_providers: %i[zeuswpi]
60
60
  5. Add the `from_omniauth` helper to your `User` model:
61
61
  ```ruby
62
62
  def self.from_omniauth(auth)
63
- where(name: auth.uid).first_or_create do |user|
64
- user.name = auth.uid
65
- user.generate_key!
63
+ find_or_create_by!(uid: auth.uid) do |user|
64
+ # additional initialisation here
66
65
  end
67
66
  end
68
67
 
@@ -15,7 +15,7 @@ module OmniAuth
15
15
  # This is where you pass the options you would pass when
16
16
  # initializing your consumer from the OAuth gem.
17
17
  option :client_options, {
18
- site: 'https://adams.ugent.be',
18
+ site: 'https://zauth.zeus.gent',
19
19
  authorize_url: '/oauth/authorize/',
20
20
  token_url: '/oauth/token/'
21
21
  }
@@ -25,7 +25,7 @@ module OmniAuth
25
25
  # additional calls (if the user id is returned with the token
26
26
  # or as a URI parameter). This may not be possible with all
27
27
  # providers.
28
- uid { raw_info['username'] }
28
+ uid { raw_info['id'] }
29
29
 
30
30
  extra do
31
31
  {
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module ZeusWPI
5
- VERSION = '1.0.0'
5
+ VERSION = '2.0.0'
6
6
  end
7
7
  end
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
11
11
  gem.license = 'MIT'
12
12
  gem.summary = %(A Zeus WPI strategy for OmniAuth 1.x)
13
13
  gem.description = %(A Zeus WPI strategy for OmniAuth 1.x. This allows you to login to Zauth with your ruby app.)
14
- gem.authors = ['Tom Naessens, Zeus WPI']
14
+ gem.authors = ['Tom Naessens', 'Zeus WPI']
15
15
  gem.email = ['']
16
16
  gem.homepage = 'https://github.com/ZeusWPI/omniauth-zeuswpi'
17
17
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-zeuswpi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
- - Tom Naessens, Zeus WPI
8
- autorequire:
7
+ - Tom Naessens
8
+ - Zeus WPI
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-24 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2
@@ -33,6 +33,7 @@ extensions: []
33
33
  extra_rdoc_files: []
34
34
  files:
35
35
  - ".gitignore"
36
+ - ".tool-versions"
36
37
  - Gemfile
37
38
  - Gemfile.lock
38
39
  - LICENSE
@@ -46,7 +47,6 @@ homepage: https://github.com/ZeusWPI/omniauth-zeuswpi
46
47
  licenses:
47
48
  - MIT
48
49
  metadata: {}
49
- post_install_message:
50
50
  rdoc_options: []
51
51
  require_paths:
52
52
  - lib
@@ -61,8 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  requirements: []
64
- rubygems_version: 3.3.7
65
- signing_key:
64
+ rubygems_version: 3.6.9
66
65
  specification_version: 4
67
66
  summary: A Zeus WPI strategy for OmniAuth 1.x
68
67
  test_files: []