jamshaidiqbal120 Posted November 30, 2019 Share Posted November 30, 2019 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[/code]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>[/code]What am I doing wrong in here? Link to comment Share on other sites More sharing options...
asimkin Posted December 6, 2019 Share Posted December 6, 2019 Hi,as stated in Authentication Cookbook, URL should be specfied ashttp://localhost:8080/jasperserver?pp=u%3DSven%7Cr%3DManager%7Co%3DEMEA,Sales%7Cpa1%3DSwedenhttps://community.jaspersoft.com/documentation/tibco-jasperreports-server-authentication-cookbook/v720/token-based-authenticationBest regards,Andrew Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now