add enabled? to authenticator (to prevent warnings)
This commit is contained in:
Родитель
c1b8887ede
Коммит
8a4325d84b
|
@ -1,5 +1,10 @@
|
|||
module MozillaIAM
|
||||
class Authenticator < Auth::OAuth2Authenticator
|
||||
|
||||
def enabled?
|
||||
true
|
||||
end
|
||||
|
||||
def after_authenticate(auth_token)
|
||||
begin
|
||||
id_token = auth_token[:credentials][:id_token]
|
||||
|
|
|
@ -1,6 +1,13 @@
|
|||
require_relative '../../iam_helper'
|
||||
|
||||
describe MozillaIAM::Authenticator do
|
||||
|
||||
context "#enabled?" do
|
||||
it "returns true" do
|
||||
expect(described_class.new('auth0', trusted: true).enabled?).to be true
|
||||
end
|
||||
end
|
||||
|
||||
context '#after_authenticate' do
|
||||
it 'can authenticate a new user' do
|
||||
user = {
|
||||
|
|
Загрузка…
Ссылка в новой задаче