Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upstream rails 5.1 fixes #1

Open
wants to merge 44 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
8693302
Rails 4 Gemfile
Dec 13, 2017
0db4e90
Rails 4 changes
Dec 13, 2017
d1b5ee7
Merge branch 'sharpyfox-rails_4' into 4-0-rails
Dec 13, 2017
e3ed9bf
Update travis details and gemspec
Dec 13, 2017
b1ad0ef
Fix test schema to match column rename
Dec 13, 2017
9264505
Rails 4.1 Masq Support
Dec 18, 2017
e1ef57b
Rails 4.1 remove turn dependency
Dec 19, 2017
724793d
Tidy up instance variable not initialized warnings
Dec 19, 2017
2030764
Travis tests expand_path change
Dec 19, 2017
0b70edf
Rails 4.2 Upgrade
Dec 20, 2017
fdd9fee
Update deprication and failing tests
Dec 20, 2017
df3ea6a
Update travis badge for branch
Dec 20, 2017
6b32b53
Fix broken tests for rails 4.2
Dec 20, 2017
66f89d4
Rails 5.0 Masq upgrade
Jan 3, 2018
84d90f1
Test deprication changes
Jan 3, 2018
d418c33
Rails 5.0 get tests passing
Jan 3, 2018
946a46a
Rails 5.0 travis badge update
Jan 3, 2018
c77da18
Rails 5.0 remove deprications
Jan 3, 2018
2f6398e
Remove find_by search shorthands
Jan 26, 2018
167c44e
Expect auth token
Aug 21, 2019
5c31a19
🚨 Fix Markdown formatting
pboling Nov 8, 2024
3a8c250
🔒️ Use HTTPS for rubygems source
pboling Nov 8, 2024
92b0ddc
⬆️ Rails ~> 5.1
pboling Nov 8, 2024
f92cba0
📝 Update gemspec homepage, authors, email
pboling Nov 8, 2024
2e60629
🔥 auto_explain_threshold_in_seconds was deprecated in Rails 4.0, remo…
pboling Nov 8, 2024
706f38d
🚨 Linting
pboling Nov 8, 2024
ccd7878
🚨 where(**).first => find_by
pboling Nov 8, 2024
e0e31d1
⬆️ Rails 4 => 5 upgrade: Migrations
pboling Nov 8, 2024
bd901de
✨ Allow either id or login for accounts/show
pboling Nov 8, 2024
4581564
✨ Allow ERB within YAML for config file
pboling Nov 8, 2024
fcdd071
🔧 Rails 4.2 config updates
pboling Nov 8, 2024
33af5a3
➕ erb
pboling Nov 8, 2024
59f766d
⬆️ Rails 4 => 5 upgrade: Controller & Parameters
pboling Nov 8, 2024
a2a4266
✨ Allow logout via DELETE HTTP method
pboling Nov 8, 2024
299f4fe
🐛 Fix locale key issues
pboling Nov 8, 2024
b74937e
⬆️ Rails 5.0 => 5.1 upgrade: before_filter => before_action
pboling Nov 8, 2024
71c6d7c
⬆️ Rails 5.0 => 5.1 upgrade: avoid loading sprockets
pboling Nov 8, 2024
9113a6b
🐛 Fix before_destroy callback on Persona
pboling Nov 8, 2024
b99967e
🔥 mass_assignment_sanitizer isn't part of Rails 5.1
pboling Nov 8, 2024
5851775
🔥 kill asset pipeline
pboling Nov 8, 2024
76b1a44
🔥 Fix deprecation for Rails 5.2
pboling Nov 8, 2024
de10380
💚 Fix tests
pboling Nov 8, 2024
1c09fdc
🔥 Travis is dead
pboling Nov 8, 2024
10b5ce4
Merge branch '5-1-rails' into upstream-rails-5-1-fixes
pboling Nov 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby 2.7.8
5 changes: 2 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source "http://rubygems.org"
source "https://rubygems.org"

group :development, :test do
platforms :ruby, :mswin, :mingw do
Expand All @@ -10,8 +10,7 @@ group :development, :test do
#gem 'ruby-oci8'
end
gem 'minitest'
gem 'test-unit', '~> 3.0'
gem 'turn'
gem 'rails-controller-testing'
gem 'mocha'
gem 'ruby_gntp'
gem 'guard-minitest'
Expand Down
237 changes: 139 additions & 98 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,129 +2,170 @@ PATH
remote: .
specs:
masq (0.3.4)
erb
i18n_data
rails (~> 3.2.0)
rails (~> 5.1.0)
rails-controller-testing
ruby-openid
ruby-yadis
yubikey

