circleci
65 of 82 new or added lines in 10 files covered. (79.27%)
5 existing lines in 2 files now uncovered.5072 of 5391 relevant lines covered (94.08%)
1516.14 hits per line
1 |
# frozen_string_literal: true
|
|
2 |
|
|
|
module OmniAuth |
3✔ |
|
module Strategies |
3✔ |
|
class Alma |
3✔ |
|
include OmniAuth::Strategy |
3✔ |
|
include ActionView::Helpers::FormHelper |
3✔ |
8 |
|
|
|
option :fields, %i[username] |
3✔ |
|
option :uid_field, :username |
3✔ |
11 |
|
|
|
uid do
|
3✔ |
NEW
|
request.params[options.uid_field.to_s] |
× |
14 |
end
|
|
15 |
|
|
|
info do
|
3✔ |
NEW
|
{} |
× |
18 |
end
|
|
19 |
|
|
|
def request_phase |
3✔ |
NEW
|
redirect '/users/sign_in'
|
× |
22 |
end
|
|
23 |
end
|
|
24 |
end
|
|
25 |
end
|