@Test public void testDefaultRoles() { final Collection<AuthenticationProvider> authenticationProviders = idolSecurityCustomizer.getAuthenticationProviders(); assertThat(authenticationProviders, hasSize(1)); final Authentication authentication = authenticationProviders.stream() .findFirst() .map(authenticationProvider -> authenticationProvider.authenticate(this.foreignAuthentication)) .orElseThrow(() -> new AssertionError("AuthenticationProvider did not authenticate")); assertThat(authentication.getAuthorities(), contains(authority("FindUser"))); }
@Override public Collection<AuthenticationProvider> getAuthenticationProviders() { return Collections.singleton(communityAuthenticationProvider()); }
IdolSecurityCustomizerImpl implements IdolSecurityCustomizer { @Override public Collection<AuthenticationProvider> getAuthenticationProviders() { return Collections.singleton(communityAuthenticationProvider()); } }
IdolSecurityCustomizerImpl implements IdolSecurityCustomizer { @Override public Collection<AuthenticationProvider> getAuthenticationProviders() { return Collections.singleton(communityAuthenticationProvider()); }  }
IdolSecurityCustomizerImpl implements IdolSecurityCustomizer { @Override public Collection<AuthenticationProvider> getAuthenticationProviders() { return Collections.singleton(communityAuthenticationProvider()); }  @SuppressWarnings("ProhibitedExceptionDeclared") @Override void customize(final HttpSecurity http, final AuthenticationManager authenticationManager); @Override Collection<AuthenticationProvider> getAuthenticationProviders(); }
IdolSecurityCustomizerImpl implements IdolSecurityCustomizer { @Override public Collection<AuthenticationProvider> getAuthenticationProviders() { return Collections.singleton(communityAuthenticationProvider()); }  @SuppressWarnings("ProhibitedExceptionDeclared") @Override void customize(final HttpSecurity http, final AuthenticationManager authenticationManager); @Override Collection<AuthenticationProvider> getAuthenticationProviders();  }