oxd-ruby 0.1.9 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/CHANGELOG.md +16 -0
- data/README.md +3 -241
- data/lib/generators/oxd/templates/oxd_config.rb +5 -5
- data/lib/oxd-ruby.rb +3 -1
- data/lib/oxd/client_oxd_commands.rb +96 -109
- data/lib/oxd/config.rb +17 -15
- data/lib/oxd/errors.rb +33 -0
- data/lib/oxd/oxd_connector.rb +51 -49
- data/lib/oxd/uma_commands.rb +72 -35
- data/lib/oxd/version.rb +2 -1
- data/oxd-ruby.gemspec +2 -2
- metadata +8 -72
- data/demosite/.gitignore +0 -17
- data/demosite/Gemfile +0 -50
- data/demosite/Gemfile.lock +0 -197
- data/demosite/README.md +0 -172
- data/demosite/Rakefile +0 -6
- data/demosite/app/assets/images/.keep +0 -0
- data/demosite/app/assets/javascripts/application.js +0 -17
- data/demosite/app/assets/javascripts/bootstrap.js.coffee +0 -3
- data/demosite/app/assets/stylesheets/application.css +0 -16
- data/demosite/app/assets/stylesheets/bootstrap_and_overrides.css +0 -7
- data/demosite/app/controllers/application_controller.rb +0 -46
- data/demosite/app/controllers/concerns/.keep +0 -0
- data/demosite/app/controllers/home_controller.rb +0 -79
- data/demosite/app/controllers/uma_controller.rb +0 -40
- data/demosite/app/helpers/application_helper.rb +0 -2
- data/demosite/app/mailers/.keep +0 -0
- data/demosite/app/models/.keep +0 -0
- data/demosite/app/models/concerns/.keep +0 -0
- data/demosite/app/views/home/index.html.erb +0 -210
- data/demosite/app/views/layouts/application.html.erb +0 -14
- data/demosite/app/views/uma/index.html.erb +0 -123
- data/demosite/bin/bundle +0 -3
- data/demosite/bin/rails +0 -9
- data/demosite/bin/rake +0 -9
- data/demosite/bin/setup +0 -29
- data/demosite/bin/spring +0 -15
- data/demosite/config.ru +0 -4
- data/demosite/config/application.rb +0 -26
- data/demosite/config/boot.rb +0 -3
- data/demosite/config/database.yml +0 -25
- data/demosite/config/environment.rb +0 -5
- data/demosite/config/environments/development.rb +0 -41
- data/demosite/config/environments/production.rb +0 -79
- data/demosite/config/environments/test.rb +0 -42
- data/demosite/config/initializers/assets.rb +0 -11
- data/demosite/config/initializers/backtrace_silencers.rb +0 -7
- data/demosite/config/initializers/cookies_serializer.rb +0 -3
- data/demosite/config/initializers/filter_parameter_logging.rb +0 -4
- data/demosite/config/initializers/inflections.rb +0 -16
- data/demosite/config/initializers/mime_types.rb +0 -4
- data/demosite/config/initializers/oxd_config.rb +0 -25
- data/demosite/config/initializers/session_store.rb +0 -3
- data/demosite/config/initializers/wrap_parameters.rb +0 -14
- data/demosite/config/locales/en.bootstrap.yml +0 -23
- data/demosite/config/locales/en.yml +0 -23
- data/demosite/config/routes.rb +0 -76
- data/demosite/config/secrets.yml +0 -22
- data/demosite/db/seeds.rb +0 -7
- data/demosite/lib/assets/.keep +0 -0
- data/demosite/lib/tasks/.keep +0 -0
- data/demosite/log/.keep +0 -0
- data/demosite/public/404.html +0 -67
- data/demosite/public/422.html +0 -67
- data/demosite/public/500.html +0 -66
- data/demosite/public/favicon.ico +0 -0
- data/demosite/public/robots.txt +0 -5
- data/demosite/test/controllers/.keep +0 -0
- data/demosite/test/fixtures/.keep +0 -0
- data/demosite/test/helpers/.keep +0 -0
- data/demosite/test/integration/.keep +0 -0
- data/demosite/test/mailers/.keep +0 -0
- data/demosite/test/models/.keep +0 -0
- data/demosite/test/test_helper.rb +0 -10
- data/demosite/vendor/assets/javascripts/.keep +0 -0
- data/demosite/vendor/assets/stylesheets/.keep +0 -0
data/lib/oxd/version.rb
CHANGED
data/oxd-ruby.gemspec
CHANGED
@@ -17,8 +17,8 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
|
-
spec.add_development_dependency "bundler", "~> 1.
|
21
|
-
spec.add_development_dependency "rake", "~>
|
20
|
+
spec.add_development_dependency "bundler", "~> 1.16.1"
|
21
|
+
spec.add_development_dependency "rake", "~> 11.0.1"
|
22
22
|
spec.add_development_dependency "rspec"
|
23
23
|
spec.add_development_dependency "rspec-rails"
|
24
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oxd-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- inderpal6785
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.16.1
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 1.16.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 11.0.1
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 11.0.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -82,76 +82,12 @@ files:
|
|
82
82
|
- LICENSE.txt
|
83
83
|
- README.md
|
84
84
|
- Rakefile
|
85
|
-
- demosite/.gitignore
|
86
|
-
- demosite/Gemfile
|
87
|
-
- demosite/Gemfile.lock
|
88
|
-
- demosite/README.md
|
89
|
-
- demosite/Rakefile
|
90
|
-
- demosite/app/assets/images/.keep
|
91
|
-
- demosite/app/assets/javascripts/application.js
|
92
|
-
- demosite/app/assets/javascripts/bootstrap.js.coffee
|
93
|
-
- demosite/app/assets/stylesheets/application.css
|
94
|
-
- demosite/app/assets/stylesheets/bootstrap_and_overrides.css
|
95
|
-
- demosite/app/controllers/application_controller.rb
|
96
|
-
- demosite/app/controllers/concerns/.keep
|
97
|
-
- demosite/app/controllers/home_controller.rb
|
98
|
-
- demosite/app/controllers/uma_controller.rb
|
99
|
-
- demosite/app/helpers/application_helper.rb
|
100
|
-
- demosite/app/mailers/.keep
|
101
|
-
- demosite/app/models/.keep
|
102
|
-
- demosite/app/models/concerns/.keep
|
103
|
-
- demosite/app/views/home/index.html.erb
|
104
|
-
- demosite/app/views/layouts/application.html.erb
|
105
|
-
- demosite/app/views/uma/index.html.erb
|
106
|
-
- demosite/bin/bundle
|
107
|
-
- demosite/bin/rails
|
108
|
-
- demosite/bin/rake
|
109
|
-
- demosite/bin/setup
|
110
|
-
- demosite/bin/spring
|
111
|
-
- demosite/config.ru
|
112
|
-
- demosite/config/application.rb
|
113
|
-
- demosite/config/boot.rb
|
114
|
-
- demosite/config/database.yml
|
115
|
-
- demosite/config/environment.rb
|
116
|
-
- demosite/config/environments/development.rb
|
117
|
-
- demosite/config/environments/production.rb
|
118
|
-
- demosite/config/environments/test.rb
|
119
|
-
- demosite/config/initializers/assets.rb
|
120
|
-
- demosite/config/initializers/backtrace_silencers.rb
|
121
|
-
- demosite/config/initializers/cookies_serializer.rb
|
122
|
-
- demosite/config/initializers/filter_parameter_logging.rb
|
123
|
-
- demosite/config/initializers/inflections.rb
|
124
|
-
- demosite/config/initializers/mime_types.rb
|
125
|
-
- demosite/config/initializers/oxd_config.rb
|
126
|
-
- demosite/config/initializers/session_store.rb
|
127
|
-
- demosite/config/initializers/wrap_parameters.rb
|
128
|
-
- demosite/config/locales/en.bootstrap.yml
|
129
|
-
- demosite/config/locales/en.yml
|
130
|
-
- demosite/config/routes.rb
|
131
|
-
- demosite/config/secrets.yml
|
132
|
-
- demosite/db/seeds.rb
|
133
|
-
- demosite/lib/assets/.keep
|
134
|
-
- demosite/lib/tasks/.keep
|
135
|
-
- demosite/log/.keep
|
136
|
-
- demosite/public/404.html
|
137
|
-
- demosite/public/422.html
|
138
|
-
- demosite/public/500.html
|
139
|
-
- demosite/public/favicon.ico
|
140
|
-
- demosite/public/robots.txt
|
141
|
-
- demosite/test/controllers/.keep
|
142
|
-
- demosite/test/fixtures/.keep
|
143
|
-
- demosite/test/helpers/.keep
|
144
|
-
- demosite/test/integration/.keep
|
145
|
-
- demosite/test/mailers/.keep
|
146
|
-
- demosite/test/models/.keep
|
147
|
-
- demosite/test/test_helper.rb
|
148
|
-
- demosite/vendor/assets/javascripts/.keep
|
149
|
-
- demosite/vendor/assets/stylesheets/.keep
|
150
85
|
- lib/generators/oxd/config_generator.rb
|
151
86
|
- lib/generators/oxd/templates/oxd_config.rb
|
152
87
|
- lib/oxd-ruby.rb
|
153
88
|
- lib/oxd/client_oxd_commands.rb
|
154
89
|
- lib/oxd/config.rb
|
90
|
+
- lib/oxd/errors.rb
|
155
91
|
- lib/oxd/oxd_connector.rb
|
156
92
|
- lib/oxd/uma_commands.rb
|
157
93
|
- lib/oxd/version.rb
|
@@ -175,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
111
|
version: '0'
|
176
112
|
requirements: []
|
177
113
|
rubyforge_project:
|
178
|
-
rubygems_version: 2.
|
114
|
+
rubygems_version: 2.7.2
|
179
115
|
signing_key:
|
180
116
|
specification_version: 4
|
181
117
|
summary: Ruby Client Library for Oxd Server - OpenID Connect Client RP Middleware,
|
data/demosite/.gitignore
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
|
2
|
-
#
|
3
|
-
# If you find yourself ignoring temporary files generated by your text editor
|
4
|
-
# or operating system, you probably want to add a global ignore instead:
|
5
|
-
# git config --global core.excludesfile '~/.gitignore_global'
|
6
|
-
|
7
|
-
# Ignore bundler config.
|
8
|
-
/.bundle
|
9
|
-
|
10
|
-
# Ignore the default SQLite database.
|
11
|
-
/db/*.sqlite3
|
12
|
-
/db/*.sqlite3-journal
|
13
|
-
|
14
|
-
# Ignore all logfiles and tempfiles.
|
15
|
-
/log/*
|
16
|
-
!/log/.keep
|
17
|
-
/tmp
|
data/demosite/Gemfile
DELETED
@@ -1,50 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
3
|
-
gem 'rails', '4.2.6'
|
4
|
-
# Use sqlite3 as the database for Active Record
|
5
|
-
gem 'sqlite3'
|
6
|
-
# Use SCSS for stylesheets
|
7
|
-
gem 'sass-rails', '~> 5.0'
|
8
|
-
# Use Uglifier as compressor for JavaScript assets
|
9
|
-
gem 'uglifier', '>= 1.3.0'
|
10
|
-
# Use CoffeeScript for .coffee assets and views
|
11
|
-
gem 'coffee-rails', '~> 4.1.0'
|
12
|
-
# See https://github.com/rails/execjs#readme for more supported runtimes
|
13
|
-
#gem 'therubyracer'
|
14
|
-
|
15
|
-
# Use jquery as the JavaScript library
|
16
|
-
gem 'jquery-rails'
|
17
|
-
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
|
18
|
-
gem 'turbolinks'
|
19
|
-
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
20
|
-
gem 'jbuilder', '~> 2.0'
|
21
|
-
# bundle exec rake doc:rails generates the API under doc/api.
|
22
|
-
gem 'sdoc', '~> 0.4.0', group: :doc
|
23
|
-
gem "passenger"
|
24
|
-
|
25
|
-
gem "twitter-bootstrap-rails"
|
26
|
-
|
27
|
-
# Use ActiveModel has_secure_password
|
28
|
-
# gem 'bcrypt', '~> 3.1.7'
|
29
|
-
|
30
|
-
# Use Unicorn as the app server
|
31
|
-
# gem 'unicorn'
|
32
|
-
|
33
|
-
# Use Capistrano for deployment
|
34
|
-
# gem 'capistrano-rails', group: :development
|
35
|
-
|
36
|
-
#gem 'oxd-ruby', '~> 0.1.9'
|
37
|
-
gem 'oxd-ruby', path: '/var/www/oxd-ruby-3.1.1'
|
38
|
-
|
39
|
-
group :development, :test do
|
40
|
-
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
41
|
-
gem 'byebug'
|
42
|
-
end
|
43
|
-
|
44
|
-
group :development do
|
45
|
-
# Access an IRB console on exception pages or by using <%= console %> in views
|
46
|
-
gem 'web-console', '~> 2.0'
|
47
|
-
|
48
|
-
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
49
|
-
gem 'spring'
|
50
|
-
end
|
data/demosite/Gemfile.lock
DELETED
@@ -1,197 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: /var/www/oxd-ruby-3.1.1
|
3
|
-
specs:
|
4
|
-
oxd-ruby (0.1.9)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
actionmailer (4.2.6)
|
10
|
-
actionpack (= 4.2.6)
|
11
|
-
actionview (= 4.2.6)
|
12
|
-
activejob (= 4.2.6)
|
13
|
-
mail (~> 2.5, >= 2.5.4)
|
14
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
15
|
-
actionpack (4.2.6)
|
16
|
-
actionview (= 4.2.6)
|
17
|
-
activesupport (= 4.2.6)
|
18
|
-
rack (~> 1.6)
|
19
|
-
rack-test (~> 0.6.2)
|
20
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
21
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
22
|
-
actionview (4.2.6)
|
23
|
-
activesupport (= 4.2.6)
|
24
|
-
builder (~> 3.1)
|
25
|
-
erubis (~> 2.7.0)
|
26
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
27
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
28
|
-
activejob (4.2.6)
|
29
|
-
activesupport (= 4.2.6)
|
30
|
-
globalid (>= 0.3.0)
|
31
|
-
activemodel (4.2.6)
|
32
|
-
activesupport (= 4.2.6)
|
33
|
-
builder (~> 3.1)
|
34
|
-
activerecord (4.2.6)
|
35
|
-
activemodel (= 4.2.6)
|
36
|
-
activesupport (= 4.2.6)
|
37
|
-
arel (~> 6.0)
|
38
|
-
activesupport (4.2.6)
|
39
|
-
i18n (~> 0.7)
|
40
|
-
json (~> 1.7, >= 1.7.7)
|
41
|
-
minitest (~> 5.1)
|
42
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
43
|
-
tzinfo (~> 1.1)
|
44
|
-
arel (6.0.4)
|
45
|
-
binding_of_caller (0.7.2)
|
46
|
-
debug_inspector (>= 0.0.1)
|
47
|
-
builder (3.2.3)
|
48
|
-
byebug (9.1.0)
|
49
|
-
coffee-rails (4.1.1)
|
50
|
-
coffee-script (>= 2.2.0)
|
51
|
-
railties (>= 4.0.0, < 5.1.x)
|
52
|
-
coffee-script (2.4.1)
|
53
|
-
coffee-script-source
|
54
|
-
execjs
|
55
|
-
coffee-script-source (1.12.2)
|
56
|
-
commonjs (0.2.7)
|
57
|
-
concurrent-ruby (1.0.5)
|
58
|
-
crass (1.0.2)
|
59
|
-
debug_inspector (0.0.3)
|
60
|
-
erubis (2.7.0)
|
61
|
-
execjs (2.7.0)
|
62
|
-
ffi (1.9.18)
|
63
|
-
globalid (0.4.0)
|
64
|
-
activesupport (>= 4.2.0)
|
65
|
-
grease (0.3.1)
|
66
|
-
i18n (0.8.6)
|
67
|
-
jbuilder (2.7.0)
|
68
|
-
activesupport (>= 4.2.0)
|
69
|
-
multi_json (>= 1.2)
|
70
|
-
jquery-rails (4.3.1)
|
71
|
-
rails-dom-testing (>= 1, < 3)
|
72
|
-
railties (>= 4.2.0)
|
73
|
-
thor (>= 0.14, < 2.0)
|
74
|
-
json (1.8.6)
|
75
|
-
less (2.6.0)
|
76
|
-
commonjs (~> 0.2.7)
|
77
|
-
less-rails (3.0.0)
|
78
|
-
actionpack (>= 4.0)
|
79
|
-
grease
|
80
|
-
less (~> 2.6.0)
|
81
|
-
sprockets (> 2, < 4)
|
82
|
-
tilt
|
83
|
-
loofah (2.1.1)
|
84
|
-
crass (~> 1.0.2)
|
85
|
-
nokogiri (>= 1.5.9)
|
86
|
-
mail (2.6.6)
|
87
|
-
mime-types (>= 1.16, < 4)
|
88
|
-
mime-types (3.1)
|
89
|
-
mime-types-data (~> 3.2015)
|
90
|
-
mime-types-data (3.2016.0521)
|
91
|
-
mini_portile2 (2.3.0)
|
92
|
-
minitest (5.10.3)
|
93
|
-
multi_json (1.12.2)
|
94
|
-
nokogiri (1.8.1)
|
95
|
-
mini_portile2 (~> 2.3.0)
|
96
|
-
passenger (5.1.8)
|
97
|
-
rack
|
98
|
-
rake (>= 0.8.1)
|
99
|
-
rack (1.6.8)
|
100
|
-
rack-test (0.6.3)
|
101
|
-
rack (>= 1.0)
|
102
|
-
rails (4.2.6)
|
103
|
-
actionmailer (= 4.2.6)
|
104
|
-
actionpack (= 4.2.6)
|
105
|
-
actionview (= 4.2.6)
|
106
|
-
activejob (= 4.2.6)
|
107
|
-
activemodel (= 4.2.6)
|
108
|
-
activerecord (= 4.2.6)
|
109
|
-
activesupport (= 4.2.6)
|
110
|
-
bundler (>= 1.3.0, < 2.0)
|
111
|
-
railties (= 4.2.6)
|
112
|
-
sprockets-rails
|
113
|
-
rails-deprecated_sanitizer (1.0.3)
|
114
|
-
activesupport (>= 4.2.0.alpha)
|
115
|
-
rails-dom-testing (1.0.8)
|
116
|
-
activesupport (>= 4.2.0.beta, < 5.0)
|
117
|
-
nokogiri (~> 1.6)
|
118
|
-
rails-deprecated_sanitizer (>= 1.0.1)
|
119
|
-
rails-html-sanitizer (1.0.3)
|
120
|
-
loofah (~> 2.0)
|
121
|
-
railties (4.2.6)
|
122
|
-
actionpack (= 4.2.6)
|
123
|
-
activesupport (= 4.2.6)
|
124
|
-
rake (>= 0.8.7)
|
125
|
-
thor (>= 0.18.1, < 2.0)
|
126
|
-
rake (12.1.0)
|
127
|
-
rb-fsevent (0.10.2)
|
128
|
-
rb-inotify (0.9.10)
|
129
|
-
ffi (>= 0.5.0, < 2)
|
130
|
-
rdoc (4.3.0)
|
131
|
-
sass (3.5.2)
|
132
|
-
sass-listen (~> 4.0.0)
|
133
|
-
sass-listen (4.0.0)
|
134
|
-
rb-fsevent (~> 0.9, >= 0.9.4)
|
135
|
-
rb-inotify (~> 0.9, >= 0.9.7)
|
136
|
-
sass-rails (5.0.6)
|
137
|
-
railties (>= 4.0.0, < 6)
|
138
|
-
sass (~> 3.1)
|
139
|
-
sprockets (>= 2.8, < 4.0)
|
140
|
-
sprockets-rails (>= 2.0, < 4.0)
|
141
|
-
tilt (>= 1.1, < 3)
|
142
|
-
sdoc (0.4.2)
|
143
|
-
json (~> 1.7, >= 1.7.7)
|
144
|
-
rdoc (~> 4.0)
|
145
|
-
spring (2.0.2)
|
146
|
-
activesupport (>= 4.2)
|
147
|
-
sprockets (3.7.1)
|
148
|
-
concurrent-ruby (~> 1.0)
|
149
|
-
rack (> 1, < 3)
|
150
|
-
sprockets-rails (3.2.1)
|
151
|
-
actionpack (>= 4.0)
|
152
|
-
activesupport (>= 4.0)
|
153
|
-
sprockets (>= 3.0.0)
|
154
|
-
sqlite3 (1.3.13)
|
155
|
-
thor (0.20.0)
|
156
|
-
thread_safe (0.3.6)
|
157
|
-
tilt (2.0.8)
|
158
|
-
turbolinks (5.0.1)
|
159
|
-
turbolinks-source (~> 5)
|
160
|
-
turbolinks-source (5.0.3)
|
161
|
-
twitter-bootstrap-rails (3.2.2)
|
162
|
-
actionpack (>= 3.1)
|
163
|
-
execjs (>= 2.2.2, >= 2.2)
|
164
|
-
less-rails (>= 2.5.0)
|
165
|
-
railties (>= 3.1)
|
166
|
-
tzinfo (1.2.3)
|
167
|
-
thread_safe (~> 0.1)
|
168
|
-
uglifier (3.2.0)
|
169
|
-
execjs (>= 0.3.0, < 3)
|
170
|
-
web-console (2.3.0)
|
171
|
-
activemodel (>= 4.0)
|
172
|
-
binding_of_caller (>= 0.7.2)
|
173
|
-
railties (>= 4.0)
|
174
|
-
sprockets-rails (>= 2.0, < 4.0)
|
175
|
-
|
176
|
-
PLATFORMS
|
177
|
-
ruby
|
178
|
-
|
179
|
-
DEPENDENCIES
|
180
|
-
byebug
|
181
|
-
coffee-rails (~> 4.1.0)
|
182
|
-
jbuilder (~> 2.0)
|
183
|
-
jquery-rails
|
184
|
-
oxd-ruby!
|
185
|
-
passenger
|
186
|
-
rails (= 4.2.6)
|
187
|
-
sass-rails (~> 5.0)
|
188
|
-
sdoc (~> 0.4.0)
|
189
|
-
spring
|
190
|
-
sqlite3
|
191
|
-
turbolinks
|
192
|
-
twitter-bootstrap-rails
|
193
|
-
uglifier (>= 1.3.0)
|
194
|
-
web-console (~> 2.0)
|
195
|
-
|
196
|
-
BUNDLED WITH
|
197
|
-
1.14.4
|
data/demosite/README.md
DELETED
@@ -1,172 +0,0 @@
|
|
1
|
-
# oxD Ruby Demo site
|
2
|
-
|
3
|
-
This is a demo site for oxd-ruby written using Ruby and Rails to demonstrate how to use oxd-ruby to perform authorization with an OpenID Provider and fetch information.
|
4
|
-
|
5
|
-
## Deployment
|
6
|
-
|
7
|
-
### Prerequisites
|
8
|
-
|
9
|
-
Ubuntu 14.04 with some basic utilities listed below
|
10
|
-
|
11
|
-
```bash
|
12
|
-
$ sudo apt-get install apache2
|
13
|
-
$ a2enmod ssl
|
14
|
-
```
|
15
|
-
|
16
|
-
### Installing and configuring the oxd-server
|
17
|
-
You can download the oxd-server and follow the installation instructions from [here](https://www.gluu.org/docs-oxd)
|
18
|
-
|
19
|
-
## Demosite deployment
|
20
|
-
|
21
|
-
OpenID Connect works only with HTTPS connections. So let us get the ssl certs ready.
|
22
|
-
```bash
|
23
|
-
$ mkdir /etc/certs
|
24
|
-
$ cd /etc/certs
|
25
|
-
$ openssl genrsa -des3 -out demosite.key 2048
|
26
|
-
$ openssl rsa -in demosite.key -out demosite.key.insecure
|
27
|
-
$ mv demosite.key.insecure demosite.key
|
28
|
-
$ openssl req -new -key demosite.key -out demosite.csr
|
29
|
-
$ openssl x509 -req -days 365 -in demosite.csr -signkey demosite.key -out demosite.crt
|
30
|
-
```
|
31
|
-
|
32
|
-
###Install RVM and Ruby on ubuntu
|
33
|
-
|
34
|
-
Install mpapis public key first (might need gpg2)
|
35
|
-
|
36
|
-
```bash
|
37
|
-
$ sudo gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
|
38
|
-
```
|
39
|
-
|
40
|
-
Install RVM stable with ruby:
|
41
|
-
|
42
|
-
```bash
|
43
|
-
$ sudo \curl -sSL https://get.rvm.io | bash -s stable --ruby
|
44
|
-
$ cd /var/www/html
|
45
|
-
```
|
46
|
-
|
47
|
-
Reload shell configuration & test
|
48
|
-
```bash
|
49
|
-
$ source ~/.rvm/scripts/rvm
|
50
|
-
```
|
51
|
-
|
52
|
-
Run this command in terminal to get list of installed ruby versions on your system
|
53
|
-
```bash
|
54
|
-
$ rvm list
|
55
|
-
```
|
56
|
-
|
57
|
-
Using rvm you can install specific ruby version. E.g. for ruby-2.2.0 :
|
58
|
-
```bash
|
59
|
-
$ rvm install ruby-2.2.0
|
60
|
-
```
|
61
|
-
|
62
|
-
To change ruby version simply run this command. E.g. to switch to ruby-2.2.0 :
|
63
|
-
```bash
|
64
|
-
$ rvm use ruby-2.2.0
|
65
|
-
```
|
66
|
-
|
67
|
-
Rails is distributed as a Ruby gem and adding it to the local system is extremely simple:
|
68
|
-
```bash
|
69
|
-
$ gem install rails
|
70
|
-
```
|
71
|
-
|
72
|
-
For more help you can see rvm commands here :
|
73
|
-
https://rvm.io/rvm/install
|
74
|
-
|
75
|
-
###Phusion Passenger Setup
|
76
|
-
|
77
|
-
Phusion Passenger (commonly shortened to Passenger or referred to as mod_passenger) is an application server and it is often used to power Ruby sites. Its code is distributed in form of a Ruby gem, which is then compiled on the target machine and installed into Apache as a module.
|
78
|
-
|
79
|
-
First, the gem needs to be installed on the system:
|
80
|
-
```bash
|
81
|
-
$ gem install passenger
|
82
|
-
```
|
83
|
-
|
84
|
-
The environment is now ready for the compilation. The process takes a few minutes and it’s started by the following command:
|
85
|
-
```bash
|
86
|
-
$ passenger-install-apache2-module
|
87
|
-
```
|
88
|
-
|
89
|
-
Note that this script will not install the module really. It will compile module’s binary and place it under gem’s path. The path will be printed on screen and it needs to be copy-pasted into Apache’s config file
|
90
|
-
|
91
|
-
The output will be similar to this one:
|
92
|
-
```
|
93
|
-
LoadModule passenger_module /home/username/.rvm/gems/ruby-2.2.1/gems/passenger-5.0.28/buildout/apache2/mod_passenger.so
|
94
|
-
```
|
95
|
-
|
96
|
-
Then in Apache's config file add these lines :
|
97
|
-
```
|
98
|
-
<IfModule mod_passenger.c>
|
99
|
-
PassengerRoot /home/username/.rvm/gems/ruby-2.2.1/gems/passenger-5.0.28
|
100
|
-
PassengerDefaultRuby /home/username/.rvm/gems/ruby-2.2.1/wrappers/ruby
|
101
|
-
</IfModule>
|
102
|
-
```
|
103
|
-
|
104
|
-
In console :
|
105
|
-
```bash
|
106
|
-
$ sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/oxd-ruby.conf
|
107
|
-
$ sudo vi /etc/apache2/sites-available/oxd-ruby.conf
|
108
|
-
```
|
109
|
-
Replace the content of oxd-ruby.conf file with following:
|
110
|
-
```
|
111
|
-
<IfModule mod_ssl.c>
|
112
|
-
<VirtualHost *:443>
|
113
|
-
ServerAdmin webmaster@localhost
|
114
|
-
ServerName oxd-rails.com
|
115
|
-
DocumentRoot /var/www/html/oxdrails
|
116
|
-
|
117
|
-
LogLevel info ssl:warn
|
118
|
-
ErrorLog ${APACHE_LOG_DIR}/error.log
|
119
|
-
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
120
|
-
|
121
|
-
# SSL Engine Switch:
|
122
|
-
# Enable/Disable SSL for this virtual host.
|
123
|
-
SSLEngine on
|
124
|
-
SSLCertificateFile /etc/certs/demosite.crt
|
125
|
-
SSLCertificateKeyFile /etc/certs/demosite.key
|
126
|
-
|
127
|
-
<Directory /var/www/html/oxdrails>
|
128
|
-
AllowOverride All
|
129
|
-
Options Indexes FollowSymLinks
|
130
|
-
Order allow,deny
|
131
|
-
Allow from all
|
132
|
-
</Directory>
|
133
|
-
</VirtualHost>
|
134
|
-
</IfModule>
|
135
|
-
```
|
136
|
-
|
137
|
-
Then enable `oxd-rails.com` virtual host by running:
|
138
|
-
```bash
|
139
|
-
$ sudo a2ensite oxd-ruby.conf
|
140
|
-
```
|
141
|
-
|
142
|
-
After that add domain name in virtual host file.
|
143
|
-
In console:
|
144
|
-
```bash
|
145
|
-
$ sudo nano /etc/hosts
|
146
|
-
```
|
147
|
-
|
148
|
-
Add these lines in virtual host file:
|
149
|
-
```
|
150
|
-
127.0.0.1 www.oxd-rails.com
|
151
|
-
127.0.0.1 oxd-rails.com
|
152
|
-
```
|
153
|
-
|
154
|
-
Reload the apache server
|
155
|
-
```bash
|
156
|
-
$ sudo service apache2 restart
|
157
|
-
```
|
158
|
-
### Setting up and running demo app
|
159
|
-
|
160
|
-
Navigate to Rails app root:
|
161
|
-
```bash
|
162
|
-
cd /var/www/html/oxdrails
|
163
|
-
```
|
164
|
-
|
165
|
-
Run :
|
166
|
-
```bash
|
167
|
-
bundle install
|
168
|
-
```
|
169
|
-
|
170
|
-
Now your rails app should work from http://oxd-rails.com
|
171
|
-
|
172
|
-
##Enjoy!
|