Skip to content

Commit

Permalink
Refactor to BackendConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
mrudula-gs authored Jul 12, 2023
1 parent e7744b0 commit 1421d03
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ protected void configureApis(Binder binder)
binder.bind(GitLabUserContext.class);
binder.bind(GitLabAuthResource.class);
binder.bind(GitLabAuthCheckResource.class);
binder.bind(GitLabConfiguration.class).toProvider(() -> getConfiguration().getGitLabConfiguration());
binder.bind(GitLabAppInfo.class).toProvider(() -> GitLabAppInfo.newAppInfo(getConfiguration().getGitLabConfiguration()));
binder.bind(GitLabConfiguration.class).toProvider(() -> getConfiguration().getBackendConfiguration().getGitLabConfiguration());
binder.bind(GitLabAppInfo.class).toProvider(() -> GitLabAppInfo.newAppInfo(getConfiguration().getBackendConfiguration().getGitLabConfiguration()));
binder.bind(GitLabAuthorizerManager.class).toProvider(() -> this.provideGitLabAuthorizerManager(getConfiguration())).in(Scopes.SINGLETON);
}
configureMetadataApi(binder);
Expand All @@ -108,7 +108,7 @@ protected void configureMetadataApi(Binder binder)

private GitLabAuthorizerManager provideGitLabAuthorizerManager(LegendSDLCServerConfiguration configuration)
{
List<GitLabAuthorizer> gitLabAuthorizers = configuration.getGitLabConfiguration().getGitLabAuthorizers();
List<GitLabAuthorizer> gitLabAuthorizers = configuration.getBackendConfiguration().getGitLabConfiguration().getGitLabAuthorizers();
if (gitLabAuthorizers == null)
{
return GitLabAuthorizerManager.newManager(Collections.emptyList());
Expand Down

0 comments on commit 1421d03

Please sign in to comment.