Jump to content
We've recently updated our Privacy Statement, available here ×

Adding new Token based user using Http request through browser


jamshaidiqbal120

Recommended Posts

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

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...