AnsweredAssumed Answered

Can we have Alfresco API For authentication in Custom Application when alfresco is configured for SSO using kerberos?

Question asked by tanmaysalve on Aug 18, 2017

When alfresco is configured for only ldap authentication, we could use API in our custom application for authentication. But when we perform kerberos SSO authentication for the same instance, we are not able to authenticate.

 

Following is the exception we are getting when we are using POSTMAN client 

 

<pre>java.lang.ArrayIndexOutOfBoundsException: 0
org.alfresco.jlan.server.auth.spnego.SPNEGO.checkTokenType(SPNEGO.java:100)
org.alfresco.repo.webdav.auth.BaseKerberosAuthenticationFilter.authenticateRequest(BaseKerberosAuthenticationFilter.java:396)
org.alfresco.repo.webdav.auth.BaseSSOAuthenticationFilter.doFilter(BaseSSOAuthenticationFilter.java:172)
sun.reflect.GeneratedMethodAccessor663.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:119)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
com.sun.proxy.$Proxy228.doFilter(Unknown Source)
org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:89)
org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:68)
</pre>

Outcomes