AnsweredAssumed Answered

does blackboard supports OAUTH 1.0 security for RESTFul webservices ?

Question asked by cp0046176 on Mar 9, 2016
Latest reply on Apr 9, 2016 by moneil

We are trying to develop custom B2(capella) supporting RESTFul webservices and implement OAUTH 1.0 Zero legged as security.

We have encountered an deployment error with the building block and the error is given below,

Error only happens if we include the below aop annotation to the code
PreAuthorize("hasRole('ROLE_OAUTH')")

Spring version :4.1.1.RELEASE
Spring security version : 3.2.6
Spring security oauth: 2.0.7

org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'PCCPServicesController' defined in file
[/opt/bb/blackboard/content/vi/BBLEARN/plugins/capu-pccp-rest/webapp/WEB-INF/classes/edu/capella/pccp/rest/PCCPServicesController.class]:
Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException:
Could not generate CGLIB subclass of class [class edu.capella.pccp.rest.PCCPServicesController]:
Common causes of this problem include using a final class or a non-visible class;
nested exception is org.springframework.cglib.core.CodeGenerationException:
java.lang.reflect.InvocationTargetException-->null

Caused by: java.lang.LinkageError: loader
(instance of blackboard/tomcat/servletcontainer/PlugInOverrideClassLoader):
attempted duplicate class definition for name: "edu/capella/pccp/rest/PCCPServicesController$$EnhancerBySpringCGLIB$$1bd839f"

It would be of great help if we get a suggestion/solution to this deployment issue

 

If OAUTH 1.0 Zero legged is not supported , suggest us with any other security can be implemented and supported by Blackboard.

 

Thanks and regards

Chandrasekar

Attachments

Outcomes