Issue description
When trying to pass user token and other relevant parameters via URL, the application redirects to the login.html page instead of actually logging in. Here is an example URL:
Troubleshooting
The most common reason of being redirected to the login page is authentication being denied because of incorrect parameter values, or because the timestamp provided from 'exp' parameter is already in the past. So that's the first thing you want to check.
If the values are correct, next good step is to enable debug on entire spring security. In JasperReports® Server repository interface, add the following property under Manage->Server Settings->Log settings and set it to DEBUG:
org.springframework.security
Then try logging in again, and then check the /WEB-INF/logs/jasperserver.log file for any errors or other related messages. One example of a DEBUG message you may discover is this:
DEBUG ExceptionTranslationFilter,http-nio-8443-exec-9:165 - Access is denied (user is anonymous); redirecting to authentication entry point
org.springframework.security.access.AccessDeniedException: Access is denied
For example in the case above the issue was that the separator sign in URL had to be encoded. E.g. instead of '+' separator symbol we had to put '%2B', like this:
https://<host>:8443/jasperserver-pro?pp=u=myUser%2Bo=myOrganization
Ref. case #01447230
Recommended Comments
There are no comments to display.
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