Skip to content

Commit

Permalink
Clean up comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mpgxvii committed Nov 28, 2024
1 parent 16f4e6d commit 65cba74
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ class ManagementPortalResourceEnhancer(private val config: AuthConfig) : JerseyR
override fun AbstractBinder.enhance() {
val config = config.withEnv()

// Bind other necessary services
bindFactory(TokenValidatorFactory::class.java)
.to(TokenValidator::class.java)
.`in`(Singleton::class.java)
Expand All @@ -34,13 +33,11 @@ class ManagementPortalResourceEnhancer(private val config: AuthConfig) : JerseyR
.to(AuthorizationOracle::class.java)
.`in`(Singleton::class.java)

// If managementPortal.clientId is available, bind your custom MPClient
if (config.managementPortal.clientId != null) {
bindFactory(MPClientFactory::class.java) // Bind your custom MPClientFactory
bindFactory(MPClientFactory::class.java)
.to(MPClient::class.java)
.`in`(Singleton::class.java)

// Bind other services related to ProjectService
bind(ProjectServiceWrapper::class.java)
.to(ProjectService::class.java)
.`in`(Singleton::class.java)
Expand Down

0 comments on commit 65cba74

Please sign in to comment.