Skip to content

Commit

Permalink
Merge pull request #2276 from jsonwan/github_feature/app_permission
Browse files Browse the repository at this point in the history
feature: 支持蓝鲸应用级别的权限控制跳转 #2238
  • Loading branch information
wangyu096 authored Jul 25, 2023
2 parents 462427c + a4c8955 commit 5fede78
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,18 @@
@Configuration
@Slf4j
public class SdkClientConfig {
@Bean

@Bean(name = "enLoginClient")
@ConditionalOnProperty(value = "paas.login.custom.enabled", havingValue = "true")
public ILoginClient innerEnLoginClient(@Autowired BkConfig bkConfig) {
log.info("Init custom en login client");
return new CustomLoginClient(bkConfig.getCustomLoginApiUrl());
}

@Bean(name = "cnLoginClient")
@ConditionalOnProperty(value = "paas.login.custom.enabled", havingValue = "true")
public ILoginClient innerLoginClient(@Autowired BkConfig bkConfig) {
log.info("Init custom login client");
public ILoginClient innerCnLoginClient(@Autowired BkConfig bkConfig) {
log.info("Init custom cn login client");
return new CustomLoginClient(bkConfig.getCustomLoginApiUrl());
}

Expand Down

0 comments on commit 5fede78

Please sign in to comment.