omniauth-suomifi 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniauth-suomifi/version.rb +1 -1
- data/lib/omniauth/strategies/suomifi.rb +13 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a1f6be0c9db1b5a90f38af2f9eb08aa48330aaf0fac09d820a91134a7d22ba9
|
4
|
+
data.tar.gz: a03dae85e69231eb5106a76499bebf5a0dd8ddb639b8bcb3cc05348879d73470
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3b5d2142c659ecdda0d3e88b625e0005b35f58bb25b4f44d06dff8b984deb733b148f8e85537d05584a7d817d0f1b36bb3efba52599e71b9858003209417e1a
|
7
|
+
data.tar.gz: a60c7e15ffa8aecad4d896d3de2ebb4aa20ac3cd44fb7764b093d66c85a8330b90954f889319e21704bfb2c70f1fc66f0f8bb5cf0b7774c1b31d18991e7bf2f5
|
@@ -569,6 +569,19 @@ module OmniAuth
|
|
569
569
|
end
|
570
570
|
end
|
571
571
|
|
572
|
+
# Overridden to disable passing the relay state with a request parameter
|
573
|
+
# which is possible in the default implementation.
|
574
|
+
def slo_relay_state
|
575
|
+
state = super
|
576
|
+
|
577
|
+
# Ensure that we are only using the relay states to redirect the user
|
578
|
+
# within the current website. This forces the relay state to always
|
579
|
+
# start with a single forward slash character (/).
|
580
|
+
return '/' unless state =~ %r{^/[^/].*}
|
581
|
+
|
582
|
+
state
|
583
|
+
end
|
584
|
+
|
572
585
|
def scoped_request_attributes
|
573
586
|
scopes = [:limited]
|
574
587
|
scopes << :medium_extensive if options.scope_of_data == :medium_extensive
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-suomifi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Antti Hukkanen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth-saml
|