@Test void testFindByRegistrationIdNotExists() { String registrationId = "registrationId"; when(authenticationSettings.getOidcClients()).thenReturn(emptyList()); assertNull(dataServiceClientRegistrationRepository.findByRegistrationId(registrationId)); }
@Override public ClientRegistration findByRegistrationId(String registrationId) { return runAsSystem( () -> { OidcClient oidcClient = findOidcClient(registrationId); return oidcClient != null ? toClientRegistration(oidcClient) : null; }); }
DataServiceClientRegistrationRepository implements ClientRegistrationRepository { @Override public ClientRegistration findByRegistrationId(String registrationId) { return runAsSystem( () -> { OidcClient oidcClient = findOidcClient(registrationId); return oidcClient != null ? toClientRegistration(oidcClient) : null; }); } }
DataServiceClientRegistrationRepository implements ClientRegistrationRepository { @Override public ClientRegistration findByRegistrationId(String registrationId) { return runAsSystem( () -> { OidcClient oidcClient = findOidcClient(registrationId); return oidcClient != null ? toClientRegistration(oidcClient) : null; }); } DataServiceClientRegistrationRepository(AuthenticationSettings authenticationSettings); }
DataServiceClientRegistrationRepository implements ClientRegistrationRepository { @Override public ClientRegistration findByRegistrationId(String registrationId) { return runAsSystem( () -> { OidcClient oidcClient = findOidcClient(registrationId); return oidcClient != null ? toClientRegistration(oidcClient) : null; }); } DataServiceClientRegistrationRepository(AuthenticationSettings authenticationSettings); @Override ClientRegistration findByRegistrationId(String registrationId); }
DataServiceClientRegistrationRepository implements ClientRegistrationRepository { @Override public ClientRegistration findByRegistrationId(String registrationId) { return runAsSystem( () -> { OidcClient oidcClient = findOidcClient(registrationId); return oidcClient != null ? toClientRegistration(oidcClient) : null; }); } DataServiceClientRegistrationRepository(AuthenticationSettings authenticationSettings); @Override ClientRegistration findByRegistrationId(String registrationId);  }