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

External database authentication in JasperServer 5.1


dcristea
Go to solution Solved by elizam,

Recommended Posts

Hello

For the past week I've been struggling to log in using credentials stored in an external database. I have modified and deployed the sample applicationContext-externalAuth-db.xml, as mentioned in the jasperreportsserver-auth-cookbook, but when i try to log in, i get a bad credentials exception. Do you have any suggestion on how to get the external database authentication working ? 

I have to mention that the password is stored as plain text in my external database.

Thank you,

Daniel.

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

If you are using plaintext, remove the reference to the passwordValidator bean in externalDaoAuthenticationProvider:

<bean id="externalDaoAuthenticationProvider" class="com.jaspersoft.jasperserver.multipleTenancy.security.externalAuth.db.MTExternalDaoAuthenticationProvider">
        <property name="userDetailsService"><ref local="externalUserTenantDetailsService"/></property>
        <property name="passwordValidator"><ref local="passwordValidator"/></property>
    </bean>

This example is from a pro file - the class might be slightly different in community. So make sure to edit your file & not copy this.

 

Link to comment
Share on other sites

Thank you for your reply. It seems like the root of my problem was an issue with the authoritiesByUsernameQuery. I would like to ask you if there is any way for me to see the "usersByUsernameQuery" and the "authoritiesByUsernameQuery" queries in the jasperserver log.
Link to comment
Share on other sites

  • 5 months later...

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...