Examples of AnonymousAuthenticationProvider


Examples of org.springframework.security.authentication.AnonymousAuthenticationProvider

  @EnableResourceServer
  @EnableWebSecurity
  protected static class TokenExtractorContext extends ResourceServerConfigurerAdapter {
    @Autowired
    protected void init(AuthenticationManagerBuilder builder) {
      builder.authenticationProvider(new AnonymousAuthenticationProvider("default"));
    }
View Full Code Here

Examples of org.springframework.security.authentication.AnonymousAuthenticationProvider

      return new InMemoryClientDetailsService();
    }

    @Autowired
    protected void init(AuthenticationManagerBuilder builder) {
      builder.authenticationProvider(new AnonymousAuthenticationProvider("default"));
    }
View Full Code Here

Examples of org.springframework.security.authentication.AnonymousAuthenticationProvider

    }

    @Override
    public void init(H http) throws Exception {
        if(authenticationProvider == null) {
            authenticationProvider = new AnonymousAuthenticationProvider(getKey());
        }
        if(authenticationFilter == null) {
            authenticationFilter = new AnonymousAuthenticationFilter(getKey(), principal, authorities);
        }
        authenticationProvider = postProcess(authenticationProvider);
View Full Code Here

Examples of org.springframework.security.providers.anonymous.AnonymousAuthenticationProvider

    // AnonymousAuthenticationProvider
    bind(AnonymousAuthenticationProvider.class).toProvider(new Provider<AnonymousAuthenticationProvider>() {

      public AnonymousAuthenticationProvider get() {
        final AnonymousAuthenticationProvider aap = new AnonymousAuthenticationProvider();
        aap.setKey(config.getString(ConfigKeys.APP_NAME.getKey()));
        return aap;
      }

    }).in(Scopes.SINGLETON);
View Full Code Here

Examples of org.springframework.security.providers.anonymous.AnonymousAuthenticationProvider

    // verify dao auth provider
    final DaoAuthenticationProvider p = i.getInstance(DaoAuthenticationProvider.class);
    assert p != null : "Unable to obtain a dao auth provider";

    // verify AnonymousAuthenticationProvider
    final AnonymousAuthenticationProvider ap = i.getInstance(AnonymousAuthenticationProvider.class);
    assert ap != null : "Unable to obtain AnonymousAuthenticationProvider";

    // verify AuthenticationManager
    final AuthenticationManager am = i.getInstance(AuthenticationManager.class);
    assert am != null : "Unable to obtain AuthenticationManager";
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.