• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java DefaultAuthenticationEventPublisher类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.springframework.security.authentication.DefaultAuthenticationEventPublisher的典型用法代码示例。如果您正苦于以下问题:Java DefaultAuthenticationEventPublisher类的具体用法?Java DefaultAuthenticationEventPublisher怎么用?Java DefaultAuthenticationEventPublisher使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

DefaultAuthenticationEventPublisher类属于org.springframework.security.authentication包,在下文中一共展示了DefaultAuthenticationEventPublisher类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: init

点赞 2

import org.springframework.security.authentication.DefaultAuthenticationEventPublisher; //导入依赖的package包/类
@Override
public void init(AuthenticationManagerBuilder auth) throws Exception {
    auth.authenticationProvider(daoAuthenticationProvider())
            .authenticationProvider(jwtAuthenticationProvider())
            .authenticationProvider(preAuthenticatedAuthenticationProvider())
            .authenticationEventPublisher(new DefaultAuthenticationEventPublisher(applicationEventPublisher))
            .eraseCredentials(true);
}
 

开发者ID:suomenriistakeskus,
项目名称:oma-riista-web,
代码行数:9,
代码来源:SecurityConfig.java

示例2: globalUserDetails

点赞 2

import org.springframework.security.authentication.DefaultAuthenticationEventPublisher; //导入依赖的package包/类
@Autowired
protected void globalUserDetails(AuthenticationManagerBuilder auth) throws Exception {
    logger.info("Loading identity providers to handle user authentication");

    // By default we are associating users added to the domain
    auth.authenticationProvider(userAuthenticationProvider());
    auth.authenticationEventPublisher(new DefaultAuthenticationEventPublisher(applicationEventPublisher));
}
 

开发者ID:gravitee-io,
项目名称:graviteeio-access-management,
代码行数:9,
代码来源:OAuth2SecurityConfiguration.java

示例3: tokenGranter

点赞 2

import org.springframework.security.authentication.DefaultAuthenticationEventPublisher; //导入依赖的package包/类
private TokenGranter tokenGranter(final AuthorizationServerEndpointsConfigurer endpoints) {
    List<TokenGranter> granters = new ArrayList<>(Arrays.asList(endpoints.getTokenGranter()));
    extensionGrantManager.providers().forEach((id, tokenGranterProvider) -> {
        CustomTokenGranter customTokenGranter = new CustomTokenGranter(endpoints.getTokenServices(), endpoints.getClientDetailsService(), endpoints.getOAuth2RequestFactory(), extensionGrantManager.getTokenGranter(id));
        customTokenGranter.setExtensionGrantProvider(tokenGranterProvider);
        customTokenGranter.setAuthenticationEventPublisher(new DefaultAuthenticationEventPublisher(applicationEventPublisher));
        granters.add(customTokenGranter);
    });
    return new CompositeTokenGranter(granters);
}
 

开发者ID:gravitee-io,
项目名称:graviteeio-access-management,
代码行数:11,
代码来源:AuthorizationServerConfiguration.java

示例4: configure

点赞 2

import org.springframework.security.authentication.DefaultAuthenticationEventPublisher; //导入依赖的package包/类
@Override
public void configure(ResourceServerSecurityConfigurer resources) throws Exception {
    resources
            .tokenServices(remoteTokenServices())
            .resourceId(null)
            .eventPublisher(new DefaultAuthenticationEventPublisher(applicationEventPublisher));
}
 

开发者ID:gravitee-io,
项目名称:graviteeio-access-management,
代码行数:8,
代码来源:SecurityConfiguration.java

示例5: authenticationEventPublisher

点赞 2

import org.springframework.security.authentication.DefaultAuthenticationEventPublisher; //导入依赖的package包/类
@Bean
@ConditionalOnMissingBean(AuthenticationEventPublisher.class)
public DefaultAuthenticationEventPublisher authenticationEventPublisher(
		ApplicationEventPublisher publisher) {
	return new DefaultAuthenticationEventPublisher(publisher);
}
 

开发者ID:vikrammane23,
项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,
代码行数:7,
代码来源:SecurityAutoConfiguration.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)