doorkeeper_assertion_flow 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/doorkeeper/assertion_flow.rb +34 -4
- data/lib/doorkeeper/assertion_flow/railtie.rb +5 -0
- data/lib/doorkeeper/assertion_flow/version.rb +1 -1
- data/lib/doorkeeper_assertion_flow.rb +1 -0
- metadata +2 -4
- data/lib/doorkeeper/config.rb +0 -11
- data/lib/doorkeeper/helpers/controller.rb +0 -11
- data/lib/doorkeeper/server.rb +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2066529d7f457536ffca8e604c7f42d43b10fdd9
|
4
|
+
data.tar.gz: 69d2a1186e8b87ca7aea7aaff3ade93015254112
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b09f011593abdec16cb19a7245a89d4f3299d27c3bbb0ef1350f722e5563b5580529868a360ae9e7eef623512e3681d88bb0af6feede2c1215efae2d0c8d804
|
7
|
+
data.tar.gz: e9f590c424632fcbff5bbc26153d5f2c8d994cfd6693cc72c131db12fba66688c0c2b7aec0a8840b6ea40a06e0bb4865fefa23d601416dbcb650c59a55fe4fa2
|
@@ -1,7 +1,37 @@
|
|
1
|
-
require_relative 'helpers/controller'
|
2
|
-
require_relative 'server'
|
3
|
-
require_relative 'config'
|
4
1
|
require_relative 'request/assertion'
|
5
2
|
|
6
|
-
require_relative 'assertion_flow/railtie'
|
7
3
|
require_relative 'assertion_flow/version'
|
4
|
+
require_relative 'assertion_flow/railtie'
|
5
|
+
|
6
|
+
|
7
|
+
module Doorkeeper
|
8
|
+
module AssertionFlow
|
9
|
+
|
10
|
+
def resource_owner_from_assertion
|
11
|
+
instance_eval &Doorkeeper.configuration.resource_owner_from_assertion
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
module Doorkeeper
|
18
|
+
class Server
|
19
|
+
|
20
|
+
def resource_owner_from_assertion
|
21
|
+
context.send :resource_owner_from_assertion
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
module Doorkeeper
|
28
|
+
class Config
|
29
|
+
|
30
|
+
option :resource_owner_from_assertion,
|
31
|
+
default: ->(routes) {
|
32
|
+
warn I18n.t('doorkeeper.errors.messages.assertion_flow_not_configured')
|
33
|
+
nil
|
34
|
+
}
|
35
|
+
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require_relative 'doorkeeper/assertion_flow'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: doorkeeper_assertion_flow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuki Iwanaga
|
@@ -84,10 +84,8 @@ files:
|
|
84
84
|
- lib/doorkeeper/assertion_flow.rb
|
85
85
|
- lib/doorkeeper/assertion_flow/railtie.rb
|
86
86
|
- lib/doorkeeper/assertion_flow/version.rb
|
87
|
-
- lib/doorkeeper/config.rb
|
88
|
-
- lib/doorkeeper/helpers/controller.rb
|
89
87
|
- lib/doorkeeper/request/assertion.rb
|
90
|
-
- lib/
|
88
|
+
- lib/doorkeeper_assertion_flow.rb
|
91
89
|
homepage: https://github.com/creasty/doorkeeper_assertion_flow
|
92
90
|
licenses:
|
93
91
|
- MIT
|
data/lib/doorkeeper/config.rb
DELETED