-
Notifications
You must be signed in to change notification settings - Fork 33
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
TAN-3350 - Refactor sso & verification methods with clearer structure and more code sharing #9843
base: TAN-3350-bring-verification-into-core
Are you sure you want to change the base?
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! I think there’s still some room to simplify and clarify the class/module hierarchy, but it’s heading in the right direction 😊
def all_methods | ||
self.class.all_methods | ||
IdMethod.all_methods.filter_map { |k, v| [k, v] if v.auth? }.to_h |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IdMethod.all_methods.filter_map { |k, v| [k, v] if v.auth? }.to_h | |
IdMethod.all_methods.select { |_, v| v.auth? } |
@@ -30,7 +30,7 @@ | |||
# the state of the request. Especially large strings are stored in fixtures. | |||
describe OmniAuth::Strategies::AzureActiveDirectory do | |||
let(:app) { ->(_) { [200, {}, ['Hello world.']] } } | |||
let(:x5c) { Rails.root.join('spec/fixtures/azure_active_directory/x5c.txt').read } | |||
let(:x5c) { Rails.root.join('engines/commercial/id_azure_active_directory/spec/fixtures/x5c.txt').read } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let(:x5c) { Rails.root.join('engines/commercial/id_azure_active_directory/spec/fixtures/x5c.txt').read } | |
let(:x5c) { IdAzureActiveDirectory::Engine.root.join('spec/fixtures/x5c.txt').read } |
IdMethod
module as the root for all omniauth & verification methodsAuthenticationService
andVerificationService
filter this list based onverification?
orauth?
Changelog
Technical