File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
domain/authentication/handler Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,13 @@ module Repository
3
3
class AuthenticatorRepository
4
4
def initialize (
5
5
data_object :,
6
- contract :,
7
6
resource_repository : ::Resource ,
8
7
logger : Rails . logger ,
9
8
pkce_support_enabled : Rails . configuration . feature_flags . enabled? ( :pkce_support )
10
9
)
11
10
@resource_repository = resource_repository
12
11
@data_object = data_object
13
- @contract = contract
12
+ @contract = " #{ data_object } Contract" . constantize . new
14
13
@logger = logger
15
14
@pkce_support_enabled = pkce_support_enabled
16
15
end
Original file line number Diff line number Diff line change @@ -32,8 +32,7 @@ def initialize(
32
32
@identity_resolver = "#{ namespace } ::ResolveIdentity" . constantize
33
33
@strategy = "#{ namespace } ::Strategy" . constantize
34
34
@authn_repo = authn_repo . new (
35
- data_object : "#{ namespace } ::DataObjects::Authenticator" . constantize ,
36
- contract : "#{ namespace } ::DataObjects::AuthenticatorContract" . constantize . new
35
+ data_object : "#{ namespace } ::DataObjects::Authenticator" . constantize
37
36
)
38
37
end
39
38
You can’t perform that action at this time.
0 commit comments