GEM
remote: http://rubygems.org/
remote: https://rubygems.org/
specs:
actionmailer (3.2.22.2)
actionpack (= 3.2.22.2)
mail (~> 2.5.4)
actionpack (3.2.22.2)
activemodel (= 3.2.22.2)
activesupport (= 3.2.22.2)
builder (~> 3.0.0)
erubis (~> 2.7.0)
journey (~> 1.0.4)
rack (~> 1.4.5)
rack-cache (~> 1.2)
rack-test (~> 0.6.1)
sprockets (~> 2.2.1)
activemodel (3.2.22.2)
activesupport (= 3.2.22.2)
builder (~> 3.0.0)
activerecord (3.2.22.2)
activemodel (= 3.2.22.2)
activesupport (= 3.2.22.2)
arel (~> 3.0.2)
tzinfo (~> 0.3.29)
activeresource (3.2.22.2)
activemodel (= 3.2.22.2)
activesupport (= 3.2.22.2)
activesupport (3.2.22.2)
i18n (~> 0.6, >= 0.6.4)
multi_json (~> 1.0)
ansi (1.5.0)
arel (3.0.3)
builder (3.0.4)
concurrent-ruby (1.0.5)
erubis (2.7.0)
actioncable (5.1.7)
actionpack (= 5.1.7)
nio4r (~> 2.0)
websocket-driver (~> 0.6.1)
actionmailer (5.1.7)
actionpack (= 5.1.7)
actionview (= 5.1.7)
activejob (= 5.1.7)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (5.1.7)
actionview (= 5.1.7)
activesupport (= 5.1.7)
rack (~> 2.0)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.1.7)
activesupport (= 5.1.7)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
activejob (5.1.7)
activesupport (= 5.1.7)
globalid (>= 0.3.6)
activemodel (5.1.7)
activesupport (= 5.1.7)
activerecord (5.1.7)
activemodel (= 5.1.7)
activesupport (= 5.1.7)
arel (~> 8.0)
activesupport (5.1.7)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
arel (8.0.0)
builder (3.3.0)
cgi (0.4.1)
concurrent-ruby (1.3.4)
crass (1.0.6)
date (3.4.0)
erb (4.0.4)
cgi (>= 0.3.3)
erubi (1.13.0)
globalid (1.1.0)
activesupport (>= 5.0)
guard-compat (1.2.1)
guard-minitest (2.4.5)
guard-minitest (2.4.6)
guard-compat (~> 1.2)
minitest (>= 3.0)
hike (1.2.3)
i18n (0.9.1)
i18n (1.14.6)
concurrent-ruby (~> 1.0)
i18n_data (0.8.0)
journey (1.0.4)
json (1.8.3)
mail (2.5.4)
mime-types (~> 1.16)
treetop (~> 1.4.8)
metaclass (0.0.4)
mime-types (1.25.1)
minitest (4.7.5)
mocha (1.1.0)
metaclass (~> 0.0.1)
multi_json (1.12.2)
polyglot (0.3.5)
power_assert (0.2.2)
rack (1.4.7)
rack-cache (1.6.1)
rack (>= 0.4)
rack-ssl (1.3.4)
rack
rack-test (0.6.3)
rack (>= 1.0)
rails (3.2.22.2)
actionmailer (= 3.2.22.2)
actionpack (= 3.2.22.2)
activerecord (= 3.2.22.2)
activeresource (= 3.2.22.2)
activesupport (= 3.2.22.2)
bundler (~> 1.0)
railties (= 3.2.22.2)
railties (3.2.22.2)
actionpack (= 3.2.22.2)
activesupport (= 3.2.22.2)
rack-ssl (~> 1.3.2)
i18n_data (0.17.1)
simple_po_parser (~> 1.1)
loofah (2.23.1)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
mail (2.8.1)
mini_mime (>= 0.1.1)
net-imap
net-pop
net-smtp
method_source (1.1.0)
mini_mime (1.1.5)
mini_portile2 (2.8.7)
minitest (5.25.1)
mocha (2.5.0)
ruby2_keywords (>= 0.0.5)
net-imap (0.4.17)
date
net-protocol
net-pop (0.1.2)
net-protocol
net-protocol (0.2.2)
timeout
net-smtp (0.5.0)
net-protocol
nio4r (2.7.4)
nokogiri (1.15.6-arm64-darwin)
racc (~> 1.4)
racc (1.8.1)
rack (2.2.10)
rack-test (2.1.0)
rack (>= 1.3)
rails (5.1.7)
actioncable (= 5.1.7)
actionmailer (= 5.1.7)
actionpack (= 5.1.7)
actionview (= 5.1.7)
activejob (= 5.1.7)
activemodel (= 5.1.7)
activerecord (= 5.1.7)
activesupport (= 5.1.7)
bundler (>= 1.3.0)
railties (= 5.1.7)
sprockets-rails (>= 2.0.0)
rails-controller-testing (1.0.5)
actionpack (>= 5.0.1.rc1)
actionview (>= 5.0.1.rc1)
activesupport (>= 5.0.1.rc1)
rails-dom-testing (2.2.0)
activesupport (>= 5.0.0)
minitest
nokogiri (>= 1.6)
rails-html-sanitizer (1.6.0)
loofah (~> 2.21)
nokogiri (~> 1.14)
railties (5.1.7)
actionpack (= 5.1.7)
activesupport (= 5.1.7)
method_source
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (>= 0.14.6, < 2.0)
rake (12.3.0)
rb-fsevent (0.9.7)
rdoc (3.12.2)
json (~> 1.4)
ruby-openid (2.7.0)
thor (>= 0.18.1, < 2.0)
rake (13.2.1)
rb-fsevent (0.11.2)
ruby-openid (2.9.2)
ruby-yadis (0.3.4)
ruby2_keywords (0.0.5)
ruby_gntp (0.3.4)
sprockets (2.2.3)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sqlite3 (1.3.11)
test-unit (3.0.8)
power_assert
thor (0.20.0)
tilt (1.4.1)
treetop (1.4.15)
polyglot
polyglot (>= 0.3.1)
turn (0.9.7)
ansi
minitest (~> 4)
tzinfo (0.3.53)
simple_po_parser (1.1.6)
sprockets (4.2.1)
concurrent-ruby (~> 1.0)
rack (>= 2.2.4, < 4)
sprockets-rails (3.2.2)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.7.3)
mini_portile2 (~> 2.8.0)
thor (1.3.2)
thread_safe (0.3.6)
timeout (0.4.2)
tzinfo (1.2.11)
thread_safe (~> 0.1)
websocket-driver (0.6.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
yubikey (1.4.1)

PLATFORMS
ruby
arm64-darwin-22

DEPENDENCIES
guard-minitest
masq!
minitest
mocha
rails-controller-testing
rb-fsevent
ruby_gntp
sqlite3
test-unit (~> 3.0)
turn

BUNDLED WITH
1.12.5
2.4.22
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Masq OpenID Server

[![Build Status](https://travis-ci.org/bardbess/masq.svg?branch=master)](http://travis-ci.org/bardbess/masq)

Masq is a mountable Rails engine that provides OpenID server/identity provider functionality.
It is the successor of the stand-alone Rails application [masquerade](http://github.com/dennisreimann/masquerade/).

Expand All @@ -10,22 +8,22 @@ Feel free to fork and submit patches :)

## Installation

0. In case you want to run masq as a standalone application (not integrated into an existing app), you will have to generate a barebone Rails app first:
1. In case you want to run masq as a standalone application (not integrated into an existing app), you will have to generate a barebone Rails app first:
* `rails new my_openid_provider`

1. Add masq to your Gemfile and install it:
2. Add masq to your Gemfile and install it:
* `gem 'masq'`
* `bundle install`

2. Copy the configuration and edit it:
3. Copy the configuration and edit it:
* `bundle exec rake masq:install:config`
* `$EDITOR config/masq.yml`

3. Copy the migrations and migrate:
4. Copy the migrations and migrate:
* `bundle exec rake masq:install:migrations`
* `bundle exec rake db:migrate`

4. Configure the routes by mounting the masq engine:
5. Configure the routes by mounting the masq engine:
* For integration into an existing app, mount it in a subdirectory, like:
* `mount Masq::Engine => "/masq"` or
* `mount Masq::Engine => "/openid"`
Expand Down Expand Up @@ -66,11 +64,13 @@ handy methods to access and answer OpenID requests.
### Testing

You can run the tests with Rake:
* `DB_ADAPTER=sqlite3 bundle exec rake app:masq:test:ci`
* `DB_ADAPTER=mysql2 bundle exec rake app:masq:test:ci`
* `DB_ADAPTER=postgresql bundle exec rake app:masq:test:ci`

* `DB_ADAPTER=sqlite3 bundle exec rake app:masq:test:ci`
* `DB_ADAPTER=mysql2 bundle exec rake app:masq:test:ci`
* `DB_ADAPTER=postgresql bundle exec rake app:masq:test:ci`

The Rake task configures the database.yml for the chosen adapter.

In case you prefer running the tests continuously, use Guard:
* `bundle exec guard`

* `bundle exec guard`
Loading