use of org.bf2.srs.fleetmanager.spi.ams.impl.exception.AccountManagementSystemAuthErrorHandler in project srs-fleet-manager by bf2fc6cc711aee1a0c2a.
the class AccountManagementServiceImpl method init.
@PostConstruct
void init() {
log.info("Using Account Management Service with Account Management URL: {}", endpoint);
if (ssoEnabled) {
ApicurioHttpClient httpClient = new JdkHttpClientProvider().create(ssoTokenEndpoint, Collections.emptyMap(), null, new AccountManagementSystemAuthErrorHandler());
final OidcAuth auth = new OidcAuth(httpClient, ssoClientId, ssoClientSecret);
restClient = new AccountManagementSystemRestClient(endpoint, Collections.emptyMap(), auth);
} else {
restClient = new AccountManagementSystemRestClient(endpoint, Collections.emptyMap(), null);
}
}
Aggregations