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 +4 -4
- data/.tool-versions +1 -0
- data/README.md +3 -4
- data/lib/omniauth/strategies/zeuswpi.rb +1 -1
- data/lib/omniauth/zeuswpi/version.rb +1 -1
- data/omniauth-zeuswpi.gemspec +1 -1
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3047793de70a726eda03f7557cadedc1ed1e71f74a7445b4983792fb7803d22d
|
4
|
+
data.tar.gz: 3648312903e7bd536a85eaad13b442975ef01de0277594d9b1556a7a38ac28a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
[](https://badge.fury.io/rb/omniauth-zeuswpi)
|
2
2
|
|
3
|
-
# OmniAuth
|
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
|
-
|
64
|
-
|
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://
|
18
|
+
site: 'https://zauth.zeus.gent',
|
19
19
|
authorize_url: '/oauth/authorize/',
|
20
20
|
token_url: '/oauth/token/'
|
21
21
|
}
|
data/omniauth-zeuswpi.gemspec
CHANGED
@@ -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.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Tom Naessens
|
7
|
+
- Tom Naessens
|
8
|
+
- Zeus WPI
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
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.
|
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
|