Spring Framework ServletContextAttributeExporter - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework ServletContextAttributeExporter class.

This code example shows how to use the following methods:setAttributes
				googleClient(), gitHubClient(), twitterClient()); 
	} 
	 
	@Bean 
	public ServletContextAttributeExporter servletContextAttributeExporter() {
		ServletContextAttributeExporter exporter = new ServletContextAttributeExporter();
		exporter.setAttributes(
				ImmutableMap.<String, Object>builder()
				.put(Pac4jClient.GOOGLE.getClientKey(), googleClient()) 
				.put(Pac4jClient.GITHUB.getClientKey(), gitHubClient()) 
				.put(Pac4jClient.TWITTER.getClientKey(), twitterClient()) 
				.build() 
		); 
		return exporter;
	} 
	 
	@Autowired 
	@Bean 
	public ClientAuthenticationFilter clientAuthenticationFilter(AuthenticationManager authenticationManager, Clients clients) {
		ClientAuthenticationFilter filter = new ClientAuthenticationFilter("/" + Pac4jAuthenticationUtils.CALLBACK_URI);
5
CodeRank
See Code Examples for Spring Framework ServletContextAttributeExporter Methods: