Project

General

Profile

« Previous | Next » 

Revision 53671

add AuthorizationHandler in API configuration: checks

View differences:

UoaAdminToolsConfiguration.java
30 30
        return new PropertySourcesPlaceholderConfigurer();
31 31
    }
32 32

  
33
//    @Override
34
//    public void addInterceptors(InterceptorRegistry registry) {
35
//        registry.addInterceptor(new AuthorizationHandler(userInfoUrl,originServer))
36
//                .addPathPatterns("/**");
37
//
38
//    }
33
    @Override
34
    public void addInterceptors(InterceptorRegistry registry) {
35
        registry.addInterceptor(new AuthorizationHandler(userInfoUrl,originServer))
36
                .addPathPatterns("/**");
39 37

  
38
    }
39

  
40 40
}

Also available in: Unified diff