sustain_1 Posted March 25, 2019 Share Posted March 25, 2019 Hello !I want to get username (like full name) from my database via external authentication. But number and order of columns in query is fixed - name="usersByUsernameQuery" - so i take only username(User ID) and password.But i need to add full name in User name pole of JasperServer instead User ID.How can I do it ?here is my bean:<bean id="externalUserDetailsService" class="com.jaspersoft.jasperserver.api.security.externalAuth.db.ExternalJDBCUserDetailsService"><property name="dataSource" ref="externalDataSource"/><property name="usersByUsernameQuery" value="SELECT u.JR_USER, u.JR_PWD, 1 FROM JASPER_USERS u WHERE u.JR_USER = ?"/><property name="authoritiesByUsernameQuery" value="SELECT u.JR_USER, u.JR_ROLE FROM JASPER_USERS u WHERE u.JR_USER = ?"/></bean> thanks for help. Link to comment Share on other sites More sharing options...
sthomas_3 Posted March 29, 2019 Share Posted March 29, 2019 What is the purpose of getting full name while authenticating? 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