Search in sources :

Example 1 with ThirdPartyAccessService

use of oauth2.manager.ThirdPartyAccessService in project tesb-rt-se by Talend.

the class SocialApplication method getSingletons.

@Override
public Set<Object> getSingletons() {
    Set<Object> classes = new HashSet<Object>();
    SocialService socialService = new SocialService();
    socialService.setAccounts(accounts);
    UserRegistrationService userRegService = new UserRegistrationService();
    userRegService.setAccounts(accounts);
    SecurityContextFilter scFilter = new SecurityContextFilter();
    scFilter.setAccounts(accounts);
    ThirdPartyAccessService thirdPartyAccessService = new ThirdPartyAccessService();
    thirdPartyAccessService.setAccounts(accounts);
    AuthorizationCodeGrantService authService = new AuthorizationCodeGrantService();
    authService.setDataProvider(manager);
    classes.add(socialService);
    classes.add(userRegService);
    classes.add(scFilter);
    classes.add(authService);
    classes.add(thirdPartyAccessService);
    return classes;
}
Also used : ThirdPartyAccessService(oauth2.manager.ThirdPartyAccessService) SecurityContextFilter(oauth2.service.SecurityContextFilter) SocialService(oauth2.service.SocialService) UserRegistrationService(oauth2.service.UserRegistrationService) AuthorizationCodeGrantService(org.apache.cxf.rs.security.oauth2.services.AuthorizationCodeGrantService) HashSet(java.util.HashSet)

Example 2 with ThirdPartyAccessService

use of oauth2.manager.ThirdPartyAccessService in project tesb-rt-se by Talend.

the class ThirdPartyAccessApplication method getSingletons.

@Override
public Set<Object> getSingletons() {
    Set<Object> classes = new HashSet<Object>();
    ThirdPartyAccessService thirdPartyAccessService = new ThirdPartyAccessService();
    thirdPartyAccessService.setAccounts(accounts);
    classes.add(thirdPartyAccessService);
    OAuthRequestFilter filter = new OAuthRequestFilter();
    filter.setDataProvider(manager);
    classes.add(filter);
    return classes;
}
Also used : OAuthRequestFilter(org.apache.cxf.rs.security.oauth2.filters.OAuthRequestFilter) ThirdPartyAccessService(oauth2.manager.ThirdPartyAccessService) HashSet(java.util.HashSet)

Aggregations

HashSet (java.util.HashSet)2 ThirdPartyAccessService (oauth2.manager.ThirdPartyAccessService)2 SecurityContextFilter (oauth2.service.SecurityContextFilter)1 SocialService (oauth2.service.SocialService)1 UserRegistrationService (oauth2.service.UserRegistrationService)1 OAuthRequestFilter (org.apache.cxf.rs.security.oauth2.filters.OAuthRequestFilter)1 AuthorizationCodeGrantService (org.apache.cxf.rs.security.oauth2.services.AuthorizationCodeGrantService)1