sanat_1 Posted June 14, 2021 Share Posted June 14, 2021 Using SSO to login to jasper.Created ROLE_CHECK in jasperAdded 2 users (say user1 and user2) to ROLE_CHECK.In the repository given administrator permission to the root folder to ROLE_CHECK.Used below code is there in a class that extends EncryptionAuthenticationProcessingFilter.GrantedAuthority grantedAuthority = new SimpleGrantedAuthority("ROLE_CHECK");List<GrantedAuthority> authorities = new LinkedList<>();authorities.add(grantedAuthority);UserDetails ud = new User(user, "", authorities);final CustomJasperAuthenticationToken customJasperAuthenticationToken = new CustomJasperAuthenticationToken(ud, "");return this.getAuthenticationManager().authenticate(customJasperAuthenticationToken); - While accessing the jasper page it is showing "Access Denied" message. Am I missing something. Why it is showing access denied though admin privilege has been given. Link to comment Share on other sites More sharing options...
rmeadows Posted August 25, 2021 Share Posted August 25, 2021 sso will create roles that are flagged as externally defined. To map them into an internal role that you create in jasper you need to use the organization role map mapping functionality in the external authentication framework. Please go to docs.tibco.com and look for the external authentcation cookbook for information on the framework and how it operates as well as customizing. Thanks. 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