I am having Jasperserver 7.2 and trying to test Token-based authentication using my browser. I am passing the following URL
http://localhost:8080/jasperserver/flow.html?flowId=searchFlow&pp=u=swood|o=West|r=JRS_ADMIN|exp=20191130115000
but it is giving me HTTP ERROR 400 . I've added the applicationContext-externalAuth-preAuth.xml in WEB-INF as well and restarted the server.
My xml file is as follows
<property name="tokenPairSeparator" value="|"/> <property name="tokenFormatMapping"> <map> <entry key="username" value="u" /> <entry key="roles" value="r" /> <entry key="expireTime" value="exp"/> <entry key="orgId" value="o" /> <entry key="profile.attribs"> <map> <entry key="profileAttrib1" value="pa1" /> <entry key="profileAttrib2" value="pa2" /> </map> </entry> </map> </property> <property name="tokenExpireTimestampFormat" value="yyyyMMddHHmmssZ"/> </bean> </property>
What am I doing wrong in here?
1 Answer:
Posted on December 6, 2019 at 8:26am
Hi,
as stated in Authentication Cookbook, URL should be specfied as
http://localhost:8080/jasperserver?pp=u%3DSven%7Cr%3DManager%7Co%3DEMEA,...
https://community.jaspersoft.com/documentation/tibco-jasperreports-serve...
Best regards,
Andrew