auth_passport_office 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- data/config/initializers/auth_origin_control.rb +1 -0
- data/config/initializers/authentifyd.rb +1 -1
- data/config/routes.rb +2 -2
- data/lib/auth_passport_office.rb +4 -15
- data/lib/auth_passport_office/engine.rb +0 -9
- data/lib/auth_passport_office/version.rb +1 -1
- metadata +12 -12
- data/config/initializers/auth_origin_client.rb +0 -1
@@ -0,0 +1 @@
|
|
1
|
+
AuthOriginControl.mount_path = "/"
|
@@ -1 +1 @@
|
|
1
|
-
Authentifyd.
|
1
|
+
Authentifyd.mount_path = '/auth'
|
data/config/routes.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
AuthPassportOffice::Engine.routes.draw do
|
2
|
-
mount Authentifyd::Engine => Authentifyd.
|
3
|
-
mount AuthOriginControl::Engine => AuthOriginControl.
|
2
|
+
mount Authentifyd::Engine => Authentifyd.mount_path
|
3
|
+
mount AuthOriginControl::Engine => AuthOriginControl.mount_path
|
4
4
|
match "/user" => "users#me"
|
5
5
|
|
6
6
|
end
|
data/lib/auth_passport_office.rb
CHANGED
@@ -7,23 +7,12 @@ require "auth_passport_office/authentifyd_snippets/default_helpers"
|
|
7
7
|
require "auth_passport_office/engine"
|
8
8
|
|
9
9
|
module AuthPassportOffice
|
10
|
-
mattr_accessor :
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
def self.authentifyd_custom_head_snippet
|
16
|
-
@@authentifyd_custom_head_snippet ||= AuthPassportOffice::AuthentifydSnippets::DefaultHelpers.authentifyd_custom_head_snippet
|
17
|
-
end
|
18
|
-
|
19
|
-
def self.authentifyd_custom_bottom_snippet
|
20
|
-
@@authentifyd_custom_bottom_snippet ||= AuthPassportOffice::AuthentifydSnippets::DefaultHelpers.authentifyd_custom_bottom_snippet
|
10
|
+
mattr_accessor :mount_path
|
11
|
+
|
12
|
+
def self.mount_path
|
13
|
+
@@mount_path ||= "/"
|
21
14
|
end
|
22
15
|
|
23
|
-
def self.authentifyd_top_navbar_snippet
|
24
|
-
@@authentifyd_top_navbar_snippet ||= AuthPassportOffice::AuthentifydSnippets::DefaultHelpers.authentifyd_top_navbar_snippet
|
25
|
-
end
|
26
|
-
|
27
16
|
def self.setup
|
28
17
|
yield self
|
29
18
|
end
|
@@ -2,14 +2,5 @@ module AuthPassportOffice
|
|
2
2
|
class Engine < ::Rails::Engine
|
3
3
|
isolate_namespace AuthPassportOffice
|
4
4
|
|
5
|
-
initializer "auth_passport_office.configure", :before => "authentifyd.configure" do |app|
|
6
|
-
app.config.authentifyd = {
|
7
|
-
:custom_head_snippet => AuthPassportOffice.authentifyd_custom_head_snippet,
|
8
|
-
:custom_bottom_snippet => AuthPassportOffice.authentifyd_custom_bottom_snippet,
|
9
|
-
:top_navbar_snippet => AuthPassportOffice.authentifyd_top_navbar_snippet,
|
10
|
-
:default_after_sign_in_path => AuthPassportOffice.authentifyd_default_after_sign_in_path
|
11
|
-
}
|
12
|
-
end
|
13
|
-
|
14
5
|
end
|
15
6
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: auth_passport_office
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.17
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2014-04-07 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70136497593660 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.2.13
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70136497593660
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: authentifyd
|
27
|
-
requirement: &
|
27
|
+
requirement: &70136497593020 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 0.1.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70136497593020
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: doorkeeper
|
38
|
-
requirement: &
|
38
|
+
requirement: &70136497592480 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 0.6.0
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70136497592480
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: auth_origin_control
|
49
|
-
requirement: &
|
49
|
+
requirement: &70136497591960 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 0.1.1
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70136497591960
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: mysql2
|
60
|
-
requirement: &
|
60
|
+
requirement: &70136497591440 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,7 +65,7 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70136497591440
|
69
69
|
description: Devise + Doorkeeper + ApiAUth
|
70
70
|
email:
|
71
71
|
- nicolas@rbogast.me
|
@@ -79,7 +79,7 @@ files:
|
|
79
79
|
- app/controllers/auth_passport_office/users_controller.rb
|
80
80
|
- app/helpers/auth_passport_office/application_helper.rb
|
81
81
|
- app/views/layouts/auth_passport_office/application.html.erb
|
82
|
-
- config/initializers/
|
82
|
+
- config/initializers/auth_origin_control.rb
|
83
83
|
- config/initializers/authentifyd.rb
|
84
84
|
- config/initializers/devise.rb
|
85
85
|
- config/initializers/doorkeeper.rb
|
@@ -1 +0,0 @@
|
|
1
|
-
AuthOriginControl.path = "/"
|