Hi Srikanth, Thank you for reporting this and we will provide a solution soon.
@Hariprasath - Yes you are correct API 2.0 is deprecated and that does not mean it's currently unavailable. So we should ideally be changing this to the latest version. I managed to reproduce the issue that Srikanth has experienced. The reason for that is endpoint is dynamic. For example my access token should be using https://*us14*.api.mailchimp.com/2.0/users/profile, where as you need to use https://*us12*.api.mailchimp.com/2.0/users/profile for your account. More details can be found in [1] Can we provide a fix for this? [1] http://stackoverflow.com/questions/27875405/invalid-mailchimp-api-key-in-mailchimp-export-api On Mon, Sep 26, 2016 at 4:02 PM, Hariprasath Thanarajah < [email protected]> wrote: > Hi Srikanth, > > > On Mon, Sep 26, 2016 at 10:07 AM, Srikanth Puppala < > [email protected]> wrote: > >> Hi Malaka, >> >> Thanks for your response. I did not set any email configuration in >> Identity Server or MailChimp. I followed the doc " >> https://docs.wso2.com/display/ISCONNECTORS/Configuring+Mail >> Chimp+Authenticator". >> >> On forums, I see a bug in WSO2 Identity Server [https://wso2.org/jira/ >> browse/IDENTITY-4810]. I tried version 5.1.0 and 5.2.0 version of >> Identity Server and seeing the same problem. >> > I have tried with 5.1.0 and it is working for me(Tried with v2.0 app). The > issue because of the mailChimp API version, We created this for api v2.0 > their we created the federated authenticated User from the email got from > the response of https://apidocs.mailchimp.com/api/2.0/users/profile.php > but now it is deprecated. Thank you for pointing it. We will update with > mailChimp Authenticator for current API version. > >> , >> I am not really sure about subject identifier and how to configure it. >> Could you please share any doc which will be helpful. >> > You don't need it to configure. > >> >> Thanks & Regards, >> Srikanth Puppala. >> >> >> >> >> >> >> >> On Sun, Sep 25, 2016 at 8:53 PM, Malaka Silva <[email protected]> wrote: >> >>> Hi Srikanth, >>> >>> I guess you have setup this as the first step and won't be using any >>> other authenticator afterwards? >>> With mail chimp authinticator we are using email as the subject >>> identifier. Hope you have given a email for the user and set the required >>> visibility for the API? >>> >>> @Hariprasath - Please follow up on this issue. >>> >>> On Fri, Sep 23, 2016 at 9:31 PM, Srikanth Puppala < >>> [email protected]> wrote: >>> >>>> >>>> Hi, >>>> >>>> I am trying to connect to MailChimp via WSO2 server >>>> using following document: >>>> https://docs.wso2.com/display/ISCONNECTORS/Configuring+MailC >>>> himp+Authenticator >>>> >>>> >>>> *However I ended up with following error(Any Idea??):* >>>> [2016-09-23 15:53:48,353] ERROR {org.wso2.carbon.identity.appl >>>> ication.authentication.framework.handler.request.impl.DefaultRequestCoordinator} >>>> - Exception in Authentication Frameworkjava.lang.IllegalArgumentException: >>>> Failed to create Federated Authenticated User from the given subject >>>> identifier. Invalid argument. authenticatedSubjectIdentifier : null >>>> at org.wso2.carbon.identity.application.authentication.framewor >>>> k.model.AuthenticatedUser.createFederateAuthenticatedUserFro >>>> mSubjectIdentifier(AuthenticatedUser.java:123) >>>> at org.wso2.carbon.identity.authenticator.mailChimp.MailChimpAu >>>> thenticator.processAuthenticationResponse(MailChimpAuthentic >>>> ator.java:190) >>>> at org.wso2.carbon.identity.application.authentication.framewor >>>> k.AbstractApplicationAuthenticator.process(AbstractApplicati >>>> onAuthenticator.java:66) >>>> at org.wso2.carbon.identity.application.authentication.framewor >>>> k.handler.step.impl.DefaultStepHandler.doAuthentication(Defa >>>> ultStepHandler.java:432) >>>> at org.wso2.carbon.identity.application.authentication.framewor >>>> k.handler.step.impl.DefaultStepHandler.handleResponse(Defaul >>>> tStepHandler.java:4 >>>> 06) >>>> at org.wso2.carbon.identity.application.authentication.framewor >>>> k.handler.step.impl.DefaultStepHandler.handle(DefaultStepHan >>>> dler.java:117) >>>> at org.wso2.carbon.identity.application.authentication.framewor >>>> k.handler.sequence.impl.DefaultStepBasedSequenceHandler.hand >>>> le(DefaultStepBased >>>> SequenceHandler.java:171) >>>> at org.wso2.carbon.identity.application.authentication.framewor >>>> k.handler.request.impl.DefaultAuthenticationRequestHandler.h >>>> andle(DefaultAuthen >>>> ticationRequestHandler.java:115) >>>> at org.wso2.carbon.identity.application.authentication.framewor >>>> k.handler.request.impl.DefaultRequestCoordinator.handle(Defa >>>> ultRequestCoordinat >>>> or.java:135) >>>> at org.wso2.carbon.identity.application.authentication.framewor >>>> k.servlet.CommonAuthenticationServlet.doPost(CommonAuthentic >>>> ationServlet.java:5 >>>> 3) >>>> at org.wso2.carbon.identity.application.authentication.framewor >>>> k.servlet.CommonAuthenticationServlet.doGet(CommonAuthentica >>>> tionServlet.java:43 >>>> ) >>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:620) >>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) >>>> at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.se >>>> rvice(ContextPathServletAdaptor.java:37) >>>> at org.eclipse.equinox.http.servlet.internal.ServletRegistratio >>>> n.service(ServletRegistration.java:61) >>>> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce >>>> ssAlias(ProxyServlet.java:128) >>>> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi >>>> ce(ProxyServlet.java:60) >>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) >>>> at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service >>>> (DelegationServlet.java:68) >>>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi >>>> lter(ApplicationFilterChain.java:303) >>>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App >>>> licationFilterChain.java:208) >>>> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilte >>>> r.java:52) >>>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi >>>> lter(ApplicationFilterChain.java:241) >>>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App >>>> licationFilterChain.java:208) >>>> at org.wso2.carbon.ui.filters.CSRFPreventionFilter.doFilter(CSR >>>> FPreventionFilter.java:88) >>>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi >>>> lter(ApplicationFilterChain.java:241) >>>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App >>>> licationFilterChain.java:208) >>>> at org.wso2.carbon.ui.filters.CRLFPreventionFilter.doFilter(CRL >>>> FPreventionFilter.java:59) >>>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi >>>> lter(ApplicationFilterChain.java:241) >>>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App >>>> licationFilterChain.java:208) >>>> at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilte >>>> r(CharacterSetFilter.java:61) >>>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi >>>> lter(ApplicationFilterChain.java:241) >>>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App >>>> licationFilterChain.java:208) >>>> at org.apache.catalina.core.StandardWrapperValve.invoke(Standar >>>> dWrapperValve.java:220) >>>> at org.apache.catalina.core.StandardContextValve.invoke(Standar >>>> dContextValve.java:122) >>>> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(A >>>> uthenticatorBase.java:504) >>>> at org.apache.catalina.core.StandardHostValve.invoke(StandardHo >>>> stValve.java:170) >>>> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo >>>> rtValve.java:103) >>>> at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInv >>>> ocation(CompositeValve.java:99) >>>> at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke >>>> (CarbonTomcatValve.java:47) >>>> at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(Tena >>>> ntLazyLoaderValve.java:57) >>>> at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invok >>>> eValves(TomcatValveContainer.java:47) >>>> at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(Comp >>>> ositeValve.java:62) >>>> at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetection >>>> Valve.invoke(CarbonStuckThreadDetectionValve.java:159) >>>> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogVa >>>> lve.java:950) >>>> at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve. >>>> invoke(CarbonContextCreatorValve.java:57) >>>> at org.apache.catalina.core.StandardEngineValve.invoke(Standard >>>> EngineValve.java:116) >>>> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd >>>> apter.java:421) >>>> at org.apache.coyote.http11.AbstractHttp11Processor.process(Abs >>>> tractHttp11Processor.java:1074) >>>> at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler >>>> .process(AbstractProtocol.java:611) >>>> at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun >>>> (NioEndpoint.java:1739) >>>> at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(N >>>> ioEndpoint.java:1698) >>>> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown >>>> Source) >>>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown >>>> Source) >>>> at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.r >>>> un(TaskThread.java:61) >>>> at java.lang.Thread.run(Unknown Source) >>>> >>>> >>>> -- >>>> Thanks & Regards, >>>> Srikanth Puppala. >>>> 6103065998 >>>> >>> >>> >>> >>> -- >>> >>> Best Regards, >>> >>> Malaka Silva >>> Senior Technical Lead >>> M: +94 777 219 791 >>> Tel : 94 11 214 5345 >>> Fax :94 11 2145300 >>> Skype : malaka.sampath.silva >>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 >>> Blog : http://mrmalakasilva.blogspot.com/ >>> >>> WSO2, Inc. >>> lean . enterprise . middleware >>> https://wso2.com/signature >>> http://www.wso2.com/about/team/malaka-silva/ >>> <http://wso2.com/about/team/malaka-silva/> >>> https://store.wso2.com/store/ >>> >>> Don't make Trees rare, we should keep them with care >>> >> >> >> >> -- >> Thanks & Regards, >> Srikanth Puppala. >> 6103065998 >> > > > > -- > > > *Thank you and Regards,**Hariprasath Thanarajah* > Associate Software Engineer | WSO2 > E: [email protected] > M: +94752806528, 0777216903 > Blog: hariwso2.blogspot.com > > Skype : hariss636 > LinkedIn : https://www.linkedin.com/in/hariprasath-thanarajah-5234b660 > > WSO2, Inc. > lean . enterprise . middleware > > https://wso2.com/signature > http://wso2.com/about/team/hariprashath-thanarajah/ > -- Best Regards, Malaka Silva Senior Technical Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware https://wso2.com/signature http://www.wso2.com/about/team/malaka-silva/ <http://wso2.com/about/team/malaka-silva/> https://store.wso2.com/store/ Don't make Trees rare, we should keep them with care
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
