omniauth-zeuswpi 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: f5eb66f8bc8167c32055a23ab48ef1cd21265373b5b56b92e3adafb5157fc722
4
- data.tar.gz: a3412cc3633f7dc193ad2d35b1b67c28e56e9a3bb04c6aebf3bbd3483cd17f4b
3
+ metadata.gz: 3047793de70a726eda03f7557cadedc1ed1e71f74a7445b4983792fb7803d22d
4
+ data.tar.gz: 3648312903e7bd536a85eaad13b442975ef01de0277594d9b1556a7a38ac28a5
5
5
  SHA512:
6
- metadata.gz: 11c71863ed4aac88099157671fae11f2362dd41557a763e97f8a402f01ee6dc107da62390cb5850b5279d95037e442a9a9b6788d091b68359ec81f7f49ce76a9
7
- data.tar.gz: dc8d0bb46269b878377c499ba70f96a660e5e575575c794da9350b7b9a4158aa8f6c6c180744788009fc3731c4745fab751cd545839cc92cfb8445a832a451e3
6
+ metadata.gz: 6bc6a0d28bee8556d9e2f26f558b2e15c98e9169bea6aef5c7876241fcf42ae21528e64612e0693218811af8145e5b411994762b50ef432af097933166edf952
7
+ data.tar.gz: 26c0f4043c9857840a183cc308da78c437b85d83f87fa2c35a4e5c80223cc52e62872db206ac66774934d2b368143ef7e0b5ab67096ced015283a5ccbaf8a3c2
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 3.3.7
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!(name: 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
  }
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module ZeusWPI
5
- VERSION = '1.0.0'
5
+ VERSION = '1.1.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,15 @@
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: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
- - Tom Naessens, Zeus WPI
7
+ - Tom Naessens
8
+ - Zeus WPI
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2022-05-24 00:00:00.000000000 Z
12
+ date: 2025-02-16 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: omniauth-oauth2
@@ -33,6 +34,7 @@ extensions: []
33
34
  extra_rdoc_files: []
34
35
  files:
35
36
  - ".gitignore"
37
+ - ".tool-versions"
36
38
  - Gemfile
37
39
  - Gemfile.lock
38
40
  - LICENSE
@@ -61,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
63
  - !ruby/object:Gem::Version
62
64
  version: '0'
63
65
  requirements: []
64
- rubygems_version: 3.3.7
66
+ rubygems_version: 3.5.22
65
67
  signing_key:
66
68
  specification_version: 4
67
69
  summary: A Zeus WPI strategy for OmniAuth 1.x