Search in sources :

Example 1 with OAuthRequestFilter

use of org.apache.cxf.rs.security.oauth2.filters.OAuthRequestFilter 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)1 ThirdPartyAccessService (oauth2.manager.ThirdPartyAccessService)1 OAuthRequestFilter (org.apache.cxf.rs.security.oauth2.filters.OAuthRequestFilter)1