Adding new Token based user using Http request through browser

0

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?

jamshaidiqbal120's picture
Joined: Nov 25 2019 - 11:04am
Last seen: 23 hours 16 min ago

1 Answer:

0
asimkin's picture
9028
Joined: Jun 16 2014 - 6:30am
Last seen: 2 days 7 hours ago
Feedback
randomness